Shell
- Edit current line in Vim with
C-x C-e
.
- Open last command in Vim with
fg
.
- Print function definitions with
declare -f myfunc
- Also see Bash and Zsh
- heredoc
Shell Builtins
Shell Options
Shell Loopings
Printing Color Codes
Print ASCII Value of a Character
Test Color displaying in shell
printf '\e[%sm ' {30..37} 0;
- print foreground
printf '\e[%sm ' {40..47} 0;
- print background