-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzshrc
More file actions
34 lines (26 loc) · 1.1 KB
/
zshrc
File metadata and controls
34 lines (26 loc) · 1.1 KB
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
autoload -Uz compinit && compinit
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
export YVM_DIR=/Users/dallas/.yvm
[ -r $YVM_DIR/yvm.sh ] && . $YVM_DIR/yvm.sh
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/dallas/Desktop/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/dallas/Desktop/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/dallas/Desktop/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/dallas/Desktop/google-cloud-sdk/completion.zsh.inc'; fi
eval "$(oh-my-posh init zsh --config ~/.config/oh-my-posh/themes/theme.omp.json)"
alias ls='ls --color=auto'
alias tm='tmux'
alias tmls='tmux ls'
alias tmas='tmux attach-session -t'
alias tmks='tmux kill-session -t'
alias tmkp='tm kill-pane'
alias tmd='tmux detach'
alias tmns='tmux new -s'
rename_tab() {
if test "${TMUX_PANE+x}"; then
echo -en "\033Ptmux;\033\033]0;$1\a\033\\"
else
echo -en "\033]0;$1\a"
fi
}