diff options
author | David Morgan <djm_uk@protonmail.com> | 2024-09-03 16:00:09 +0100 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2024-09-03 16:00:09 +0100 |
commit | 95ed21bec068982547dcedc4efc64d4e1fb56d69 (patch) | |
tree | 303b8977862a060d4fd730ce1d0675415451e7c8 /nix-conf/home/includes | |
parent | 33141c2f7adb53c9de83390b45470d6665848450 (diff) | |
download | dotfiles-95ed21bec068982547dcedc4efc64d4e1fb56d69.tar.gz |
Minor tweaks to recent reformatting
Diffstat (limited to 'nix-conf/home/includes')
-rw-r--r-- | nix-conf/home/includes/zsh.nix | 4 |
1 files changed, 2 insertions, 2 deletions
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 <n> # edits the nth result from ea (vi `ea p <n>`) # vip <n> foo # if the nth result from ea is a directory, edit foo in that directory (vi `ea p <n>`/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 |