Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:shell [2019/06/18 08:48] – lamboringo | linux:shell [2022/02/28 09:31] (current) – lamboringo | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ==== 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 / | <code bash / | ||
# ALIASES | # ALIASES | ||
alias lsblk=' | alias lsblk=' | ||
- | alias l='ls -lh' | + | 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 | # PATH | ||
export PATH=$PATH: | export PATH=$PATH: | ||
+ | |||
+ | # PROMPT | ||
+ | if [ " | ||
+ | then | ||
+ | export PSUSERCOL=1 | ||
+ | else | ||
+ | export PSUSERCOL=2 | ||
+ | fi | ||
+ | export PS1=" | ||
+ | |||
</ | </ | ||
- | | ||
- | | ||
- | **txt** | ||
- | <code bash /usr/ | + | ==== root ==== |
+ | |||
+ | ==== user ==== | ||
+ | |||
+ | ==== utils ==== | ||
+ | <code bash ~/ | ||
#!/bin/bash | #!/bin/bash | ||
Line 34: | Line 74: | ||
- | <code bash /usr/ | + | <code bash ~/ |
#!/bin/bash | #!/bin/bash | ||