How to create bash script to do/undo setting locale with one alias? -


how create bash script (to make alias of it), doing this:

if lang=en_us.utf-8 "unset lang" else "export lang=en_us.utf-8" 

adding

en() { if [[ $lang == "en_us.utf-8" ]] unset lang else export lang=en_us.utf-8 fi } 

to ~/.bash_profile works!


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -