workstation/roles/home-cli/files/zshrc

29 lines
548 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-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-25 09:09:09 +00:00
bindkey "^[[3~" delete-char
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-09-10 22:29:47 +00:00
if [ -r "$HOME/.shrc" ]
then
. "$HOME/.shrc"
fi