Created
October 18, 2021 07:57
-
-
Save askdaddy/bfdbdd5ba409d9a292af0c3e399532ad to your computer and use it in GitHub Desktop.
bash profile
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
#!/bin/bash | |
#### https://gist.github.com/hernamesbarbara/1937937 | |
export TERM=xterm-color | |
export CLICOLOR=1 | |
export GREP_OPTIONS='--color=auto' | |
# export LSCOLORS=Exfxcxdxbxegedabagacad | |
export LSCOLORS=gxfxcxdxbxegedabagacad # Dark lscolor scheme | |
# Don't put duplicate lines in your bash history | |
export HISTCONTROL=ignoredups | |
# increase history limit (100KB or 5K entries) | |
export HISTFILESIZE=100000 | |
export HISTSIZE=5000 | |
# Define some colors first: | |
RED='\[\e[1;31m\]' | |
BOLDYELLOW='\[\e[1;33m\]' | |
GREEN='\[\e[0;32m\]' | |
BLUE='\[\e[1;34m\]' | |
DARKBROWN='\[\e[1;33m\]' | |
DARKGRAY='\[\e[1;30m\]' | |
CUSTOMCOLORMIX='\[\e[1;30m\]' | |
DARKCUSTOMCOLORMIX='\[\e[1;32m\]' | |
LIGHTBLUE='\[\033[1;36m\]' | |
PURPLE='\[\e[1;35m\]' | |
NC='\[\e[0m\]' # No Color | |
#PS1="\[\033[1;34;40m[\033[1;31;40m\u@\h:\w\033[1;34;40m]\033[1;37;40m $\033[0;37;0m\] " | |
#PS1="${CUSTOMCOLORMIX}\\u@\h: \\W]\\$ ${NC}" | |
#PS1="${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\$(parse_git_branch)\[\033[00m\]\$" | |
PS1="${LIGHTBLUE}\\u ${BOLDYELLOW}[\\W] ${PURPLE}\$(parse_git_branch)${DARKCUSTOMCOLORMIX}$ ${NC}" | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
export -f parse_git_branch | |
alias ls='ls --color=auto' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment