added cheatsheet function for zsh.

This commit is contained in:
Gabe Venberg 2024-05-17 12:00:39 -05:00
parent 158db6b042
commit 41e6afa642
3 changed files with 10 additions and 14 deletions

View file

@ -12,6 +12,9 @@
programs.kitty.shellIntegration.enableZshIntegration = true;
services.gpg-agent.enableZshIntegration = true;
programs.carapace.enableZshIntegration = false;
home.packages = with pkgs; [
curl
];
programs.zsh = {
enable = true;
enableCompletion = true;
@ -38,6 +41,13 @@
#allow backspacing beyond the point you entered insert mode:
bindkey -v '^?' backward-delete-char
bindkey "^W" backward-kill-word
#cheat.sh is a wonderful tool, the less typing needed the better.
cheat(){
for i in $*; do;
curl cheat.sh/$i
done
}
''
(lib.mkIf (!config.programs.starship.enable) ''
autoload -U promptinit

View file

@ -20,11 +20,6 @@
curl
];
# Home Manager is pretty good at managing dotfiles. The primary way to manage
# plain files is through 'home.file'.
home.file = {
};
home.sessionVariables = {
PIPENV_VENV_IN_PROJECT = 1;
POETRY_VIRTUALENVS_IN_PROJECT = 1;

View file

@ -17,20 +17,11 @@
hyperfine
];
# Home Manager is pretty good at managing dotfiles. The primary way to manage
# plain files is through 'home.file'.
home.file = {
};
home.sessionVariables = {
PIPENV_VENV_IN_PROJECT = 1;
POETRY_VIRTUALENVS_IN_PROJECT = 1;
};
home.shellAliases = {
# doc2pdf = "loffice --convert-to-pdf --headless *.docx";
};
programs = {
zoxide.enable = true;
tealdeer.enable = true;