Add a few CLI tools
This commit is contained in:
parent
5df2c14626
commit
424e2ee837
3 changed files with 5 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
|||
alias ll='ls -lihF'
|
||||
alias la='ls -A'
|
||||
alias l='ll -A'
|
||||
hash eza 2>/dev/null && alias ls='eza'
|
||||
|
||||
alias sudo='sudo '
|
||||
alias grep='grep -n --color=auto'
|
||||
|
@ -13,6 +14,7 @@ alias ipb='ip --color --brief'
|
|||
alias mount_ro='mount -o ro,noexec,noatime,nodev,nosuid,noiversion'
|
||||
alias ryzom_season_change='date --date $(wget -q -O - "https://api.ryzom.com/time.php?format=xml" | sed "s/></>\n</g" | /bin/grep -e "day_of_season" -e "time_of_day" | sed "s/<day_of_season>/\(89-/" | sed "s/<time_of_day>/\(23-/g" | sed "s/<\/day_of_season>/\)\*72/" | sed "s/<\/time_of_day>/\)\*3/" | bc | tr "\n" "+" | sed "s/\+$/\n\"min\"\n/" | bc | tr -d "\n")'
|
||||
hash tree 2>/dev/null && alias t='tree'
|
||||
hash duf 2>/dev/null && alias du='duf'
|
||||
hash htop 2>/dev/null && alias top='htop'
|
||||
hash clang-format 2>/dev/null && alias clang-format='clang-format -style="{BasedOnStyle: llvm, IndentWidth: 4, AllowShortFunctionsOnASingleLine: None, KeepEmptyLinesAtTheStartOfBlocks: false}"'
|
||||
hash xscreensaver-command 2>/dev/null && alias lock='xscreensaver-command --lock'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue