about summary refs log tree commit diff stats
path: root/nix-conf/home
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2024-09-03 16:00:09 +0100
committerDavid Morgan <djm_uk@protonmail.com>2024-09-03 16:00:09 +0100
commit95ed21bec068982547dcedc4efc64d4e1fb56d69 (patch)
tree303b8977862a060d4fd730ce1d0675415451e7c8 /nix-conf/home
parent33141c2f7adb53c9de83390b45470d6665848450 (diff)
downloaddotfiles-95ed21bec068982547dcedc4efc64d4e1fb56d69.tar.gz
Minor tweaks to recent reformatting
Diffstat (limited to 'nix-conf/home')
-rw-r--r--nix-conf/home/includes/zsh.nix4
-rw-r--r--nix-conf/home/otm.nix6
2 files changed, 4 insertions, 6 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
diff --git a/nix-conf/home/otm.nix b/nix-conf/home/otm.nix
index 0876cbc..b9e3c44 100644
--- a/nix-conf/home/otm.nix
+++ b/nix-conf/home/otm.nix
@@ -128,11 +128,9 @@ in {
 
   home.shellAliases = {
     notify_success = ''
-      ( osascript -e 'display notification "The command finished" with title "Success"' && afplay /System/Library/Sounds/Ping.aiff && say done  )
-    '';
+      ( osascript -e 'display notification "The command finished" with title "Success"' && afplay /System/Library/Sounds/Ping.aiff && say done  )'';
     notify_failure = ''
-      ( osascript -e 'display notification "The command failed" with title "Failure"' && afplay /System/Library/Sounds/Sosumi.aiff && say failed  )
-    '';
+      ( osascript -e 'display notification "The command failed" with title "Failure"' && afplay /System/Library/Sounds/Sosumi.aiff && say failed  )'';
     notify = "notify_success || notify_failure";
     auth =
       "auth2aws login -r aws_otm_dev_developers,aws_otm_prd_developers && osascript -e 'tell app \"iTerm\" to activate'";