Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: caio/oh-my-zsh
base: c6aafaca43
...
head fork: caio/oh-my-zsh
compare: 048404ea4e
Checking mergeability… Don't worry, you can still create the pull request.
  • 3 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 31 additions and 10 deletions.
  1. +1 −9 themes/errado.zsh-theme
  2. +30 −1 zshrc
View
10 themes/errado.zsh-theme
@@ -2,15 +2,7 @@
MODE_INDICATOR="%{$fg_bold[cyan]%}--COMMAND--%{$reset_color%}"
-git_branch_color() {
- if test -n "$(git status -s --ignore-submodules=dirty 2>/dev/null)"; then
- echo -n "%{$fg[red]%}"
- else
- echo -n "%{$fg[green]%}"
- fi
-}
-
-ZSH_THEME_GIT_PROMPT_PREFIX="$(git_branch_color)"
+ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[magenta]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY=""
View
31 zshrc
@@ -7,9 +7,38 @@ DISABLE_AUTO_UPDATE="true"
DISABLE_AUTO_TITLE="true"
COMPLETION_WAITING_DOTS="true"
-plugins=(git vi-mode make-dir-complete)
+plugins=(vi-mode make-dir-complete)
source $ZSH/oh-my-zsh.sh
make_dir_complete jk ~/src
make_dir_complete h ~/etc
+
+bindkey '\ew' kill-region
+bindkey -s '\el' "ls\n"
+bindkey '^r' history-incremental-search-backward
+bindkey "^[[5~" up-line-or-history
+bindkey "^[[6~" down-line-or-history
+
+# make search up and down work, so partially type and hit up/down to find relevant stuff
+bindkey '^[[A' up-line-or-search
+bindkey '^[[B' down-line-or-search
+
+bindkey "^[[H" beginning-of-line
+bindkey "^[[1~" beginning-of-line
+bindkey "^[OH" beginning-of-line
+bindkey "^[[F" end-of-line
+bindkey "^[[4~" end-of-line
+bindkey "^[OF" end-of-line
+bindkey ' ' magic-space # also do history expansion on space
+
+bindkey "^[[1;5C" forward-word
+bindkey "^[[1;5D" backward-word
+
+bindkey '^[[Z' reverse-menu-complete
+
+# Make the delete key (or Fn + Delete on the Mac) work instead of outputting a ~
+bindkey '^?' backward-delete-char
+bindkey "^[[3~" delete-char
+bindkey "^[3;5~" delete-char
+bindkey "\e[3~" delete-char

No commit comments for this range

Something went wrong with that request. Please try again.