changed C-f and C-b to forward and backward char. Alt-f and Alt-b is now the old binding (forward and backward word)
25 lines
652 B
Bash
Executable file
25 lines
652 B
Bash
Executable file
# setup slimzsh
|
|
|
|
git clone --recursive https://github.com/changs/slimzsh.git ~/.slimzsh
|
|
|
|
cat <<EOF > $HOME/.zshrc
|
|
HISTSIZE=10000
|
|
SAVEHIST=10000
|
|
[[ \$TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return
|
|
[[ \$TERM =~ "eterm" ]] && INSIDE_EMACS=yes
|
|
zstyle ':prompt:pure:user:root' color red
|
|
zstyle ':prompt:pure:host' color cyan
|
|
source "$HOME/.slimzsh/slim.zsh"
|
|
bindkey "^F" forward-char
|
|
bindkey "^B" backward-char
|
|
bindkey "\eF" forward-word
|
|
bindkey "\eB" backward-word
|
|
source /usr/share/doc/fzf/examples/key-bindings.zsh
|
|
unsetopt correct
|
|
alias vi=nvim
|
|
alias ls='ls --color=auto'
|
|
alias ll='ls -la'
|
|
alias ip='ip -color=auto'
|
|
EOF
|
|
|
|
chsh -s /bin/zsh $USER
|