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 ++-- nix-conf/home/otm.nix | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'nix-conf/home') 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 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'"; -- cgit 1.4.1-2-gfad0 me/?h=hlt&id=fb2ffbd0960d8e9a9e8fd9daa9dc688405016ba2'>root/085scenario_console.cc
blob: 75c2a289a711dd4df11887d57ce91a16a3c79d37 (plain) (tree)
1
2
3
4
5
6
7
8
9
10