Advertisement
cirrus

Sabayon .zshrc

Apr 13th, 2013
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.96 KB | None | 0 0
  1. [[ $- = *i* ]] || return
  2.  
  3. export \
  4.   BROWSER=w3m \
  5.   PATH="$HOME/.cabal/bin:$HOME/.perl5/bin:$HOME/.bin:$PATH"
  6.  
  7. case $TTY in
  8.   (/dev/tty1) exec xinit openbox -- vt$(fgconsole) ;;
  9.   (/dev/tty6) exec xinit xmonad  -- vt$(fgconsole) ;;
  10. esac
  11.  
  12. fpath=($HOME/etc/zsh/functions $fpath)
  13. #autoload -U compinit promptinit
  14. autoload -U promptinit &&
  15. #compinit; promptinit; prompt tiny
  16. setopt -06DEJNORTghkw
  17. #/usr/bin/alsi -l
  18. command cowsay -f tux $(fortune all)
  19. #[[ $HOST = "Arch" ]] && dHost=devel || dHost=Arch
  20. #[[ $UID -eq 0 ]] && TMOUT=180
  21. PROMPT=$'%{\e[0;31m%}[%{\e[1;32m%}%*%{\e[0;31m%}][%{\e[0;32m%}%n@%m%{\e[0;31m%}]%{\e[1;31m%}%#%{\e[0m%} '
  22. RPROMPT=$'%{\e[0;31m%}[%{\e[1;32m%}%~%{\e[0;33m%}]%{\e[0m%}'
  23.  
  24. alias \
  25.   cp='cp -av' \
  26.   df='df -Th --total' \
  27.   g='git' \
  28.   gcm='git commit -m' \
  29.   gco='git checkout' \
  30.   gd='git diff' \
  31.   gdh='git diff HEAD' \
  32.   gg='git pull' \
  33.   gp='git push' \
  34.   gst='git status --short --untracked-files' \
  35.   la='ls -l' \
  36.   ls='ls -AFNh --tabsize=0 --color=auto --show-control-chars --group-directories-first' \
  37.   sd="ssh $dHost" sn='ssh root@n900' \
  38.   svim='sudo vim' \
  39.   ta='tmux attach' \
  40.   tl='tmux ls'
  41.        
  42.  
  43. export \
  44.   ABSROOT="$HOME/build/abs" \
  45.   BROWSER="${${DISPLAY+firefox}:-w3m}" \
  46.   EDITOR="nano" \
  47.   EDITOR=nano \
  48.   GREP_COLOR="4;1;31" \
  49.   GREP_OPTIONS="--color=auto" \
  50.   HISTFILE=$HOME/.logs/zhistory \
  51.   HISTSIZE=10000 SAVEHIST=10000 \
  52.   LESS_TERMCAP_mb=$'\e[01;31m' \
  53.   LESS_TERMCAP_md=$'\e[01;31m' \
  54.   LESS_TERMCAP_me=$'\e[0m' \
  55.   LESS_TERMCAP_se=$'\e[0m' \
  56.   LESS_TERMCAP_so=$'\e[01;36m' \
  57.   LESS_TERMCAP_ue=$'\e[0m' \
  58.   LESS_TERMCAP_us=$'\e[00;34m' \
  59.   PAGER="less" \
  60.   PERL5LIB="$HOME/.perl5/lib/perl5/x86_64-linux-thread-multi:$HOME/.perl5/lib/perl5:$PERL5LIB" \
  61.   PERL_LOCAL_LIB_ROOT="$HOME/.perl5" \
  62.   PERL_MB_OPT="--install_base $HOME/.perl5" \
  63.   PERL_MM_OPT="INSTALL_BASE=$HOME/.perl5" \
  64.   SUDO_PROMPT="Password: " \
  65.   VISUAL="vim"
  66.  
  67. #hash -d dotfiles=$HOME/etc
  68.  
  69. #source <(dircolors ~dotfiles/zsh/dircolors)
  70. #for s (~dotfiles/zsh/*.zsh(N)) source $s
  71.  
  72. man() {
  73.     env \
  74.         LESS_TERMCAP_mb=$(printf "\e[1;31m") \
  75.         LESS_TERMCAP_md=$(printf "\e[1;31m") \
  76.         LESS_TERMCAP_me=$(printf "\e[0m") \
  77.         LESS_TERMCAP_se=$(printf "\e[0m") \
  78.         LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
  79.         LESS_TERMCAP_ue=$(printf "\e[0m") \
  80.         LESS_TERMCAP_us=$(printf "\e[1;32m") \
  81.         man "$@"
  82. }
  83. # alias
  84. alias reboot="sudo shutdown -r now"
  85. alias poweroff="sudo shutdown -h now"
  86. alias shutdown="sudo shutdown -r now"
  87. alias supy="supybot Neo.conf"
  88. alias wee="weechat-curses"
  89. alias ncm="ncmpcpp"
  90. alias news="newsbeuter"
  91. alias twit="pieppiep"
  92. alias twitr="pieppiep fetch 20"
  93. alias unetbootin="sudo unetbootin"
  94. alias gparted="sudo gparted"
  95. alias netlisten='lsof -i -P | grep LISTEN'
  96. alias nstat="netstat -p TCP -eWc"
  97. alias nstato="netstat -tuael --numeric-hosts --numeric-ports"
  98. alias dmesg="dmesg"
  99. alias pizza="sleep 10m && echo ⚠⚠⚠ pizza is done ⚠⚠⚠ "
  100. alias equoins="sudo equo install"
  101. alias equosearch="equo search"
  102. alias equorem="equo remove"
  103. alias equoclean="equo cleanup"
  104. alias equoupd="sudo equo update"
  105. alias equoupg="sudo equo upgrade"
  106. alias ytv="youtube-viewer -C"                    #youtube-viewer w/ colour
  107. alias ytdl="youtube-viewer -d"                  #youtube-viewer download -[URL]
  108. alias subs="youtube-viewer -C -S"                   #youtube-viewer w/ colour/subscriptions
  109. alias errorlog='sudo tail -n 40 /var/log/errors.log'   #view error log
  110. alias size='sudo du -hsx * | sort -rh | head -10'  #list 10 dir/files by size
  111. alias sizevar='sudo du -a /var | sort -n -r | head -n 10' #list 10 dir by size
  112. alias sizehome="sudo du -a ~/ | sort -n -r | head -n 10"
  113. alias uuid="ls /dev/dsudo du -a ~/ | sort -n -r | head -n 10isk/by-uuid/ -alh"
  114. alias du="du -h"
  115. alias cdd="cd .."
  116. alias toprun="ps axo %cpu,%mem,comm |sort -unr| head -n 9"
  117. alias hist="history 24"
  118. alias psusage="ps aux  --sort=-%cpu | grep -m 11 -v `whoami`"
  119. alias lbig="ls -lSrh"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement