22 lines
633 B
Markdown
22 lines
633 B
Markdown
# Shell-Oneliner
|
|
|
|
Based on https://github.com/onceupon/Bash-Oneliner
|
|
but mainly for ZSH, my personal needs and configuration.
|
|
|
|
|
|
## Terminal Tricks
|
|
|
|
```
|
|
Ctrl + r : begins a backward search through command history.(keep pressing Ctrl + r to move backward)
|
|
Ctrl + a : move to the beginning of line.
|
|
Ctrl + e : move to the end of line.
|
|
Ctrl + w : cut the word before the cursor; then Ctrl + y paste it
|
|
Ctrl + u : cut the line; then Ctrl + y paste it
|
|
Ctrl + x + Ctrl + e : launch editor defined by $EDITOR to input your command. Useful for multi-line commands.
|
|
```
|
|
|
|
### ... With My Own Configuration
|
|
|
|
```
|
|
Ctrl + t : print current date
|
|
``` |