在中文語系下有些console顯示的項目無法對齊,只好來作些多餘的動作,切回英文顯示,然後再切換回來。
~/bin/df.sh
--------------------------------------------
#/bin/sh
#alias df='~/bin/df.sh'
lang=$LANG
export LANG=en
df $1 $2 $3
export LANG=$lang
lang=
--------------------------------------------
.bashrc
--------------------------------------------
...
alias df='~/bin/df.sh'
alias dir='ls -l --color=auto'
...
--------------------------------------------
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment