Add back the ryzom_season_change alias

This commit is contained in:
Rodolphe Breard 2017-06-18 17:51:57 +02:00
parent b0d0d2c8ff
commit 3c6b3f5d29

View file

@ -9,6 +9,7 @@ alias j='jobs'
alias df='df -h'
alias du='du -ch'
alias mount_ro='mount -o ro,noexec,noatime,nodev,nosuid,noiversion'
alias ryzom_season_change='date --date $(wget -q -O - "http://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 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}"'