32 lines
866 B
Bash
Executable file
32 lines
866 B
Bash
Executable file
# setup slimzsh
|
|
|
|
git clone --recursive https://github.com/changs/slimzsh.git ~/.slimzsh
|
|
|
|
git clone https://github.com/dakra/ghostel.git /tmp/ghostel
|
|
cp /tmp/ghostel/etc/ghostel.zsh ~/.ghostel.zsh
|
|
rm -fr /tmp/ghostel
|
|
|
|
cat <<EOF > $HOME/.zshrc
|
|
HISTSIZE=10000
|
|
SAVEHIST=10000
|
|
[[ \$TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return
|
|
[[ \$TERM =~ "eterm" ]] && INSIDE_EMACS=yes
|
|
# zsh (~/.zshrc)
|
|
[[ "$INSIDE_EMACS" = 'ghostel' ]] && \
|
|
source "$HOME/.ghostel.zsh"
|
|
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
|