all repos — dotfiles @ 26bde004cf6a4f1e01176cfa43ef75ae18681a1e

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/vim
12export SSH_KEY_PATH="~/.ssh/rsa_id"
13export GOROOT=$HOME/go
14export PATH=$PATH:$GOROOT/bin
15export GPG_TTY=$(tty)
16export INPUTRC=~/.inputrc
17
18
19ZSH_THEME="simple"
20
21
22# plugins
23plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
24
25source $ZSH/oh-my-zsh.sh
26source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
27
28# aliases
29alias icysite="cd ~/leet/icysite"
30alias scrot="~/scripts/scrot.sh"
31alias icyinfo="~/scripts/icyinfo.sh"
32#alias rm="trash"
33#alias git="hub"
34alias rmrf="rm -rf"
35alias gah='sudo $(fc -ln -1)'
36alias lol="base64 </dev/urandom | lolcat"
37#alias pacman="sudo pacman"
38
39# Codi
40codi() {
41  local syntax="${1:-python}"
42  shift
43  vim -c \
44    "let g:startify_disable_at_vimenter = 1 |\
45    set bt=nofile ls=0 noru nonu nornu |\
46    hi ColorColumn ctermbg=NONE |\
47    hi VertSplit ctermbg=NONE |\
48    hi NonText ctermfg=0 |\
49    Codi $syntax" "$@"
50}
51
52# end and home keys
53bindkey "^[[1~" beginning-of-line
54bindkey "^[[4~" end-of-line
55
56[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh