From 3c29918d2bd10e142cd498da887d5b2f696dca44 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 1 Aug 2021 01:47:56 -0600 Subject: [PATCH] Delete everything --- dotfiles/lib/zsh.sh | 18 ----------- dotfiles/lib/zsh/key_bindings.sh | 52 -------------------------------- dotfiles/lib/zsh/prompt.sh | 0 dotfiles/lib/zsh/zgen.sh | 21 ------------- 4 files changed, 91 deletions(-) delete mode 100644 dotfiles/lib/zsh.sh delete mode 100644 dotfiles/lib/zsh/key_bindings.sh delete mode 100644 dotfiles/lib/zsh/prompt.sh delete mode 100644 dotfiles/lib/zsh/zgen.sh diff --git a/dotfiles/lib/zsh.sh b/dotfiles/lib/zsh.sh deleted file mode 100644 index 6cacf439..00000000 --- a/dotfiles/lib/zsh.sh +++ /dev/null @@ -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)" diff --git a/dotfiles/lib/zsh/key_bindings.sh b/dotfiles/lib/zsh/key_bindings.sh deleted file mode 100644 index 488f4561..00000000 --- a/dotfiles/lib/zsh/key_bindings.sh +++ /dev/null @@ -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 diff --git a/dotfiles/lib/zsh/prompt.sh b/dotfiles/lib/zsh/prompt.sh deleted file mode 100644 index e69de29b..00000000 diff --git a/dotfiles/lib/zsh/zgen.sh b/dotfiles/lib/zsh/zgen.sh deleted file mode 100644 index 9b2cd449..00000000 --- a/dotfiles/lib/zsh/zgen.sh +++ /dev/null @@ -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