mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 20:59:23 +01:00
{bash,zsh}rc: ugly hack to ensure language
This commit is contained in:
parent
bcce27ac4a
commit
5a0218d3f3
@ -137,8 +137,7 @@ fi
|
|||||||
# the system, so I can do away with a lot of checks for Darwin
|
# the system, so I can do away with a lot of checks for Darwin
|
||||||
if hash lsb_release 2> /dev/null; then
|
if hash lsb_release 2> /dev/null; then
|
||||||
(
|
(
|
||||||
LC_ALL="en_DK.UTF-8"
|
export LC_ALL="en_DK.UTF-8"
|
||||||
LANGUAGE=en
|
|
||||||
hostname --all-fqdns
|
hostname --all-fqdns
|
||||||
hostname --all-ip-addresses
|
hostname --all-ip-addresses
|
||||||
printf "\n"
|
printf "\n"
|
||||||
@ -152,6 +151,7 @@ if hash lsb_release 2> /dev/null; then
|
|||||||
|
|
||||||
printf "\n"
|
printf "\n"
|
||||||
df / $HOME --human-readable --output=source,fstype,size,used,avail,pcent | uniq
|
df / $HOME --human-readable --output=source,fstype,size,used,avail,pcent | uniq
|
||||||
|
unset LC_ALL
|
||||||
)
|
)
|
||||||
|
|
||||||
# Only print motivational phrases if username is aminda or mikaela
|
# Only print motivational phrases if username is aminda or mikaela
|
||||||
|
4
rc/zshrc
4
rc/zshrc
@ -30,8 +30,7 @@ fi
|
|||||||
# the system, so I can do away with a lot of checks for Darwin
|
# the system, so I can do away with a lot of checks for Darwin
|
||||||
if hash lsb_release 2> /dev/null; then
|
if hash lsb_release 2> /dev/null; then
|
||||||
(
|
(
|
||||||
LC_ALL="en_DK.UTF-8"
|
export LC_ALL="en_DK.UTF-8"
|
||||||
LANGUAGE=en
|
|
||||||
hostname --all-fqdns
|
hostname --all-fqdns
|
||||||
hostname --all-ip-addresses
|
hostname --all-ip-addresses
|
||||||
printf "\n"
|
printf "\n"
|
||||||
@ -44,6 +43,7 @@ if hash lsb_release 2> /dev/null; then
|
|||||||
fi
|
fi
|
||||||
printf "\n"
|
printf "\n"
|
||||||
df / $HOME --human-readable --output=source,fstype,size,used,avail,pcent | uniq
|
df / $HOME --human-readable --output=source,fstype,size,used,avail,pcent | uniq
|
||||||
|
unset LC_ALL
|
||||||
)
|
)
|
||||||
|
|
||||||
# Only print motivational phrases if username is aminda or mikaela
|
# Only print motivational phrases if username is aminda or mikaela
|
||||||
|
Loading…
Reference in New Issue
Block a user