all repos — dotfiles @ 41e444ff4f24ffb9ffbe99106d55d65ec165ca4e

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-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
19# theme specefic
20ZSH_THEME="simple"
21#export SPACESHIP_CHAR_SYMBOL="> "
22
23# plugins
24plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
25
26source $ZSH/oh-my-zsh.sh
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 sxiv="sxiv -b"
38alias todo="todo.sh"
39alias ls="exa"
40alias la="exa -al"
41
42# end and home keys
43bindkey "^[[1~" beginning-of-line
44bindkey "^[[4~" end-of-line
45
46[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
47
48# Defer initialization of nvm until nvm, node or a node-dependent command is
49# run. Ensure this block is only run once if .bashrc gets sourced multiple times
50# by checking whether __init_nvm is a function.
51if [ -s "$HOME/.nvm/nvm.sh" ] && [ ! "$(type __init_nvm)" = function ]; then
52  export NVM_DIR="$HOME/.nvm"
53  [ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"
54  declare -a __node_commands=('nvm' 'node' 'npm' 'yarn' 'gulp' 'grunt' 'webpack')
55  function __init_nvm() {
56    for i in "${__node_commands[@]}"; do unalias $i; done
57    . "$NVM_DIR"/nvm.sh
58    unset __node_commands
59    unset -f __init_nvm
60  }
61  for i in "${__node_commands[@]}"; do alias $i='__init_nvm && '$i; done
62fi
63
64# base16-shell
65BASE16_SHELL=$HOME/.config/base16-shell/
66[ -n "$PS1" ] && [ -s $BASE16_SHELL/profile_helper.sh ] && eval "$($BASE16_SHELL/profile_helper.sh)"
67