-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
61 lines (44 loc) · 1.58 KB
/
.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
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
export EDITOR="/usr/bin/nvim"
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PATH:$PYENV_ROOT/bin"
export PATH="$PATH:$HOME/.rbenv/bin:/home/nikolai/.local/bin"
export PATH="$PATH:$HOME/.linkerd2/bin"
export PATH="$PATH:$HOME/.tfenv/bin"
export TERM="xterm-256color"
source $HOME/antigen.zsh
source $HOME/.profile
source $HOME/.poetry/env
eval "$(pyenv init -)"
eval "$(rbenv init -)"
export NVM_DIR="$HOME/.config"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
antigen use oh-my-zsh
antigen bundle extract
antigen bundle git
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle command-not-found
antigen bundle shrink-path
antigen theme agnoster
antigen apply
# Shrink file paths
function prompt_dir() {
prompt_segment blue black "$(shrink_path -f)"
}
alias vim='nvim'
# random aliases
alias ezsh='$EDITOR ~/.zshrc'
alias szsh='source ~/.zshrc'
alias sodomize='cowsay -f sodomized'
alias pw='password-generator -l 24 -c'
# git aliases
alias gaa='git add --all'
alias gcm='git commit -m'
alias gpo='git push origin'
alias night='redshift &> /dev/null &'
alias day='killall redshift'
alias reload-feh='feh --bg-scale ~/Images/Wallpapers/current'
alias reload-polybar='killall polybar; ~/.bin/polybar.sh &>/dev/null'
alias mdesk='~/.bin/desk.sh && reload-polybar && reload-feh'
alias mlaptop='xrandr --output eDP-1 --auto --output DP-2 --off --output HDMI-1 --off && reload-polybar && reload-feh'
# https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/
alias config='/usr/bin/git --git-dir=/home/nikolai/.cfg/ --work-tree=/home/nikolai'