zsh theme for full path + display git changes

You can modify the second line of this file: ~/.oh-my-zsh/themes/robbyrussell.zsh-theme Which looks like this: PROMPT+=’ %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)’ # ^ replace c with ~ Then source theme again: source ~/.zshrc It will now show the path relative to your home directory (~). For example: # BEFORE ➜ sqlboiler git:(master) # AFTER ➜ ~/open-source/sqlboiler git:(master)

ZSH not recognizing my aliases?

if you do a very simple alias in zsh, does it work? open your .zshrc file, and add the following line: alias ls=”ls -GpF” after adding that line, type this line in your Terminal: source ~/.zshrc tell us what happens. Also, just for shiggles, make sure you are using single quotes vs. double quotes, I … Read more

Fix key settings (Home/End/Insert/Delete) in .zshrc when running Zsh in Terminator Terminal Emulator

To know the code of a key, execute cat, press enter, press the key, then Ctrl+C. For me, Home sends ^[[H and End ^[[F, so i can put i my .zshrc in my home dir bindkey “^[[H” beginning-of-line bindkey “^[[F” end-of-line bindkey “^[[3~” delete-char These codes could change with the terminal emulator you use. autoload … Read more

How can you export your .bashrc to .zshrc?

While lhunath’s answer pushed me in the right direction, zsh does not seem to source .profile automatically. Lot’s of good info on this topic can be found on this superuser post. The adaption I’m using is putting common aliases and functions in .profile and manually sourcing them as follows: In ~/.bashrc: source ~/.profile In ~/.zshrc: … Read more