Hi,
ich habe folgende Aliases in der ~/.bashrc stehen
alias n="nano -w"
alias d="ls --color -h"
alias ls="ls --color=auto -h"
alias ll="ls --color -l -h"
alias la="ls --color -a -h"
alias lal="ls --color -a -l -h"
alias l="dir"
alias lx="ls -Fsh"
alias dir="pwd; ls;ls | wc -w"
alias csize="du -k | sort -r -n | more"
alias du="du -h"
alias cp="cp -i"
alias mv="mv -i"
alias rm="rm -i"
alias ram="/usr/bin/free -m"
alias mce="mcedit"
alias diff="colordiff"
alias x="clear && exit"
alias q="exit"
alias root="sudo /bin/bash --login"
alias free="du -h --max-depth=1"
alias blank="echo < /dev/null >"
alias grep="grep --color=auto"
alias h="history"
alias kernelinfo="finger anonymous@kernel.org"
alias nc="ncmpc -c"
Was auch eine sehr nette Funktion ist:
function psgrep()
{
ps aux | grep -e $1
}
Was folgendes zaubert:
[02:56:17] <bomba@mimas> ~ ((Linux 2.6.26-rc9))
0 processes #3 $ psgrep konsole
bomba 12699 0.5 0.9 146460 19088 ? S 02:40 0:05 konsole [kdeinit]
bomba 13899 0.0 0.0 10016 1080 pts/9 S+ 02:56 0:00 grep --color=auto -e konsole
Und ich finde meine PS1 ausgabe sehr nett (sonst würd ich sie nicht nutzen 😉)
PS1="\[\033[0;34m\][\t] \[\033[1;32m\]<\[\033[0;32m\]\u\[\033[0;31m\]@\[\033[0;33m\]\H\[\033[1;32m\]> \[\033[1;30m\]\w\[\033[0m\] \[\033[1;32m\]((\[\033[0m\]$(uname -s -r)\[\033[1;32m\]))\[\033[0m\]\n\[\033[4;1;34m\]\j processes\[\033[0m\] \[\033[1;33m\]#\# \[\033[1;31m\]\$\[\033[0;1;39m\] "
Grüßle