Created
August 26, 2017 10:20
-
-
Save emir/2f55457557b226db8e849269de619adc to your computer and use it in GitHub Desktop.
adding active language to right side of zsh prompt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function active_lang { | |
| osascript -e 'tell application "System Events" to tell process "SystemUIServer" to get the value of the first menu bar item of menu bar 1 whose description is "text input"' | |
| } | |
| RPROMPT='$(active_lang)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment