Differences

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

Link to this comparison view

Next revision
Previous revision
linux:shell [2019/05/17 15:43] – created lamboringolinux:shell [2022/02/28 09:31] (current) lamboringo
Line 1: Line 1:
-**aliases** +==== systemwide ====
-  alias lsblk='lsblk -o NAME,SIZE,FSTYPE,LABEL,MOUNTPOINT,UUID,MODEL,SERIAL,STATE,TYPE' +
-   +
-   +
-   +
-**txt**+
  
-<code bash /usr/bin/csvview>+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> 
 +# ALIASES 
 +alias lsblk='lsblk -o NAME,SIZE,FSTYPE,LABEL,MOUNTPOINT,UUID,MODEL,SERIAL,STATE,TYPE' 
 +alias l='ls -lhX --group-directories-first' 
 +alias ssh='ssh -o ServerAliveInterval=100 -Y' 
 +alias rsyncdr="rsync --dry-run --itemize-changes -a --stats -h --filter='dir-merge /NOBACKUP'  --filter='dir-merge /NOBACKUP.fichant11' --exclude='.~*'" 
 +alias rsynca="rsync            --itemize-changes -a --stats -h --filter='dir-merge /NOBACKUP'  --filter='dir-merge /NOBACKUP.fichant11' --exclude='.~*'" 
 +  
 +alias conda='unset PYTHONUSERBASE && conda' 
 +  
 +alias cp='cp --preserve=xattr' 
 + 
 +function lwhich { 
 +   ls -lh $(which $1) 
 +}  
 + 
 +# PATH 
 +export PATH=$PATH:~/bin 
 + 
 +# PROMPT 
 +if [ "$EUID" == "0" ]; 
 +then 
 + export PSUSERCOL=1 
 +else 
 + export PSUSERCOL=2 
 +fi 
 +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>   
 + 
 +==== root ==== 
 + 
 +==== user ==== 
 + 
 +==== utils ==== 
 +<code bash ~/bin/csvview>
 #!/bin/bash #!/bin/bash
  
Line 29: Line 74:
  
  
-<code bash /usr/bin/tsvview>+<code bash ~/bin/tsvview>
 #!/bin/bash #!/bin/bash