add = to convert program to full path

This commit is contained in:
Noah Masur 2024-09-25 16:43:48 -04:00
parent 25a959f404
commit a7adc18463
No known key found for this signature in database

View File

@ -76,6 +76,10 @@
description = "Full git commit on notes";
body = builtins.readFile ./functions/syncnotes.fish;
};
_which = {
description = "Identify the path to a program in the shell";
body = "command --search (string sub --start=2 $argv)";
};
};
interactiveShellInit = ''
fish_vi_key_bindings
@ -101,6 +105,13 @@
"-" = "cd -";
mkd = "mkdir -pv";
# Convert a program into its full path
"=" = {
position = "anywhere";
regex = "=\\w+";
function = "_which";
};
# System
s = "sudo";
sc = "systemctl";