init
This commit is contained in:
commit
a92374aa00
4 changed files with 303 additions and 0 deletions
45
.bashrc
Normal file
45
.bashrc
Normal file
|
@ -0,0 +1,45 @@
|
|||
# ~/.bashrc: executed by bash(1) for non-login shells.
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
[ -z "$PS1" ] && return
|
||||
|
||||
# ignoredups and ignorespace
|
||||
HISTCONTROL=ignoreboth
|
||||
|
||||
# append to the history file, don't overwrite it
|
||||
shopt -s histappend
|
||||
|
||||
# check the window size after each command and, if necessary,
|
||||
# update the values of LINES and COLUMNS.
|
||||
shopt -s checkwinsize
|
||||
|
||||
red='\[\e[0;31m\]'
|
||||
RED='\[\e[1;31m\]'
|
||||
blue='\[\e[0;34m\]'
|
||||
BLUE='\[\e[1;34m\]'
|
||||
cyan='\[\e[0;36m\]'
|
||||
CYAN='\[\e[1;36m\]'
|
||||
green='\[\e[0;32m\]'
|
||||
GREEN='\[\e[1;32m\]'
|
||||
yellow='\[\e[0;33m\]'
|
||||
YELLOW='\[\e[1;33m\]'
|
||||
PURPLE='\[\e[1;35m\]'
|
||||
purple='\[\e[0;35m\]'
|
||||
nc='\[\e[0m\]'
|
||||
|
||||
if [ -f /usr/share/git/completion/git-prompt.sh ]; then
|
||||
source /usr/share/git/completion/git-prompt.sh
|
||||
fi
|
||||
|
||||
if [ -f ~/.bash_aliases ]; then
|
||||
source ~/.bash_aliases
|
||||
fi
|
||||
|
||||
if [ -f ~/.bash_aliases.local ]; then
|
||||
source ~/.bash_aliases.local
|
||||
fi
|
||||
|
||||
PS1="$PURPLE\u$nc@$CYAN\H$nc:$GREEN\w$YELLOW"'$(__git_ps1)'"$nc\\n$GREEN\$$nc "
|
||||
|
||||
export PATH=/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin:~/bin
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue