Browse Source

Remove duplicats

master
James Coleman 11 months ago
parent
commit
52e0fd7d24
  1. 21
      .config/zsh/zsh/functions
  2. 8
      .config/zsh/zsh/keybinds.zsh
  3. 1
      .config/zsh/zsh/plugins/pure
  4. 1
      .config/zsh/zsh/plugins/zsh-autosuggestions
  5. 1
      .config/zsh/zsh/plugins/zsh-syntax-highlighting

21
.config/zsh/zsh/functions

@ -1,21 +0,0 @@
#!/bin/zsh
function zsh_add_config() {
[ -f "$ZSH_CONFIG/$1" ] && ! [ -L "$ZSH_CONFIG/$1" ] && source "$ZSH_CONFIG/$1"
}
function zsh_add_plugin() {
PLUGIN_NAME=$(echo $1 | cut -d"/" -f2)
if ! [ -d "$ZSH_CONFIG/plugins/$PLUGIN_NAME" ]; then
git clone "https://github.com/$1.git" "$ZSH_CONFIG/plugins/$PLUGIN_NAME"
fi
zsh_add_config "plugins/$PLUGIN_NAME/$PLUGIN_NAME.plugin.zsh"
zsh_add_config "plugins/$PLUGIN_NAME/$PLUGIN_NAME.zsh"
}
function zsh_fpath_plugin() {
PLUGIN_NAME=$(echo $1 | cut -d"/" -f2)
if ! [ -d "$ZSH_CONFIG/plugins/$PLUGIN_NAME" ]; then
git clone "https://github.com/$1.git" "$ZSH_CONFIG/plugins/$PLUGIN_NAME"
fi
fpath+=($ZSH_CONFIG/plugins/$PLUGIN_NAME)
}

8
.config/zsh/zsh/keybinds.zsh

@ -1,8 +0,0 @@
WORDCHARS='~!#$%^&*(){}[]<>?.+;-'
MOTION_WORDCHARS='~!#$%^&*(){}[]<>?.+;-/'
''{back,for}ward-word() WORDCHARS=$MOTION_WORDCHARS zle .$WIDGET
bindkey '^[[1;3C' forward-word
bindkey '^[[1;3D' backward-word
bindkey '^[^?' backward-kill-word

1
.config/zsh/zsh/plugins/pure

@ -1 +0,0 @@
Subproject commit 3b2606db2e7eb6f05c67b229b5e3c68a1c3947a6

1
.config/zsh/zsh/plugins/zsh-autosuggestions

@ -1 +0,0 @@
Subproject commit a411ef3e0992d4839f0732ebeb9823024afaaaa8

1
.config/zsh/zsh/plugins/zsh-syntax-highlighting

@ -1 +0,0 @@
Subproject commit caa749d030d22168445c4cb97befd406d2828db0
Loading…
Cancel
Save