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 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | # /home/user/.bashrc
if [[ "${FORCE_PORTAGE_COLORGCC_ON}" ]]; then
if [[ $PATH != /usr/lib/colorgcc/bin:* ]] ; then
export PATH="/usr/lib/colorgcc/bin:$PATH"
fi
fi
if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi
complete -cf sudo
PATH=$PATH:/usr/gcc/4.4/bin:/opt/firefox/
export PATH
PS1='$(if [[ $? == 0 ]]; then echo "\[\033[01;32m\]\342\234\223"; else echo "\[\033[01;31m\]\342\234\227"; fi) \[\033[01;31m\]\u\[\033[01;34m\]\[\033[1;33m\]@\[\033[01;36m\] \w $ \[\033[00m\]'
PROMPT_COMMAND='history -a;history -n'
export HISTSIZE=100500
export HISTCONTROL=ignoredups:erasedups
export HISTTIMEFORMAT="%h %d %H:%M:%S "
export HISTIGNORE="history"
export MANPAGER="/usr/bin/most"
export PATH="/usr/lib/ccache/bin:/usr/lib64/ccache/bin/:${PATH}"
export PATH="/usr/local:/usr/local/lib:/usr/local/bin:${PATH}"
export TERM=rxvt-unicode-256color
export EIX_LIMIT=0
shopt -s cdspell
unpack () {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.tar.xz) tar xvJf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) unrar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xvf $1 ;;
*.tbz2) tar xvjf $1 ;;
*.tgz) tar xvzf $1 ;;
*.zip) unzip $1 ;;
*.Z) uncompress $1 ;;
*.7z) 7z x $1 ;;
*.xz) unxz $1 ;;
*.exe) cabextract $1 ;;
*) echo "\`$1': Unknown method of file compression" ;;
esac
else
echo "\`$1' no foud"
fi
}
alias delvin="sshpass -p 'YOU_PASS' ssh -X NAME@HOST"
alias sshmount="echo YOU_PASS | sshfs NAME@HOST:/ /mnt/ssh -o password_stdin"
alias duh='du -h --max-depth=1'
alias egrep='egrep --colour=auto'
alias fgrep='fgrep --colour=auto'
alias grep='grep --color=auto -i'
alias kill='kill -s SIGKILL'
alias ls='ls -h --color=auto'
alias lh='ls -lh --color=auto'
alias free='free -h'
alias df='df -h'
alias lsr='ls -lSr'
alias reswap='sudo swapoff -a && sudo swapon -a'
alias scren-tty="fbgrab ~/screenshot/tty.png"
alias rm='rm -i'
alias pogoda='/usr/bin/wego'
alias emerge='ionice -c 2 -n 7 nice -n 19 emerge'
alias viva="ps -aux|grep [v]iva |awk '{print \$2}'|wc -l"
alias mem="watch -n 1 free -h"
alias finish="sudo shutdown -r now"
alias python='python -q'
alias psa='ps -aux | grep -v grep | grep'
alias dlink="dlink 192.168.0.1"
alias proxyget="torify wget"
alias pip3.6="python3.6 -m pip install --user"
alias clbin='curl -F "f:1=<-" ix.io'
|
x
Notes
My .bashrc