map jj to Esc in inputrc (readline)

You should rearrange the inputrc so the commented line comes after set keymap vi-insert. Like this: set bell-style none $if mode=vi set keymap vi-command “gg”: beginning-of-history “G”: end-of-history set keymap vi-insert #notice how the “jj” movement is “jj”: vi-movement-mode #after ‘set keymap vi-insert’? “\C-w”: backward-kill-word “\C-p”: history-search-backward $endif

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

Weird character zsh in emacs terminal

You don’t have eterm-color terminfo. First, you try to add following S-exp in your configuration file and evaluate. ;; Use Emacs terminfo, not system terminfo (setq system-uses-terminfo nil) If problem is not resolved previous setting, you should create eterm-color terminfo by using following command. (terminfo path may different from your system) # If you use … 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

ZSH/Shell variable assignment/usage

Two things are going wrong here. Firstly, your first snippet is not doing what I think you think it is. Try removing the second line, the echo. It still prints the date, right? Because this: DATE= date +’20%y-%m-%d’ Is not a variable assignment – it’s an invocation of date with an auxiliary environment variable (the … 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

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