dotfiles

andersuno dotfiles
git clone git://git.andersuno.nu/dotfiles.git
Log | Files | Refs | README

.bashrc (1549B)


      1 #
      2 # ~/.bashrc
      3 #
      4 
      5 # If not running interactively, don't do anything
      6 [[ $- != *i* ]] && return
      7 
      8 PS1='[\u@\h \W]\$ '
      9 
     10 # Source global definitions
     11 if [ -f /etc/bashrc ]; then
     12 	. /etc/bashrc
     13 fi
     14 
     15 # Source aliases
     16 if [ -f ~/.bash_aliases ]; then
     17     . ~/.bash_aliases
     18 fi
     19 
     20 # User specific environment
     21 if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
     22 then
     23     PATH="$HOME/.local/bin:$HOME/bin:$PATH"
     24 fi
     25 export PATH
     26 
     27 #Foreground colors, Normal (non-bold) is the default, so the 0; prefix is optional.
     28 #
     29 #\e[0;30m = Dark Gray
     30 #\e[1;30m = Bold Dark Gray
     31 #\e[0;31m = Red
     32 #\e[1;31m = Bold Red
     33 #\e[0;32m = Green
     34 #\e[1;32m = Bold Green
     35 #\e[0;33m = Yellow
     36 #\e[1;33m = Bold Yellow
     37 #\e[0;34m = Blue
     38 #\e[1;34m = Bold Blue
     39 #\e[0;35m = Purple
     40 #\e[1;35m = Bold Purple
     41 #\e[0;36m = Turquoise
     42 #\e[1;36m = Bold Turquoise
     43 #\e[0;37m = Light Gray
     44 #\e[1;37m = Bold Light Gray
     45 #
     46 #Background colors:
     47 #
     48 #\e[40m = Dark Gray
     49 #\e[41m = Red
     50 #\e[42m = Green
     51 #\e[43m = Yellow
     52 #\e[44m = Blue
     53 #\e[45m = Purple
     54 #\e[46m = Turquoise
     55 #\e[47m = Light Gray
     56 
     57 #Vi mode
     58 #set -o vi
     59 
     60 
     61 #Exports
     62 #export PS1='┌──[\u@\h]─[\w]\n└──╼ \$ '
     63 #export PS1='\[\033[0;32m\]\u\[\033[1;33m\]@\[\033[0;31m\]\h\[\033[0m\]:\[\033[0;34m\]\w\[\033[0m\]\$ '
     64 
     65 export PS1="\[\e[1;32m\]┌──[\[\e[0;36m\]\u\[\e[0;32m\]@\[\e[0;31m\]\h\[\e[1;32m\]]─[\[\e[0;34m\]\w\[\e[1;32m\]]\n\[\e[1;32m\]└──╼ \$\[\e[0;0m\] "
     66 #export PS1="\[\e[1;32m\][\[\e[0;36m\]\u\[\e[0;32m\]@\[\e[0;31m\]\h\[\e[1;32m\]]─[\[\e[0;34m\]\w\[\e[1;32m\]]\$\[\e[0;0m\] "
     67 
     68 
     69 # ~/Scripts/pfetch
     70 
     71 complete -C /usr/bin/vault vault