workstation/roles/home-cli/files/zshrc

24 lines
590 B
Bash
Raw Normal View History

2022-08-19 14:52:07 +00:00
#!/bin/zsh
if [ -f /etc/zshrc ]
then
. /etc/zshrc
fi
2022-08-19 14:27:34 +00:00
autoload -U history-search-end
2022-08-19 14:52:07 +00:00
zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end
bindkey -e
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
bindkey "^[[A" history-beginning-search-backward-end
bindkey "^[[B" history-beginning-search-forward-end
bindkey "^[OA" history-beginning-search-backward-end
bindkey "^[OB" history-beginning-search-forward-end
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