-
Notifications
You must be signed in to change notification settings - Fork 2
/
zshrc.local
73 lines (56 loc) · 1.34 KB
/
zshrc.local
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Use zgen so we can use zsh plugins easily
# We want to use git-prompt for example
########
# PATH #
########
##############
# Ergonomics #
##############
# vim keybindings
bindkey -v
# use vim as editor
export EDITOR=nvim
export PSQL_EDITOR=nvim
##########
# Prompt #
##########
export SPACESHIP_CHAR_SYMBOL=»
export SPACESHIP_CHAR_SUFFIX=' '
export SPACESHIP_PACKAGE_SHOW=false
export SPACESHIP_VI_MODE_SHOW=false
export SPACESHIP_KUBECONTEXT_SHOW=false
export SPACESHIP_AWS_SHOW=false
############
# ENV vars #
############
source "${HOME}/.envs"
#########
# Tools #
#########
source "${HOME}/.vim/zgen/zgen.zsh"
if ! zgen saved; then
echo "Creating a zgen save"
zgen load denysdovhan/spaceship-prompt spaceship
zgen load zsh-users/zsh-syntax-highlighting
zgen save
fi
# use z for easier file system navigation
. /opt/homebrew/etc/profile.d/z.sh
# use asdf version manager
if which asdf > /dev/null; then . /opt/homebrew/opt/asdf/libexec/asdf.sh; fi
export PATH=$VOLTA_HOME/bin:$PATH;
# use gvm for managing go versions
source /Users/ahoy/.gvm/scripts/gvm
###########
# Aliases #
###########
# nvim is the new vim
alias vim="nvim"
# tmux
alias t="tmux -u" # run with utf-8 enabled!
alias tl="tmux ls"
alias ta="tmux attach -t"
# git
alias gb='git branch'
alias gco='git checkout'
alias gwc='git whatchanged -p --abbrev-commit --pretty=medium'