all repos — dotfiles @ 6192d0b761b940342c44299be377e8f7aa2bb6f0

my *nix dotfiles

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
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
19# theme specefic
20ZSH_THEME="simple"
21
22# plugins
23plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
24
25# sourced scripts
26source $ZSH/oh-my-zsh.sh
27source /usr/share/autojump/autojump.zsh
28# source $HOME/.cargo/env
29
30# aliases
31alias scrot="~/bin/scrot.sh"
32alias icyinfo="~/bin/icyinfo.sh"
33alias gah='sudo $(fc -ln -1)'
34alias nvime='nvim ~/.config/nvim/init.vim'
35alias up="~/bin/icyup.sh"
36alias envac="source .env/bin/activate"
37alias vim="nvim"
38alias vi="nvim"
39alias sxiv="sxiv -b"
40alias todo="todo.sh"
41alias ls="exa"
42alias la="exa -al"
43alias warcraft="wine Warcraft/Frozen\ Throne.exe -opengl"
44alias socks="ssh -D 8008 boop"
45alias vpn="sudo openvpn --config client.ovpn --script-security 2"
46
47# end and home keys
48bindkey "^[[1~" beginning-of-line
49bindkey "^[[4~" end-of-line
50
51[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
52
53# Defer initialization of nvm until nvm, node or a node-dependent command is
54# run. Ensure this block is only run once if .bashrc gets sourced multiple times
55# by checking whether __init_nvm is a function.
56if [ -s "$HOME/.nvm/nvm.sh" ] && [ ! "$(type __init_nvm)" = function ]; then
57  export NVM_DIR="$HOME/.nvm"
58  [ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"
59  declare -a __node_commands=('nvm' 'node' 'npm' 'yarn' 'gulp' 'grunt' 'webpack')
60  function __init_nvm() {
61    for i in "${__node_commands[@]}"; do unalias $i; done
62    . "$NVM_DIR"/nvm.sh
63    unset __node_commands
64    unset -f __init_nvm
65  }
66  for i in "${__node_commands[@]}"; do alias $i='__init_nvm && '$i; done
67fi
68
69# base16-shell
70BASE16_SHELL=$HOME/.config/base16-shell/
71[ -n "$PS1" ] && [ -s $BASE16_SHELL/profile_helper.sh ] && eval "$($BASE16_SHELL/profile_helper.sh)"
72