Delete everything
This commit is contained in:
parent
50d7801d67
commit
3c29918d2b
@ -1,18 +0,0 @@
|
|||||||
source_directory_files "$HOME/.lib/zsh"
|
|
||||||
|
|
||||||
alias srczsh="source ~/.zshrc"
|
|
||||||
alias zshenv="source ~/.zshenv"
|
|
||||||
|
|
||||||
# Online help.
|
|
||||||
unalias run-help 2> /dev/null 1>/dev/null
|
|
||||||
autoload run-help
|
|
||||||
HELPDIR=/usr/local/share/zsh/helpfiles
|
|
||||||
|
|
||||||
function if_emacs_zsh {
|
|
||||||
echo "$INSIDE_EMACS" | grep -q term && export PS1="$ "
|
|
||||||
}
|
|
||||||
|
|
||||||
environment_variable_exists INSIDE_EMACS && export PROMPT='$ '
|
|
||||||
|
|
||||||
# Enable direnv
|
|
||||||
command_exists direnv && eval "$(direnv hook zsh)"
|
|
@ -1,52 +0,0 @@
|
|||||||
bindkey -e
|
|
||||||
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
|
|
||||||
|
|
||||||
bindkey -e ## emacs key bindings
|
|
||||||
|
|
||||||
bindkey '^[[A' up-line-or-search
|
|
||||||
bindkey '^[[B' down-line-or-search
|
|
||||||
bindkey '^[^[[C' emacs-forward-word
|
|
||||||
bindkey '^[^[[D' emacs-backward-word
|
|
||||||
|
|
||||||
bindkey -s '^X^Z' '%-^M'
|
|
||||||
bindkey '^[e' expand-cmd-path
|
|
||||||
bindkey '^[^I' reverse-menu-complete
|
|
||||||
bindkey '^X^N' accept-and-infer-next-history
|
|
||||||
bindkey '^W' kill-region
|
|
||||||
bindkey '^I' complete-word
|
|
||||||
# Fix weird sequence that rxvt produces
|
|
||||||
bindkey -s '^[[Z' '\t'
|
|
||||||
|
|
||||||
|
|
||||||
# Allow command line editing.
|
|
||||||
autoload -U edit-command-line
|
|
||||||
zle -N edit-command-line
|
|
||||||
bindkey '\C-x\C-e' edit-command-line
|
|
||||||
setopt PROMPT_SUBST
|
|
@ -1,21 +0,0 @@
|
|||||||
export ZGEN_PATH="$HOME/.zgen"
|
|
||||||
|
|
||||||
test -e $ZGEN_PATH || git clone https://github.com/tarjoilija/zgen.git $ZGEN_PATH
|
|
||||||
|
|
||||||
source "$ZGEN_PATH/zgen.zsh"
|
|
||||||
|
|
||||||
# if the init scipt doesn't exist
|
|
||||||
if ! zgen saved; then
|
|
||||||
zgen oh-my-zsh plugins/safe-paste
|
|
||||||
zgen oh-my-zsh plugins/git
|
|
||||||
zgen oh-my-zsh plugins/sudo
|
|
||||||
zgen oh-my-zsh plugins/command-not-found
|
|
||||||
zgen oh-my-zsh plugins/pip
|
|
||||||
zgen load zsh-users/zsh-syntax-highlighting
|
|
||||||
zgen load kennethreitz/autoenv
|
|
||||||
zgen load mafredri/zsh-async
|
|
||||||
zgen load spaceship-prompt/spaceship-prompt spaceship
|
|
||||||
|
|
||||||
# generate the init script from plugins above
|
|
||||||
zgen save
|
|
||||||
fi
|
|
Loading…
Reference in New Issue
Block a user