From 9815b80ecedb5619df904fbf0b0935f9d0a61c3c Mon Sep 17 00:00:00 2001 From: qvalentin Date: Fri, 21 Jan 2022 18:03:19 +0100 Subject: [PATCH] (fish) pretty fish title and command not found function --- .config/fish/functions/fish_command_not_found.fish | 4 ++++ .config/fish/functions/fish_title.fish | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 .config/fish/functions/fish_command_not_found.fish create mode 100644 .config/fish/functions/fish_title.fish diff --git a/.config/fish/functions/fish_command_not_found.fish b/.config/fish/functions/fish_command_not_found.fish new file mode 100644 index 0000000..94ffed3 --- /dev/null +++ b/.config/fish/functions/fish_command_not_found.fish @@ -0,0 +1,4 @@ +function fish_command_not_found + echo Did not find command $argv[1] + pkgfile -s $argv[1] +end diff --git a/.config/fish/functions/fish_title.fish b/.config/fish/functions/fish_title.fish new file mode 100644 index 0000000..e1c87b6 --- /dev/null +++ b/.config/fish/functions/fish_title.fish @@ -0,0 +1,7 @@ +function fish_title + if [ $_ = 'fish' ] + echo " " (prompt_pwd) + else + echo $_ + end +end