zsh/.zshrc (view raw)
1# __
2# ____ _____/ /_ __________
3# /_ / / ___/ __ \/ ___/ ___/
4# _ / /_(__ ) / / / / / /__
5#(_)___/____/_/ /_/_/ \___/
6#
7
8# export thingys
9export ZSH=/home/$USER/.oh-my-zsh
10export BROWSER=/usr/bin/firefox
11export EDITOR=/usr/bin/nvim
12export SSH_KEY_PATH="~/.ssh/id_rsa"
13export PATH=$PATH:$GOROOT/bin
14export PATH=$PATH:$HOME/bin
15export GPG_TTY=$(tty)
16export INPUTRC=~/.inputrc
17export PATH=$PATH:$HOME/Leet/Nim/bin
18export PATH=$PATH:$HOME/.nimble/bin
19
20# theme specefic
21ZSH_THEME="icy"
22COMPLETION_WAITING_DOTS="true"
23
24# plugins
25plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
26
27# sourced scripts
28source $ZSH/oh-my-zsh.sh
29source /usr/share/autojump/autojump.zsh
30source $HOME/.aliases
31
32# end and home keys
33bindkey "^[[1~" beginning-of-line
34bindkey "^[[4~" end-of-line
35
36[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
37
38## Defer initialization of nvm until nvm, node or a node-dependent command is
39## run. Ensure this block is only run once if .bashrc gets sourced multiple times
40## by checking whether __init_nvm is a function.
41#if [ -s "$HOME/.nvm/nvm.sh" ] && [ ! "$(type __init_nvm)" = function ]; then
42# export NVM_DIR="$HOME/.nvm"
43# [ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"
44# declare -a __node_commands=('nvm' 'node' 'npm' 'yarn' 'gulp' 'grunt' 'webpack')
45# function __init_nvm() {
46# for i in "${__node_commands[@]}"; do unalias $i; done
47# . "$NVM_DIR"/nvm.sh
48# unset __node_commands
49# unset -f __init_nvm
50# }
51# for i in "${__node_commands[@]}"; do alias $i='__init_nvm && '$i; done
52#fi
53
54# base16-shell
55BASE16_SHELL="$HOME/.config/base16-shell/"
56[ -n "$PS1" ] && \
57 [ -s "$BASE16_SHELL/profile_helper.sh" ] && \
58 eval "$("$BASE16_SHELL/profile_helper.sh")"