From 6b7cca216808bdcfca557aca9056950393124872 Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Fri, 12 May 2023 09:23:17 +0200 Subject: [PATCH] updated sheldon zsh config --- dot_config/sheldon/plugins.toml | 6 +++--- dot_config/topgrade.toml | 2 +- dot_config/zsh/dot_zshenv | 4 +++- dot_config/zsh/files/functions.zsh | 5 +++++ 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index 7b2e82d..8319c98 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -5,6 +5,9 @@ defer = """{% for file in files %} zsh-defer source "{{ file }}" {% endfor %}""" defer-more = """{% for file in files %} zsh-defer -t 0.5 source "{{ file }}" {% endfor %}""" # own files +[plugins.disableflow] +inline = 'stty -ixon' + [plugins.localenv] local = "~/.local/share/zsh/config" use = ["env.zsh"] @@ -75,9 +78,6 @@ github = "MichaelAquilina/zsh-you-should-use" [plugins.autosuggestions] github = "zsh-users/zsh-autosuggestions" -[plugins.emoji-cli] -github = "b4b4r07/emoji-cli" - #[plugins.autocomplete] #github = "marlonrichert/zsh-autocomplete" diff --git a/dot_config/topgrade.toml b/dot_config/topgrade.toml index d8d34d8..582d2e9 100644 --- a/dot_config/topgrade.toml +++ b/dot_config/topgrade.toml @@ -23,7 +23,7 @@ skip_notify = true #run_in_tmux = true # List of remote machines with Topgrade installed on them -remote_topgrades = ["chat", "db", "git", "java", "kali", "mail", "misc", "mon", "salt"] +remote_topgrades = ["chat", "db", "git", "java", "kali", "mail", "misc", "mon"] # Arguments to pass SSH when upgrading remote systems #ssh_arguments = "-o ConnectTimeout=2" diff --git a/dot_config/zsh/dot_zshenv b/dot_config/zsh/dot_zshenv index b0576df..0235917 100644 --- a/dot_config/zsh/dot_zshenv +++ b/dot_config/zsh/dot_zshenv @@ -1,4 +1,5 @@ -# path +# deduplicate path and add local bin to path +typeset -U path PATH export PATH="$HOME"/.local/bin:"$PATH" # xdg stuff @@ -27,6 +28,7 @@ export DOCKER_CONFIG="$XDG_CONFIG_HOME"/docker export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java export GDBHISTFILE="$XDG_CONFIG_HOME"/gdb/history +export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME"/npm/npmrc # data files export XCURSOR_PATH=/usr/share/icons:"$XDG_DATA_HOME"/icons diff --git a/dot_config/zsh/files/functions.zsh b/dot_config/zsh/files/functions.zsh index 6a40a2f..51af6bf 100644 --- a/dot_config/zsh/files/functions.zsh +++ b/dot_config/zsh/files/functions.zsh @@ -6,6 +6,11 @@ pet_select () { zle -N pet_select bindkey '^l' pet_select +pet_add_prev () { + PREV=$(fc -lrn | head -n 1) + sh -c "pet new $(printf %q "$PREV")" +} + run_ranger () { echo ranger < $TTY