Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:shell [2019/05/17 15:43] – created lamboringo | linux:shell [2022/02/28 09:31] (current) – lamboringo | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | **aliases** | + | ==== systemwide ==== |
- | alias lsblk='lsblk -o NAME, | + | |
- | + | ||
- | + | ||
- | + | ||
- | **txt** | + | |
- | <code bash /usr/ | + | 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/ | ||
+ | # ALIASES | ||
+ | alias lsblk=' | ||
+ | alias l='ls -lhX --group-directories-first' | ||
+ | alias ssh=' | ||
+ | alias rsyncdr=" | ||
+ | alias rsynca=" | ||
+ | |||
+ | alias conda=' | ||
+ | |||
+ | alias cp='cp --preserve=xattr' | ||
+ | |||
+ | function lwhich { | ||
+ | ls -lh $(which $1) | ||
+ | } | ||
+ | |||
+ | # PATH | ||
+ | export PATH=$PATH: | ||
+ | |||
+ | # PROMPT | ||
+ | if [ " | ||
+ | then | ||
+ | export PSUSERCOL=1 | ||
+ | else | ||
+ | export PSUSERCOL=2 | ||
+ | fi | ||
+ | export PS1=" | ||
+ | |||
+ | </ | ||
+ | |||
+ | ==== root ==== | ||
+ | |||
+ | ==== user ==== | ||
+ | |||
+ | ==== utils ==== | ||
+ | <code bash ~/ | ||
#!/bin/bash | #!/bin/bash | ||
Line 29: | Line 74: | ||
- | <code bash /usr/ | + | <code bash ~/ |
#!/bin/bash | #!/bin/bash | ||