commit 6ae95d8d3fa65dfac405a739621c46f6be28f8ad
parent cf8b6714654dbc40cbc877abd3ea66a1c138c582
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Mon, 5 Apr 2021 20:19:24 -0700
Add error handling to the fp shell function
Since it is no longer considered simple, it was moved to the etc
module aswell.
Diffstat:
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/local/shell/.local/share/shell/etc b/local/shell/.local/share/shell/etc
@@ -1,3 +1,4 @@
# shell functions
+fp() (x=$(which "$@") && $EDITOR $x)
fed() (cd "${XDG_DATA_HOME:-$HOME/.local/share}/feed" && feed "$@")
diff --git a/local/shell/.local/share/shell/simple b/local/shell/.local/share/shell/simple
@@ -8,7 +8,6 @@ dsu() doas su "$@"
dump() grab -out "$@"
esed() sed -E "$@"
fn() functions "$@"
-fp() f `which "${@:?No path specified}" 2>/dev/null`
grab() xclip -selection clipboard "$@"
grep() egrep "$@"
ls() 9 ls "$@"