Skip to content

Instantly share code, notes, and snippets.

@abdalmoez
Last active April 27, 2020 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abdalmoez/cf8c1d539fea227d54dacc9610d7e38d to your computer and use it in GitHub Desktop.
Save abdalmoez/cf8c1d539fea227d54dacc9610d7e38d to your computer and use it in GitHub Desktop.
My config for bashrc
export HISTIGNORE=$'[ \t]*:&:[fb]g:exit' # Don't put duplicate lines in the history.
alias grep='grep --color=always' # show differences in colour
alias ls='ls -h --color=tty' # Dispaly size unit, classify files in colour
alias ll='ls -l' # long list
alias la='ls -A' # all but . and ..
alias l='ls -CF' #
alias cd.='cd ..'
alias cd..='cd ../..'
alias cd...='cd ../../..'
alias cd....='cd ../../../..'
source ~/.git-prompt.sh # Import __git_ps1
#PS1 Without Git:
#export PS1='\[\033[01;34m\]$(date +%Y.%m.%d) \[\033[35m\]\t\[\033]0; $TITLEPREFIX:$PWD\007\] \[\033[32m\]\u@\h:\[\033[33m\]\w\[\033[0m\] \n$ '
#PS1 With Git:
export PS1='\[\033[01;34m\]$(date +%Y.%m.%d) \[\033[35m\]\t\[\033]0; $TITLEPREFIX:$PWD\007\] \[\033[32m\]\u@\h:\[\033[33m\]\w\[\033[36m\]`__git_ps1`\[\033[40;0m\] \n$ '
#Switch to current working directory if defined
[[ ! -z $CWD ]] && cd $CWD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment