Keep Git Branch Name Untruncated in Shell using p10k (Oh My Zsh theme)
As of July 2022, the line to delete is 400 (( $#branch > 32 )) && branch[13,-13]=”…” # <– this line
As of July 2022, the line to delete is 400 (( $#branch > 32 )) && branch[13,-13]=”…” # <– this line
Make sure your export/source are added after the plugins in your zshrc, as stated in this post: oh-my-zsh config file not loading
Found the solution: # Added zsh shell. sudo apt-get install zsh wget –no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O – | sh sudo chsh -s /bin/zsh vagrant zsh As an nice addition, so that your terminals don’t look too similar on the different boxes # Change the oh my zsh default theme. sed -i ‘s/ZSH_THEME=”robbyrussell”/ZSH_THEME=”3den”/g’ ~/.zshrc
Unless I’m misunderstanding the marked answer from Caleb is just the normal per-user installation steps with adding a .zshrc file to the skel dir and changing the default new-user shell, but it doesn’t actually work or really answer the question because each user still requires the oh-my-zsh dir/would still require each user to clone the … Read more
Old question, I know, but as an alternative solution I just discovered powerlevel9k, an extension of agnoster (they appear practically identical bar a fair few tweaks), which has this functionality built in. Just set it as your zsh theme, then in .zshrc set POWERLEVEL9K_SHORTEN_DIR_LENGTH=2 which ensures that only two directories are listed. Alternate options are … Read more
update 2019-05-12: new version(> 486fa10) oh-my-zsh have a configuration for this, add DISABLE_MAGIC_FUNCTIONS=true before source $ZSH/oh-my-zsh.sh: DISABLE_MAGIC_FUNCTIONS=true source $ZSH/oh-my-zsh.sh via: https://github.com/robbyrussell/oh-my-zsh/commit/486fa1010df847bfd8823b4492623afc7c935709 Original answer: This is a bug in zsh 5.1.1 ~ 5.2(current). The plugin bracketed-paste-magic did not works in the zsh versions. The issue is here: https://github.com/zsh-users/zsh-autosuggestions/issues/102 https://github.com/robbyrussell/oh-my-zsh/issues/5499 https://github.com/robbyrussell/oh-my-zsh/commit/35517457921c095be1aa6ed948debfbe183b89ac I suggest you disable bracketed-paste-magic. Comment … Read more
Test to see whether syntax highlighting is enabled in Vim. If you type :syntax on and the problem goes away then that’s your issue, and you can correct it by adding: syntax on to your $MYVIMRC file (usually at ~/.vimrc or ~/.vim/vimrc; find out exactly with :echo $MYVIMRC in Vim).
I was installing the fonts in the Ubuntu system, but it is Windows that is rendering the characters from the terminal, so I should install the fonts on Windows (facepalm). I followed this blog post to install the Powerline fonts on Windows, and then I had to change the font in the settings of the … Read more
I had the similar issue. This resolved the problem: # sudo xcodebuild -license accept
I was prompted to reinstall commandLine tools over and over when trying to accept the terms I FIXED this by opening xcode and confirming the new update information