fpwd() { pwd | sed -e "s|^$HOME|~|" -e 's-\([^/.]\)[^/]*/-\1/-g' } twt() { printf "$(date +%FT%T%:z)\t%s\n" "$1" >> ~/www/htdocs/twts } s() { s=$? test "$s" -ne 0 && printf "\033[31;1m[%s]\033[0m" "$s" } alias rm="rm -i" alias cdtemp="cd \$(mktemp -d)" alias pb="curl -F\"file=@-;\" https://envs.sh" alias diff="colordiff" PS1="" PS1="\$LOGNAME@\[\e[33m\]$(hostname)\[\e[m\]" PS1=$PS1" \$(fpwd)" if test "$(id -u)" -eq 0 then PS1="$PS1 \[\e[91m\]#\[\e[m\] " else PS1="\[\e[0;96m\]|\[\e[m\]$PS1 " fi crontab() { if test "$#" -eq 1 && test "$1" == "-e" then "$VISUAL" "$LOCALCRONTAB" command crontab "$LOCALCRONTAB" else command crontab "$@" fi }