Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [[ $- = *i* ]] || return
- export \
- BROWSER=w3m \
- PATH="$HOME/.cabal/bin:$HOME/.perl5/bin:$HOME/.bin:$PATH"
- case $TTY in
- (/dev/tty1) exec xinit openbox -- vt$(fgconsole) ;;
- (/dev/tty6) exec xinit xmonad -- vt$(fgconsole) ;;
- esac
- fpath=($HOME/etc/zsh/functions $fpath)
- #autoload -U compinit promptinit
- autoload -U promptinit &&
- #compinit; promptinit; prompt tiny
- setopt -06DEJNORTghkw
- #/usr/bin/alsi -l
- command cowsay -f tux $(fortune all)
- #[[ $HOST = "Arch" ]] && dHost=devel || dHost=Arch
- #[[ $UID -eq 0 ]] && TMOUT=180
- PROMPT=$'%{\e[0;31m%}[%{\e[1;32m%}%*%{\e[0;31m%}][%{\e[0;32m%}%n@%m%{\e[0;31m%}]%{\e[1;31m%}%#%{\e[0m%} '
- RPROMPT=$'%{\e[0;31m%}[%{\e[1;32m%}%~%{\e[0;33m%}]%{\e[0m%}'
- alias \
- cp='cp -av' \
- df='df -Th --total' \
- g='git' \
- gcm='git commit -m' \
- gco='git checkout' \
- gd='git diff' \
- gdh='git diff HEAD' \
- gg='git pull' \
- gp='git push' \
- gst='git status --short --untracked-files' \
- la='ls -l' \
- ls='ls -AFNh --tabsize=0 --color=auto --show-control-chars --group-directories-first' \
- sd="ssh $dHost" sn='ssh root@n900' \
- svim='sudo vim' \
- ta='tmux attach' \
- tl='tmux ls'
- export \
- ABSROOT="$HOME/build/abs" \
- BROWSER="${${DISPLAY+firefox}:-w3m}" \
- EDITOR="nano" \
- EDITOR=nano \
- GREP_COLOR="4;1;31" \
- GREP_OPTIONS="--color=auto" \
- HISTFILE=$HOME/.logs/zhistory \
- HISTSIZE=10000 SAVEHIST=10000 \
- LESS_TERMCAP_mb=$'\e[01;31m' \
- LESS_TERMCAP_md=$'\e[01;31m' \
- LESS_TERMCAP_me=$'\e[0m' \
- LESS_TERMCAP_se=$'\e[0m' \
- LESS_TERMCAP_so=$'\e[01;36m' \
- LESS_TERMCAP_ue=$'\e[0m' \
- LESS_TERMCAP_us=$'\e[00;34m' \
- PAGER="less" \
- PERL5LIB="$HOME/.perl5/lib/perl5/x86_64-linux-thread-multi:$HOME/.perl5/lib/perl5:$PERL5LIB" \
- PERL_LOCAL_LIB_ROOT="$HOME/.perl5" \
- PERL_MB_OPT="--install_base $HOME/.perl5" \
- PERL_MM_OPT="INSTALL_BASE=$HOME/.perl5" \
- SUDO_PROMPT="Password: " \
- VISUAL="vim"
- #hash -d dotfiles=$HOME/etc
- #source <(dircolors ~dotfiles/zsh/dircolors)
- #for s (~dotfiles/zsh/*.zsh(N)) source $s
- man() {
- env \
- LESS_TERMCAP_mb=$(printf "\e[1;31m") \
- LESS_TERMCAP_md=$(printf "\e[1;31m") \
- LESS_TERMCAP_me=$(printf "\e[0m") \
- LESS_TERMCAP_se=$(printf "\e[0m") \
- LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
- LESS_TERMCAP_ue=$(printf "\e[0m") \
- LESS_TERMCAP_us=$(printf "\e[1;32m") \
- man "$@"
- }
- # alias
- alias reboot="sudo shutdown -r now"
- alias poweroff="sudo shutdown -h now"
- alias shutdown="sudo shutdown -r now"
- alias supy="supybot Neo.conf"
- alias wee="weechat-curses"
- alias ncm="ncmpcpp"
- alias news="newsbeuter"
- alias twit="pieppiep"
- alias twitr="pieppiep fetch 20"
- alias unetbootin="sudo unetbootin"
- alias gparted="sudo gparted"
- alias netlisten='lsof -i -P | grep LISTEN'
- alias nstat="netstat -p TCP -eWc"
- alias nstato="netstat -tuael --numeric-hosts --numeric-ports"
- alias dmesg="dmesg"
- alias pizza="sleep 10m && echo ⚠⚠⚠ pizza is done ⚠⚠⚠ "
- alias equoins="sudo equo install"
- alias equosearch="equo search"
- alias equorem="equo remove"
- alias equoclean="equo cleanup"
- alias equoupd="sudo equo update"
- alias equoupg="sudo equo upgrade"
- alias ytv="youtube-viewer -C" #youtube-viewer w/ colour
- alias ytdl="youtube-viewer -d" #youtube-viewer download -[URL]
- alias subs="youtube-viewer -C -S" #youtube-viewer w/ colour/subscriptions
- alias errorlog='sudo tail -n 40 /var/log/errors.log' #view error log
- alias size='sudo du -hsx * | sort -rh | head -10' #list 10 dir/files by size
- alias sizevar='sudo du -a /var | sort -n -r | head -n 10' #list 10 dir by size
- alias sizehome="sudo du -a ~/ | sort -n -r | head -n 10"
- alias uuid="ls /dev/dsudo du -a ~/ | sort -n -r | head -n 10isk/by-uuid/ -alh"
- alias du="du -h"
- alias cdd="cd .."
- alias toprun="ps axo %cpu,%mem,comm |sort -unr| head -n 9"
- alias hist="history 24"
- alias psusage="ps aux --sort=-%cpu | grep -m 11 -v `whoami`"
- alias lbig="ls -lSrh"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement