zsh tre integration.

This commit is contained in:
Gabe Venberg 2025-04-02 00:33:42 +02:00
parent 7d09629c17
commit 10ff8b3644

View file

@ -46,6 +46,9 @@
curl cheat.sh/$i curl cheat.sh/$i
done done
} }
#the tre command has some shell integration.
tre() { command tre "$@" --editor && source "/tmp/tre_aliases_$USER" 2>/dev/null; }
tred() { command tre "$@" --editor=z --directories && source "/tmp/tre_aliases_$USER" 2>/dev/null; }
'' ''
(lib.mkIf (!config.programs.starship.enable) '' (lib.mkIf (!config.programs.starship.enable) ''
autoload -U promptinit autoload -U promptinit
@ -103,5 +106,6 @@
services.gpg-agent.enableZshIntegration = true; services.gpg-agent.enableZshIntegration = true;
home.packages = with pkgs; [ home.packages = with pkgs; [
curl curl
tre-command
]; ];
} }