Configuration for my NixOS based systems and Home Manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

CLEANUP: bin helper function

+10 -11
+10 -11
fish/config.fish
··· 55 55 set -Ux NATS_CERT /srv/nats/odin.packetlost.dev/cert.pem 56 56 set -Ux NATS_KEY /srv/nats/odin.packetlost.dev/key.pem 57 57 58 - if test -d "$HOME/.cargo" 59 - fish_add_path "$HOME/.cargo/bin" 58 + function add_to_path_if_exists -a directory 59 + if test -d "$directory" 60 + fish_add_path "$directory" 61 + end 60 62 end 61 63 62 - if test -d "$HOME/.local" 63 - fish_add_path "$HOME/.local/bin" 64 - end 65 - 66 - 67 - if test -d "$HOME/.local/share/solana/install/active_release/bin" 68 - fish_add_path "$HOME/.local/share/solana/install/active_release/bin" 69 - end 64 + add_to_path_if_exists "$HOME/.local/share/solana/install/active_release/bin" 65 + add_to_path_if_exists "$HOME/.local/bin" 66 + add_to_path_if_exists "$HOME/.cargo/bin" 67 + add_to_path_if_exists "$HOME/go/bin" 68 + add_to_path_if_exists "$HOME/.gerbil/bin" 69 + add_to_path_if_exists "/opt/gerbil/bin" 70 70 71 - # Keybindings 72 71 fish_default_key_bindings