Updated bash_aliases
This commit is contained in:
parent
ccc8ff8074
commit
bace6d919b
1 changed files with 30 additions and 33 deletions
63
bash_aliases
63
bash_aliases
|
@ -1,39 +1,36 @@
|
|||
alias ls='ls --color=auto'
|
||||
alias dir='dir --color=auto'
|
||||
alias vdir='vdir --color=auto'
|
||||
alias grep='grep --color=auto'
|
||||
alias fgrep='fgrep --color=auto'
|
||||
alias egrep='egrep --color=auto'
|
||||
|
||||
# some more ls aliases
|
||||
alias ll='ls -Fhl'
|
||||
alias la='ll -a'
|
||||
alias l='ls -FCh'
|
||||
|
||||
alias gzc='gzip --best --no-name'
|
||||
alias bz2c='bzip2 --best'
|
||||
alias xzc='xz --best --extreme'
|
||||
|
||||
alias alert='notify-send --urgency=low -i "$([ $? -eq 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
||||
alias apt-autoclean='sudo apt-get autoclean'
|
||||
alias apt-autoremove='sudo apt-get --purge autoremove'
|
||||
alias apt-update='sudo apt-get update'
|
||||
alias apt-upgrade='sudo aptitude --purge dist-upgrade'
|
||||
alias apt-autoremove='sudo apt-get --purge autoremove'
|
||||
alias apt-autoclean='sudo apt-get autoclean'
|
||||
alias update-system='apt-update && sudo aptitude -y -s dist-upgrade'
|
||||
alias upgrade-system='apt-upgrade && apt-autoremove && apt-autoclean'
|
||||
alias telnet='telnet -e "#"'
|
||||
alias picocom='picocom -b 115200'
|
||||
alias netcat='netcat -q -1 -vv'
|
||||
alias svn_mime_set='for a in $(find ./ -type f -not -regex ".*\.svn.*"); do svn pset svn:mime-type $(file --mime-type $a | sed "s/ *//g;s/[^:]*://g") $a; done;'
|
||||
|
||||
alias clean-gpg="for a in `gpg2 -k | sed -rn 's/pub +[0-9]+[DR]\/(0x[0-9A-Fa-f]+).*/\1/p'`; do gpg2 --quiet --no-tty --edit-key $a clean save; done;"
|
||||
alias alert='notify-send --urgency=low -i "$([ $? -eq 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
||||
alias git-patch='git diff --minimal --find-renames --find-copies --relative ./ > ../$(basename `pwd`).patch && git co -- ./'
|
||||
alias ssh-add-all='for a in .ssh/id_*; do ssh-add $a; done;'
|
||||
alias screen='screen -RU'
|
||||
alias bz2c='bzip2 --best'
|
||||
alias ..='cd ..'
|
||||
alias ...='cd ../../'
|
||||
alias ....='cd ../../../'
|
||||
alias cdiff="colordiff"
|
||||
xmlformat () { xmllint --format "$1" | unexpand -t 2 --first-only; }
|
||||
alias clean-gpg="for a in `gpg2 -k | sed -rn 's/pub +[0-9]+[DR]\/(0x[0-9A-Fa-f]+).*/\1/p'`; do gpg2 --quiet --no-tty --edit-key $a clean save; done;"
|
||||
alias dir='dir --color=auto'
|
||||
alias egrep='egrep --color=auto'
|
||||
alias fgrep='fgrep --color=auto'
|
||||
alias git-patch='git diff --minimal --find-renames --find-copies --relative ./ > ../$(basename `pwd`).patch && git co -- ./'
|
||||
alias grep='grep --color=auto'
|
||||
alias gzc='gzip --best --no-name'
|
||||
alias jar='java -jar'
|
||||
|
||||
alias ls='ls --color=auto'
|
||||
alias l='ls -FCh'
|
||||
alias ll='ls -Fhl'
|
||||
alias la='ll -a'
|
||||
alias netcat='netcat -q -1 -vv'
|
||||
alias picocom='picocom -b 115200'
|
||||
alias screen='screen -RU'
|
||||
alias ssh-add-all='for a in .ssh/id_*; do ssh-add $a; done;'
|
||||
alias svn_mime_set='for a in $(find ./ -type f -not -regex ".*\.svn.*"); do svn pset svn:mime-type $(file --mime-type $a | sed "s/ *//g;s/[^:]*://g") $a; done;'
|
||||
alias telnet='telnet -e "#"'
|
||||
alias update-system='apt-update && sudo aptitude -y -s dist-upgrade'
|
||||
alias upgrade-system='apt-upgrade && apt-autoclean'
|
||||
alias vdir='vdir --color=auto'
|
||||
alias xzc='xz --best --extreme'
|
||||
function ddg() { www-browser "https://duckduckgo.com/?q=`escape "$@"`"; }
|
||||
function escape() { perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$@"; }
|
||||
function gg() { x-www-browser "https://www.google.de/search?q=`escape "$@"`"; }
|
||||
function ddg() { www-browser "https://duckduckgo.com/?q=`escape "$@"`"; }
|
||||
function xmlformat () { xmllint --format "$1" | unexpand -t 2 --first-only; }
|
||||
|
|
Loading…
Reference in a new issue