aboutsummaryrefslogtreecommitdiffstats
path: root/baseline/.zshrc
blob: f82232afa3031c0dea8ed0d4e3e64ad99ea96baa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
export ZSH=~/.oh-my-zsh
ZSH_THEME="robbyrussell"
COMPLETION_WAITING_DOTS="true"
plugins=(
  git
  zsh-syntax-highlighting
  autojump
)
source $ZSH/oh-my-zsh.sh
function dig {
  globalholecounter=0
  if test "$(ls -A "~/abbatoir")"; then
    while [ 1 ]; do
      if [ -d "~/abbatoir/hole$globalholecounter" ]; then
        if test "$(ls -A "~/abbatoir/hole$globalholecounter")"; then
          :
        else
          cd ~/abbatoir/hole$globalholecounter
          break
        fi
      else
        mkdir ~/abbatoir/hole$globalholecounter
        cd ~/abbatoir/hole$globalholecounter
        echo $globalholecounter
        break
      fi
      ((globalholecounter++))
    done
  else
    mkdir ~/abbatoir
    mkdir ~/abbatoir/hole$globalholecounter
    cd ~/abbatoir/hole$globalholecounter
  fi
}
if [[ -n $SSH_CONNECTION ]]; then
  export EDITOR='vim'
else
  export EDITOR='mvim'
fi
alias quit="exit"
alias clean="clear"
alias la="ls -A"
alias digg="dig && clear"
alias lss="ls -s"
function clearhalf {
  size=$(stty size|gawk '{print$1}')
  size=$(($size/2))
  tput cup $size 0 && tput ed
}
alias cleanhalf="clearhalf"
alias halfclear="clearhalf"
alias halfclean="clearhalf"
alias mv="mv -i"
alias cp="cp -i"
alias contest="ping 4.2.2.4 -c 7"
function math {
  echo $(($1))
}

bindkey -v
#nvm
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"