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

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -