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

Upgrade php version of xampp not success -

amazon web services - S3 and apache mod_proxy with basic authentication -

Change font size on axis for excel chart with powershell -