Visitar URL original
fix(fish/herdr): respect label on restore · scottames/dots@7dfea09 · GitHub
Skip to content

Commit 7dfea09

Browse files
committed
fix(fish/herdr): respect label on restore
1 parent 7579c8f commit 7dfea09

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎home/dot_setenv‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ $IS_DARK \
3232
&& setenv BAT_THEME "Catppuccin Mocha"
3333
setenv BOB_BIN "$HOME/.local/share/bob/nvim-bin"
3434
setenv CLICOLOR 1
35-
setenv COMMAND_LABEL_SUBSTITUTIONS "nono-with-local-path=oc opencode=oc"
35+
setenv COMMAND_LABEL_SUBSTITUTIONS "nono-with-local-path=oc opencode=oc fish=󰈺 vim= nvim="
3636
setenv DISABLE_TELEMETRY 1
3737
setenv DBX_ASSEMBLE_DEFAULT "$HOME/.config/distrobox/assemble.ini"
3838
setenv DBX_DEFAULT "f"

‎home/private_dot_config/fish/conf.d/herdr_dynamic_titles.fish‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function __herdr_dynamic_title_preexec \
3535
if not set -q __herdr_dynamic_title_restore_label
3636
set -g __herdr_dynamic_title_restore_label shell
3737
if set -q SHELL
38-
set -g __herdr_dynamic_title_restore_label (path basename -- "$SHELL")
38+
set -g __herdr_dynamic_title_restore_label (_herdr_command_label (string join ' ' -- (path basename -- "$SHELL")))
3939
end
4040
end
4141

‎home/private_dot_config/fish/custom_functions.d/_herdr_command_label.fish‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ function _herdr_command_label \
2828
switch $word
2929
case command builtin exec env sudo
3030
continue
31-
case nono nono-with-local-path nntd
31+
case nono nono-with-local-path
3232
set skip_nono_wrap true
3333
continue
34+
case nntd
35+
continue
3436
case '*=*'
3537
continue
3638
case '-*'

0 commit comments

Comments
 (0)