workstation/roles/home-cli/files/zshrc

33 lines
580 B
Bash
Raw Normal View History

2022-08-19 14:52:07 +00:00
#!/bin/zsh
case "$-" in
*i*)
;;
*)
# Shell is not interactive.
return 1
;;
esac
2022-08-19 14:52:07 +00:00
if [ -f /etc/zshrc ]
then
. /etc/zshrc
fi
2022-08-23 13:12:00 +00:00
autoload -Uz compinit && compinit
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
2022-08-19 14:52:07 +00:00
bindkey -e
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
2022-08-23 12:56:37 +00:00
bindkey "^[[A" history-beginning-search-backward
bindkey "^[[B" history-beginning-search-forward
bindkey "^[OA" history-beginning-search-backward
bindkey "^[OB" history-beginning-search-forward
2022-08-19 14:52:07 +00:00
2022-08-19 14:58:46 +00:00
export PS1="%B%n@%m%#%b "
2022-08-19 14:52:07 +00:00
if [ -e "$HOME/.shrc" ]
2022-08-18 07:44:25 +00:00
then
2022-08-19 14:54:15 +00:00
emulate sh -c '. "$HOME/.shrc"'
2022-08-18 07:44:25 +00:00
fi