41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
#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='cat ~/.bash_eternal_history|grep $@'
|
|
#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 upgrade'
|
|
alias autoremove='sudo apt-get autoremove'
|
|
alias ..='cl ..'
|
|
alias ytdl="youtube-dl $@ -x --audio-format mp3 --audio-quality 0 -c -o '%(title)s.%(ext)s'"
|
|
alias tux="tmux a||tmux"
|
|
alias rmgit="git remote rm origin;git remote rm https"
|