From 95ed21bec068982547dcedc4efc64d4e1fb56d69 Mon Sep 17 00:00:00 2001 From: David Morgan Date: Tue, 3 Sep 2024 16:00:09 +0100 Subject: Minor tweaks to recent reformatting --- nix-conf/home/includes/zsh.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nix-conf/home/includes') diff --git a/nix-conf/home/includes/zsh.nix b/nix-conf/home/includes/zsh.nix index e6075a9..049bd88 100644 --- a/nix-conf/home/includes/zsh.nix +++ b/nix-conf/home/includes/zsh.nix @@ -119,7 +119,7 @@ in { FZF_DEFAULT_COMMAND = '' rg --files --no-ignore --hidden --follow -g \"!{.git,node_modules}/*\" 2> /dev/null''; FZF_CTRL_T_COMMAND = - "${config.programs.zsh.localVariables.FZF_DEFAULT_COMMAND}"; + config.programs.zsh.localVariables.FZF_DEFAULT_COMMAND; FZF_ALT_C_COMMAND = '' rg --hidden --files --sort-files --null -g \"!{.git,node_modules}/*\" | xargs -0 dirname | sort -u''; FZF_ALT_C_OPTS = "--preview 'eza --tree {} | head -200'"; @@ -176,7 +176,7 @@ in { # vip # edits the nth result from ea (vi `ea p `) # vip foo # if the nth result from ea is a directory, edit foo in that directory (vi `ea p `/foo) function _vip () { - CMD=(''${=1}) # zsh only; not portable + CMD=(''${=1}) # zsh only, not portable; something like CMD=($(echo $1)) is more portable but is ugly BASE_PATH=$(ea p ''${2:-1}) if [ -z "$BASE_PATH" ]; then -- cgit 1.4.1-2-gfad0