#Colors! alias ls='ls --color=always -F' alias less='less -r' alias tree='tree -C' alias grep="grep --color=auto" alias skim="(head -5; tail -5) <" # Show where you copy alias cp="cp -v" alias la='ls -lah $LS_COLOR' function cl(){ cd "$@" && ls; } alias dt='date "+%F %T"' #HISTCONTROL=ignoredups #PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ; }"'echo `dt` `pwd` $$ $USER "$(history 1)" >> ~/.bash_eternal_history && sed -i \'$ d\' ~/.bash_eternal_history' if [ "$BASH" ]; then export HISTTIMEFORMAT="%Y-%m-%d_%H:%M:%S " export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ; }"'echo "`date +'%y.%m.%d-%H:%M:%S:'`" $USER "$(pwd)" "$(history 1 | cut -c8-)" >> ~/.bash_eternal_history' alias ehistory='tail -f ~/.bash_eternal_history' #export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ; }"'echo "`date +'%y.%m.%d-%H:%M:%S:'`" $USER "$(pwd)" "$(history 1 | cut -c8-)" >> /var/log/hist' #alias ehistory='tail -f /var/log/hist' readonly PROMPT_COMMAND readonly HISTSIZE readonly HISTFILE readonly HOME readonly HISTIGNORE readonly HISTCONTROL fi alias install='sudo apt-get install' alias remove='sudo apt-get remove' alias update='sudo apt-get update' alias upgrade='sudo apt-get update && sudo apt-get upgrade' alias ..='cl ..' alias ytdl="youtube-dl $@ -x --audio-format mp3 --audio-quality 0 -c -o '%(title)s.%(ext)s'"