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
|
||||
fi
|
||||
|
||||
autoload -Uz edit-command-line
|
||||
zle -N edit-command-line
|
||||
|
||||
# disable core dumps
|
||||
limit coredumpsize 0
|
||||
|
||||
|
@ -61,6 +64,12 @@ elif ( which gdircolors &> /dev/null ) ; then
|
|||
eval $(gdircolors -b $([ -f /etc/DIR_COLORS ] && echo "/etc/DIR_COLORS"))
|
||||
fi
|
||||
|
||||
case "${TERM}" in
|
||||
xterm-256color)
|
||||
( infocmp $TERM &> /dev/null ) || export TERM=xterm
|
||||
;;
|
||||
esac
|
||||
|
||||
( which lesspipe &> /dev/null ) && eval $(lesspipe)
|
||||
export LESS=' -R'
|
||||
|
||||
|
@ -122,8 +131,14 @@ alias :wq='exit'
|
|||
# keybindings
|
||||
bindkey -d
|
||||
bindkey -e
|
||||
|
||||
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
|
||||
xterm*)
|
||||
bindkey '^[[H' beginning-of-line
|
||||
|
|
Loading…
Add table
Reference in a new issue