zsh tre integration.
This commit is contained in:
parent
7d09629c17
commit
10ff8b3644
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue