Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:shell [2019/06/20 09:08] – [systemwide] lamboringolinux:shell [2022/02/28 09:31] (current) lamboringo
Line 1: Line 1:
 ==== systemwide ==== ==== systemwide ====
 +
 +colors and codes for tput: bold, sgr0 
 +
 +  * 0 → dark grey
 +  * 1 → red
 +  * 2 → green
 +  * 3 → dark yellow
 +  * 4 → dark blue
 +  * 5 → mauve
 +  * 6 → turquoise
 +  * 7 → white
 +  * 8 → lighter grey
 +  * 9 → lighter red
 +
 +
 +
 <code bash /etc/profile.d/custom.sh> <code bash /etc/profile.d/custom.sh>
 # ALIASES # ALIASES
Line 11: Line 27:
    
 alias cp='cp --preserve=xattr' alias cp='cp --preserve=xattr'
- + 
 +function lwhich { 
 +   ls -lh $(which $1) 
 +}  
 # PATH # PATH
 export PATH=$PATH:~/bin export PATH=$PATH:~/bin
Line 22: Line 42:
  export PSUSERCOL=2  export PSUSERCOL=2
 fi fi
-export PS1="$(tput bold ; tput setaf $PSUSERCOL)### $(tput setaf 7)\d \A  $(tput setaf $PSUSERCOL)\u $(tput setaf 3)\H $(tput setaf 2)\w $(tput sgr0)\n\$ "+export PS1="$(tput -Txterm-256color bold ; tput -Txterm-256color setaf $PSUSERCOL)### $(tput -Txterm-256color setaf 7)\d \A  $(tput -Txterm-256color setaf $PSUSERCOL)\u $(tput -Txterm-256color setaf 3)\H $(tput -Txterm-256color setaf 2)\w $(tput -Txterm-256color sgr0)\n\$ "
  
 </code>   </code>