Skip to content

Commit

Permalink
Prevent sharing histories between terminal tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky committed Jul 24, 2019
1 parent 1957504 commit afdd6e8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion settings/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,19 @@ if [ -x "$(command -v yarn)" ]; then export PATH="$PATH:`yarn global bin`"; fi
# Ref: https://github.com/robbyrussell/oh-my-zsh/pull/6901
alias ganpa='git add --intent-to-add . && git add --patch'

# Skip words with alt + arrows
# Enable emacs mode for bindkey
bindkey -e

# Enable word skipping with alt + arrows
bindkey '\e\e[D' backward-word # Skip one word backwards (alt-left arrow)
bindkey '\e\e[C' forward-word # Skip one word forwards (alt-right arrow)

# Move cursor to start and end of line with command + arrows
# doesn't work, don't know why
#bindkey '\e\e[E' beginning-of-line
#bindkey '\e\e[F' end-of-line

# Prevent zsh from sharing histories between terminal tabs
# https://superuser.com/a/1248123/157255
unsetopt inc_append_history
unsetopt share_history

0 comments on commit afdd6e8

Please sign in to comment.