Last active
October 9, 2015 10:27
-
-
Save noorus/3488132 to your computer and use it in GitHub Desktop.
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
umask 022 | |
export LC_ALL=en_US.UTF-8 | |
[ -z "$PS1" ] && return | |
HISTCONTROL=ignoreboth | |
shopt -s histappend | |
shopt -s checkwinsize | |
GIT_PS1_SHOWDIRTYSTATE=1 | |
if [ -f ~/.bash_aliases ]; then | |
. ~/.bash_aliases | |
fi | |
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then | |
. /etc/bash_completion | |
fi | |
alias ll='ls -lah' | |
alias la='ls -A' | |
alias l='ls -CF' | |
alias cp='cp -i ' | |
alias mv='mv -i ' | |
alias rm='rm -i ' | |
PS1="\[\033[1;30m\][\[\033[1;35m\]\$(date +%H:%M)\[\033[1;30m\]][\[\033[1;35m\]\u@\h\[\033[1;30m\]]\n[\[\033[1;32m\]\w\[\033[1;31m\]\$(__git_ps1 \"(%s)\")\[\033[1;30m\]]\[\033[1;34m\]:\[\033[0m\] " | |
if [ -x /usr/bin/dircolors ]; then | |
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" | |
eval "`dircolors -b`" | |
alias ls='ls --color=auto ' | |
alias dir='dir --color=auto' | |
alias vdir='vdir --color=auto' | |
alias grep='grep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
alias egrep='egrep --color=auto' | |
fi | |
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then | |
debian_chroot=$(cat /etc/debian_chroot) | |
fi | |
case "$TERM" in | |
xterm*|rxvt*) | |
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" | |
;; | |
*) | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment