added cheatsheet function for zsh.
This commit is contained in:
parent
158db6b042
commit
41e6afa642
|
@ -12,6 +12,9 @@
|
||||||
programs.kitty.shellIntegration.enableZshIntegration = true;
|
programs.kitty.shellIntegration.enableZshIntegration = true;
|
||||||
services.gpg-agent.enableZshIntegration = true;
|
services.gpg-agent.enableZshIntegration = true;
|
||||||
programs.carapace.enableZshIntegration = false;
|
programs.carapace.enableZshIntegration = false;
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
curl
|
||||||
|
];
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
|
@ -38,6 +41,13 @@
|
||||||
#allow backspacing beyond the point you entered insert mode:
|
#allow backspacing beyond the point you entered insert mode:
|
||||||
bindkey -v '^?' backward-delete-char
|
bindkey -v '^?' backward-delete-char
|
||||||
bindkey "^W" backward-kill-word
|
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) ''
|
(lib.mkIf (!config.programs.starship.enable) ''
|
||||||
autoload -U promptinit
|
autoload -U promptinit
|
||||||
|
|
|
@ -20,11 +20,6 @@
|
||||||
curl
|
curl
|
||||||
];
|
];
|
||||||
|
|
||||||
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
|
||||||
# plain files is through 'home.file'.
|
|
||||||
home.file = {
|
|
||||||
};
|
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
PIPENV_VENV_IN_PROJECT = 1;
|
PIPENV_VENV_IN_PROJECT = 1;
|
||||||
POETRY_VIRTUALENVS_IN_PROJECT = 1;
|
POETRY_VIRTUALENVS_IN_PROJECT = 1;
|
||||||
|
|
|
@ -17,20 +17,11 @@
|
||||||
hyperfine
|
hyperfine
|
||||||
];
|
];
|
||||||
|
|
||||||
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
|
||||||
# plain files is through 'home.file'.
|
|
||||||
home.file = {
|
|
||||||
};
|
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
PIPENV_VENV_IN_PROJECT = 1;
|
PIPENV_VENV_IN_PROJECT = 1;
|
||||||
POETRY_VIRTUALENVS_IN_PROJECT = 1;
|
POETRY_VIRTUALENVS_IN_PROJECT = 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.shellAliases = {
|
|
||||||
# doc2pdf = "loffice --convert-to-pdf --headless *.docx";
|
|
||||||
};
|
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
zoxide.enable = true;
|
zoxide.enable = true;
|
||||||
tealdeer.enable = true;
|
tealdeer.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue