-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
32 lines (25 loc) · 948 Bytes
/
.zshrc
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
parse_git_branch() {
local branchName=$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
if [ -n "$branchName" ]
then
echo " $branchName"
fi
}
setopt PROMPT_SUBST
PROMPT='%F{cyan}%d%f%F{green}$(parse_git_branch)%f %F{cyan}=>%f '
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
[[ -s ~/.gvm/scripts/gvm ]] && source ~/.gvm/scripts/gvm
# Alias for NVIM
alias nv=nvim
# alias for Dotfiles
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
# Adds the copilot alias to the shell
# ghce - Github copilot explain
# ghcs - Github copilot suggest
eval "$(gh copilot alias -- zsh)"
# Github Markdown preview alias
# https://github.com/yusukebe/gh-markdown-preview
alias mp='gh markdown-preview'
export PATH="$PATH:$(go env GOPATH)/bin"