mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-08-05 16:48:38 +00:00
changes to zsh... a few more keybindings plus force a fallback to a simpler term if a more complex one does not exist
This commit is contained in:
parent
224a97ecca
commit
35f19785d9
1 changed files with 15 additions and 0 deletions
15
zshrc
15
zshrc
|
@ -13,6 +13,9 @@ if [[ ${ZSH_VERSION//.} -gt 420 ]] ; then
|
||||||
zle -N self-insert url-quote-magic
|
zle -N self-insert url-quote-magic
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
autoload -Uz edit-command-line
|
||||||
|
zle -N edit-command-line
|
||||||
|
|
||||||
# disable core dumps
|
# disable core dumps
|
||||||
limit coredumpsize 0
|
limit coredumpsize 0
|
||||||
|
|
||||||
|
@ -61,6 +64,12 @@ elif ( which gdircolors &> /dev/null ) ; then
|
||||||
eval $(gdircolors -b $([ -f /etc/DIR_COLORS ] && echo "/etc/DIR_COLORS"))
|
eval $(gdircolors -b $([ -f /etc/DIR_COLORS ] && echo "/etc/DIR_COLORS"))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
case "${TERM}" in
|
||||||
|
xterm-256color)
|
||||||
|
( infocmp $TERM &> /dev/null ) || export TERM=xterm
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
( which lesspipe &> /dev/null ) && eval $(lesspipe)
|
( which lesspipe &> /dev/null ) && eval $(lesspipe)
|
||||||
export LESS=' -R'
|
export LESS=' -R'
|
||||||
|
|
||||||
|
@ -122,8 +131,14 @@ alias :wq='exit'
|
||||||
# keybindings
|
# keybindings
|
||||||
bindkey -d
|
bindkey -d
|
||||||
bindkey -e
|
bindkey -e
|
||||||
|
|
||||||
bindkey ' ' magic-space
|
bindkey ' ' magic-space
|
||||||
|
|
||||||
|
bindkey -M emacs '\ee' edit-command-line
|
||||||
|
|
||||||
|
bindkey -M emacs '' history-incremental-search-forward
|
||||||
|
bindkey -M emacs '' history-incremental-search-backward
|
||||||
|
|
||||||
case $TERM in
|
case $TERM in
|
||||||
xterm*)
|
xterm*)
|
||||||
bindkey '^[[H' beginning-of-line
|
bindkey '^[[H' beginning-of-line
|
||||||
|
|
Loading…
Add table
Reference in a new issue