-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.zshrc
More file actions
35 lines (25 loc) · 640 Bytes
/
.zshrc
File metadata and controls
35 lines (25 loc) · 640 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
function set_title_precmd () {
str=$(echo $PWD | sed 's/.*\///')
echo -ne "\033]0;$str\007"
}
function set_title_preexec () {
str=$(echo $PWD | sed 's/.*\///')
echo -ne "\033]0;$1 | $str\007"
}
if [ -n "$ZSH_VERSION" ]; then
DISABLE_AUTO_TITLE="true"
precmd_functions+=(set_title_precmd)
preexec_functions+=(set_title_preexec)
fi
####
alias vi="nvim"
alias vim="nvim"
####
alias cat="bat"
export BAT_THEME="gruvbox-dark"
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
##
source <(fzf --zsh)
## atuin history
eval "$(atuin init zsh --disable-up-arrow)"