Install Oh My Zsh on a Vagrant Box as part of the bootstrap process

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

How can I get a secure system-wide oh-my-zsh configuration?

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

Shortening my prompt in Zsh

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

How to disable zsh substitution/autocomplete with URL and backslashes

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

How to install Powerline fonts on WSL?

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)