diff options
author | Rose <rose@pinkro.se> | 2025-09-06 23:39:14 +0200 |
---|---|---|
committer | Rose <rose@pinkro.se> | 2025-09-06 23:39:14 +0200 |
commit | 22cb69f60004170c1a7d3410a2fe06d5238317b7 (patch) | |
tree | 9fda08e478aab28bc41e1b880423e30bc6714bd9 | |
parent | 25144da3036f94f89c580ff7f5962286a196a498 (diff) | |
download | dotfiles-22cb69f60004170c1a7d3410a2fe06d5238317b7.tar.gz dotfiles-22cb69f60004170c1a7d3410a2fe06d5238317b7.tar.bz2 |
fish: Add cwd in quake prompt
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | fish/.config/fish/config.fish | 3 | ||||
-rw-r--r-- | fish/.config/fish/functions/fish_greeting.fish | 2 | ||||
-rw-r--r-- | fish/.config/fish/functions/fish_prompt.fish | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b6261c9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.*~ diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index 19a4f6b..0f46207 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -6,6 +6,9 @@ if status is-interactive alias :launch launch.sh alias :media mediactl.sh alias :sys sysctls.sh + alias :firefox "launch.sh firefox-bin" + alias :music "launch.sh qmmp" + alias :edit "launch.sh foot emacs" #alias w='dbus-run-session startplasma-wayland' #alias w='dbus-run-session sway' # Commands to run in interactive sessions can go here diff --git a/fish/.config/fish/functions/fish_greeting.fish b/fish/.config/fish/functions/fish_greeting.fish index 880b8ea..1031678 100644 --- a/fish/.config/fish/functions/fish_greeting.fish +++ b/fish/.config/fish/functions/fish_greeting.fish @@ -1,4 +1,6 @@ function fish_greeting + if test "$TERM" != "xterm-kitty" fortune echo "" + end end diff --git a/fish/.config/fish/functions/fish_prompt.fish b/fish/.config/fish/functions/fish_prompt.fish index f47ca66..03b1d47 100644 --- a/fish/.config/fish/functions/fish_prompt.fish +++ b/fish/.config/fish/functions/fish_prompt.fish @@ -1,5 +1,7 @@ function fish_prompt if test "$TERM" = "xterm-kitty" + tput cup 0 0 + pwd tput cup $COLUMNS 0 echo -n "] " else |