Initial commit
This commit is contained in:
62
modules/hm/zsh.nix
Normal file
62
modules/hm/zsh.nix
Normal file
@@ -0,0 +1,62 @@
|
||||
{ lib, ... }:
|
||||
{
|
||||
programs.zsh = {
|
||||
autosuggestion = {
|
||||
enable = true;
|
||||
strategy = [
|
||||
"history"
|
||||
"completion"
|
||||
];
|
||||
};
|
||||
syntaxHighlighting.enable = lib.mkDefault true;
|
||||
autocd = true;
|
||||
# defaultKeymap = "vicmd";
|
||||
dirHashes = { };
|
||||
shellAliases = {
|
||||
"ll" = "ls -l";
|
||||
"sc" = "systemctl";
|
||||
"ssc" = "sudo systemctl";
|
||||
"scu" = "systemctl --user";
|
||||
};
|
||||
shellGlobalAliases = {
|
||||
UUID = "$(uuidgen | tr -d \\n)";
|
||||
G = "| grep";
|
||||
};
|
||||
zsh-abbr = {
|
||||
enable = true;
|
||||
abbreviations = {
|
||||
|
||||
};
|
||||
globalAbbreviations = {
|
||||
|
||||
};
|
||||
};
|
||||
oh-my-zsh = {
|
||||
enable = lib.mkDefault true;
|
||||
plugins = [
|
||||
"git"
|
||||
"ssh"
|
||||
"sudo"
|
||||
"z"
|
||||
"golang"
|
||||
"direnv"
|
||||
"kubectl"
|
||||
"docker"
|
||||
"docker-compose"
|
||||
"helm"
|
||||
"themes"
|
||||
"aliases"
|
||||
"alias-finder"
|
||||
"rsync"
|
||||
];
|
||||
theme = lib.mkDefault "agnoster";
|
||||
};
|
||||
|
||||
initContent = ''
|
||||
zstyle ':omz:plugins:alias-finder' autoload yes
|
||||
zstyle ':omz:plugins:alias-finder' longer no
|
||||
zstyle ':omz:plugins:alias-finder' exact yes
|
||||
zstyle ':omz:plugins:alias-finder' cheaper yes
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user