Add aliases and ctrl d to kitty
This commit is contained in:
parent
a617e78f6f
commit
b92e9d9c17
3 changed files with 5 additions and 5 deletions
|
@ -7,3 +7,7 @@ alias la='ls -A'
|
||||||
alias l='ls -CF'
|
alias l='ls -CF'
|
||||||
|
|
||||||
alias ccat='highlight --out-format=ansi' # Color cat with syntax highlighting
|
alias ccat='highlight --out-format=ansi' # Color cat with syntax highlighting
|
||||||
|
|
||||||
|
alias :q=' exit'
|
||||||
|
alias :x=' exit'
|
||||||
|
alias cd..='cd ..'
|
||||||
|
|
|
@ -89,11 +89,6 @@ fi
|
||||||
# colored GCC warnings and errors
|
# colored GCC warnings and errors
|
||||||
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
||||||
|
|
||||||
# some more ls aliases
|
|
||||||
alias ll='ls -alF'
|
|
||||||
alias la='ls -A'
|
|
||||||
alias l='ls -CF'
|
|
||||||
|
|
||||||
# Add an "alert" alias for long running commands. Use like so:
|
# Add an "alert" alias for long running commands. Use like so:
|
||||||
# sleep 10; alert
|
# sleep 10; alert
|
||||||
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
||||||
|
|
|
@ -1052,6 +1052,7 @@ map kitty_mod+n new_os_window
|
||||||
#: open a window with the current working directory.
|
#: open a window with the current working directory.
|
||||||
|
|
||||||
map kitty_mod+w close_window
|
map kitty_mod+w close_window
|
||||||
|
map ctrl+d close_window
|
||||||
map kitty_mod+] next_window
|
map kitty_mod+] next_window
|
||||||
map kitty_mod+[ previous_window
|
map kitty_mod+[ previous_window
|
||||||
map kitty_mod+f move_window_forward
|
map kitty_mod+f move_window_forward
|
||||||
|
|
Loading…
Add table
Reference in a new issue