diff options
author | Alan Pearce | 2025-02-09 19:24:31 +0100 |
---|---|---|
committer | Alan Pearce | 2025-02-09 19:24:31 +0100 |
commit | dfd1a5d8d7754dfef6a7e535c93675a2019104d3 (patch) | |
tree | 269153eda8ce38ae9cccb0be35729ee83185e74b | |
parent | 44320cba3ff052ffbc63d902c282d9cbe9ce3fd8 (diff) | |
download | nixfiles-dfd1a5d8d7754dfef6a7e535c93675a2019104d3.tar.lz nixfiles-dfd1a5d8d7754dfef6a7e535c93675a2019104d3.tar.zst nixfiles-dfd1a5d8d7754dfef6a7e535c93675a2019104d3.zip |
fish: remove very basic "open" function
-rw-r--r-- | user/settings/fish.nix | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/user/settings/fish.nix b/user/settings/fish.nix index 480c9ade..851947fa 100644 --- a/user/settings/fish.nix +++ b/user/settings/fish.nix @@ -59,24 +59,7 @@ functions = { ds = "du -hd1 $argv[1] | sort -h"; last_history_item = "echo $history[1]"; - } // (lib.attrsets.optionalAttrs pkgs.stdenv.isLinux { - open = '' - argparse h/help a/application -- $argv - or return - - if set -ql _flag_help - echo "open [-h|--help] [-a application] [arguments...]" - return 1 - end - - if set -ql _flag_application - # TODO: support reverse-domain- named files (e.g. org.kde.kate.desktop) - ${pkgs.gtk3}/bin/gtk-launch $argv[1] - else - xdg-open $argv - end - ''; - }); + }; }; xdg.configFile."fish/completions" = { recursive = true; |