![]() ![]() zsh-syntax-highlighting: Provides syntax highlighting for the shell zsh.In particular: the branch name, difference with remote branch, number of files staged or changed, etc. git-prompt: Displays information about the current git repository.export ZSH = "/Users/cesarsv/.oh-my-zsh" # Which plugins would you like to load? # Standard plugins can be found in $ZSH/plugins/ # Custom plugins may be added to $ZSH_CUSTOM/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. To use a plugin, add the name of the plugin in the ~/.zshrc file. ![]() Oh My Zsh has a vast list of awesome plugins. I use git-prompt via the global variable $GIT_PROMPT to show the status of the current Git repository when applicable. You can show the version of other programming languages as well, here is the list of available options.Īlso note that I customize the colors via $FG, see an explanation here. Note that I add jenv_prompt_info in line #31 to show the Java version that I’m currently using directly in the prompt. The gnzh theme is located by default in ~/.oh-my-zsh/themes/gnzh.zsh-theme. export ZSH = "/Users/cesarsv/.oh-my-zsh" # Set name of the theme to load - if set to "random", it will # load a random theme each time oh-my-zsh is loaded, in which case, # to know which specific one was loaded, run: echo $RANDOM_THEME # See ` ZSH_THEME = "gnzh" ` source $ZSH/oh-my-zsh.sh In order to enable a theme, set ZSH_THEME to the name of the theme in your ~/.zshrc, before sourcing Oh My Zsh. The configuration file is located at ~/.zshrc. To install Oh My Zsh, execute the following command in the terminal: 1 It offers a tons of themes, functions, helpers, plugins, and other handy features. This is an open-source and popular zsh configuration manager. I use Oh My Zsh, as a shell replacement for macOS. The second step is getting a better shell.
0 Comments
Leave a Reply. |