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"
- export MOZ_DISABLE_PANGO=1
- 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 pacsyy="sudo pacman -Syy" #update mirrors
- alias pacsu="sudo pacman -Su" #upgrade all packages
- alias pacinfo="sudo pacman -Si" #show information about a package
- alias pacq="pacman -Q" # query
- alias pacs="sudo pacman -S" #install package/s
- alias paclist="sudo pacman -Ql" #list all files installed by package
- alias paclistall="pacman -Qqm" #list all packages locally installed
- alias pacr="sudo pacman -R" #uninstall one or more package/s
- alias pacrns="sudo pacman -Rns" #uninstall package and deps
- alias pacorph="sudo pacman -Qdt" #list all packages which are orphaned
- alias pacown="pacman -Qo" #determine which package owns a given file
- alias pacsearch="sudo pacman -Ss" #search for a package (not AUR)
- alias pacachec="pacman -Sc" #delete all package files from cache
- alias ysearch="yaourt -Ss" #search for a package AUR
- alias pacmanlog='less /var/log/pacman.log' #view pacman log
- alias errorlog='less /var/log/errors.log' #view error log
- alias size='sudo du -hsx * | sort -rh | head -10' #list 10 dir/files by size
- alias sizeall='sudo du -a /var | sort -n -r | head -n 10' #list 10 dir by size
- alias uuid="ls /dev/disk/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"
- alias yinstall="yaourt -S" #yaourt install package
- alias reboot="systemctl reboot" #reboot
- alias poweroff="systemctl poweroff" #reboot
- alias shutdown="systemctl poweroff" #poweroff
- alias supy="supybot Neo.conf" #execute supybot
- alias wee="weechat-curses" #execute weechat
- alias ncm="ncmpcpp" #execute ncmpcpp
- alias news="newsbeuter" #execute newsbeuter
- alias twit="pieppiep" #execure pieppiep
- alias twitr="pieppiep fetch 20" #fetch 20 twitter posts
- alias unetbootin="sudo unetbootin" #launch unetbootin
- alias gparted="sudo gparted" #launch gparted
- alias netlisten='lsof -i -P | grep LISTEN' #network monitor
- alias nstat="netstat -p TCP -eWc" #network monitor
- alias pizza="sleep 10m && echo ⚠⚠⚠ pizza is done ⚠⚠⚠ "
- alias userlist='cat /etc/passwd |grep "/bin/bash" |grep "[5-9][0-9][0-9]" |cut -d: -f1' #users
- alias age="sudo dumpe2fs $(mount | grep 'on \/ ' | awk '{print $1}') | grep 'Filesystem created:'" #age
- alias teamvstart="sudo systemctl start teamviewerd" #start teamviewer
- alias teamvstop="sudo systemctl stop teamviewerd" #stop teamviewer
- alias youtube="youtube-viewer -C" #youtube-viewer w/ colour
- alias youtubedl="youtube-viewer -d" #youtube-viewer download -[URL]
- alias subs="youtube-viewer -C -S" #youtube-viewer w/ colour/subscriptions
- alias sshon="sudo systemctl start sshd.service" #startssh
- alias sshoff="sudo systemctl stop sshd.service" #stop ssh
- alias starwars="telnet towel.blinkenlights.nl" #starwars ascii
- alias coweru="cower -u" #Check foreign packages for updates in the AUR.
- alias cowers="cower -s" #search repo
- alias coweri="cower -i" #info
- #alias cowerd="cower -d <nameofpkg>" #cower --download
- alias makepkgi="makepkg -ci" #build,install
- alias makepkgsci="makepkg -sci" #build,getdeps,clean,install
- alias pacmanlog='less /var/log/pacman.log' #view pacman log
- alias errorlog='less /var/log/errors.log' #view error log
- alias size='sudo du -hsx * | sort -rh | head -10' #list 10 dir/files by size
- alias sizeall='sudo du -a /var | sort -n -r | head -n 10' #list 10 dir by size
- alias uuid="ls /dev/disk/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