zsh/.zshrc (view raw)
1# __
2# ____ _____/ /_ __________
3# /_ / / ___/ __ \/ ___/ ___/
4# _ / /_(__ ) / / / / / /__
5#(_)___/____/_/ /_/_/ \___/
6#
7
8# export thingys
9export ZSH=/home/icyphox/.oh-my-zsh
10export BROWSER=/usr/bin/firefox-nightly
11export EDITOR=/usr/bin/nvim
12export SSH_KEY_PATH="~/.ssh/id_rsa"
13export GOROOT=$HOME/go
14export PATH=$PATH:$GOROOT/bin
15export PATH=$PATH:$HOME/bin
16export GPG_TTY=$(tty)
17export INPUTRC=~/.inputrc
18
19ZSH_THEME="spaceship"
20export SPACESHIP_CHAR_SYMBOL="> "
21
22# plugins
23plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
24
25source $ZSH/oh-my-zsh.sh
26source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
27
28# aliases
29alias icysite="cd ~/leet/icysite"
30alias scrot="~/bin/scrot.sh"
31alias icyinfo="~/bin/icyinfo.sh"
32alias gah='sudo $(fc -ln -1)'
33alias nvime='nvim ~/.config/nvim/init.vim'
34alias up="~/bin/icyup.sh"
35alias vim="nvim"
36alias vi="nvim"
37alias envactivate="source .env/bin/activate"
38alias sxiv="sxiv -b"
39
40# end and home keys
41bindkey "^[[1~" beginning-of-line
42bindkey "^[[4~" end-of-line
43
44[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
45
46# gnome-keyring thing
47if [ -n "$DESKTOP_SESSION" ];then
48 eval $(gnome-keyring-daemon --start)
49 export SSH_AUTH_SOCK
50fi
51
52export NVM_DIR="$HOME/.nvm"
53[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
54[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion