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

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

How to install ruby on rails -

powershell - This solution contains one or more assemblies targeted for the global assembly cache -