[bash] Updating aliases, adding hrhup
This commit is contained in:
@ -26,13 +26,12 @@ eosup() {
|
||||
|
||||
# quick way to fix clock drift in UTM VM
|
||||
toggle_ntp() {
|
||||
timedatectl set-ntp "$(
|
||||
timedatectl show -p NTP --value | grep -qi '^yes$' && echo false || echo true
|
||||
)"
|
||||
timedatectl set-ntp "$(
|
||||
timedatectl show -p NTP --value | grep -qi '^yes$' && echo false || echo true
|
||||
)"
|
||||
}
|
||||
alias fixtime="toggle_ntp && toggle_ntp"
|
||||
|
||||
|
||||
local hostname="%{$fg_bold[white]%}%m"
|
||||
|
||||
PROMPT="${hostname} ${PROMPT}"
|
||||
|
||||
Reference in New Issue
Block a user