From d8e718c1d4b7d8152916b8a2d26356070d62544c Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Tue, 26 Mar 2024 00:38:19 +0100 Subject: [PATCH] Add misc.zsh --- home/programs/terminal/shell/zsh/init.nix | 1 + home/programs/terminal/shell/zsh/rc/misc.zsh | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 home/programs/terminal/shell/zsh/rc/misc.zsh diff --git a/home/programs/terminal/shell/zsh/init.nix b/home/programs/terminal/shell/zsh/init.nix index 79cd7a6..7c8f2d2 100644 --- a/home/programs/terminal/shell/zsh/init.nix +++ b/home/programs/terminal/shell/zsh/init.nix @@ -13,6 +13,7 @@ in ${readFile ./rc/aliases.zsh} ${readFile ./rc/functions.zsh} + ${readFile ./rc/misc.zsh} ''; completionInit = '' diff --git a/home/programs/terminal/shell/zsh/rc/misc.zsh b/home/programs/terminal/shell/zsh/rc/misc.zsh new file mode 100644 index 0000000..177f262 --- /dev/null +++ b/home/programs/terminal/shell/zsh/rc/misc.zsh @@ -0,0 +1,7 @@ +# Foot terminal uses this sequence to identify a command execution +# that way it's possible to use ctrl+shift+z/x to jump between commands +if [ "$TERM" = "foot" ]; then + precmd() { + print -Pn "\e]133;A\e\\" + } +fi