Skip to content

Instantly share code, notes, and snippets.

@pxlpnk
Created December 14, 2021 07:45
Show Gist options
  • Save pxlpnk/c27947ef0cc0a2eaa0e95980e15eb6f9 to your computer and use it in GitHub Desktop.
Save pxlpnk/c27947ef0cc0a2eaa0e95980e15eb6f9 to your computer and use it in GitHub Desktop.
{ config, lib, pkgs, ... }:
{
programs.zsh = {
enable = true;
autocd = true;
enableAutosuggestions = true;
enableCompletion = true;
history.size = 50000;
history.save = 50000;
history.path = "~/.history";
history.share = true;
history.extended = true;
prezto.enable = true;
shellAliases = {
ip = "ip --color=auto";
a = "emacsclient -n";
p = "ps waux | grep -i --color=auto";
less = "LESSHISTFILE=- less --tabs=2";
zreload = "source ~/.zshrc";
".." = "cd ../";
l = "ls -lahG";
ls = "ls -G";
open = "xdg-open";
# GIT
g = "git";
gst = "git status";
gr = "cd $(git rev-parse --show-cdup)'";
k = "kubectl";
};
initExtra = ''
REPORTTIME=5
setopt extendedhistory # save timestamp and duration
setopt incappendhistory # incremental append
[[ -f ~/.bin/z.sh ]] && source ~/.bin/z.sh
'';
};
programs.fzf = {
enable = true;
enableZshIntegration = true;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment