Skip to content

Commit

Permalink
Allow url pasting without escape, use ESC to edit command line
Browse files Browse the repository at this point in the history
  • Loading branch information
GMadorell committed May 31, 2023
1 parent d46cdb0 commit 2266bdd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export ZSH=$HOME/.oh-my-zsh
ZSH_THEME=ukelele
ZSH_DISABLE_COMPFIX=true

DISABLE_MAGIC_FUNCTIONS=true # Allow url pasting without escape: https://github.com/ohmyzsh/ohmyzsh/issues/7632
plugins=(zsh-autosuggestions zsh-syntax-highlighting)

# Path constants
Expand Down Expand Up @@ -90,6 +91,11 @@ bindkey ^F end-of-line # Ctrl+F for moving till the end
bindkey ^W backward-delete-word # Ctrl+W to delete a word backward
bindkey ^E kill-word # Ctrl+E to delete a word forward

## Use ESC to edit the current command line: https://bugfactory.io/blog/z-shell-tip-edit-current-command-line-with-vim/
autoload -U edit-command-line
zle -N edit-command-line
bindkey '\033' edit-command-line

ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=240'

## fasd is a command line productivity booster:
Expand Down Expand Up @@ -1087,6 +1093,7 @@ function git_empty_commit() {
}
alias git_commit_empty=git_empty_commit
alias gempty=git_empty_commit
alias gcempty=git_empty_commit
function gcbname() {
# Applies a commit with the same name as the current branch name transformed to sentence case
local branch_name=$(gbname)
Expand Down

0 comments on commit 2266bdd

Please sign in to comment.