Last active
April 27, 2020 15:39
-
-
Save abdalmoez/cf8c1d539fea227d54dacc9610d7e38d to your computer and use it in GitHub Desktop.
My config for bashrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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