#Open your shell configuration file using a text editor: nano ~/.bashrc # For Bash nano ~/.zshrc # For Zsh greet() { echo "Hello, $1!" } # save it and close source ~/.bashrc # For Bash source ~/.zshrc # For Zsh # Output greet "John"
#Open your shell configuration file using a text editor: nano ~/.bashrc # For Bash nano ~/.zshrc # For Zsh greet() { echo "Hello, $1!" } # save it and close source ~/.bashrc # For Bash source ~/.zshrc # For Zsh # Output greet "John"