dotfiles/profiles/zsh/default.nix

63 lines
1.8 KiB
Nix
Raw Normal View History

2020-06-17 19:01:57 +02:00
{ pkgs, config, lib, ... }:
let
cfg = config.profiles.zsh;
in
{
options.profiles.zsh = {
enable = lib.mkEnableOption "Manage zsh from hm";
};
config = lib.mkIf cfg.enable {
programs.zsh = {
enable = true;
dotDir = ".config/zsh";
enableAutosuggestions = true;
enableCompletion = true;
history = {
expireDuplicatesFirst = true;
ignoreDups = true;
share = false;
2020-06-17 19:01:57 +02:00
};
shellAliases = {
mpvav1 = "mpv --vd-queue-enable=yes --ad-queue-enable=yes --vd-queue-max-bytes=4000MiB --vd-queue-max-samples=2000000 --vd-queue-max-secs=50";
};
initExtra = ''
2021-04-12 01:41:56 +02:00
source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme
source ${./p10k.zsh}
2020-06-17 19:01:57 +02:00
autoload -U history-search-end
zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end
bindkey "^[[A" history-beginning-search-backward-end
bindkey "^[[B" history-beginning-search-forward-end
2021-12-23 02:04:37 +01:00
bindkey '\e[H' beginning-of-line
bindkey '\e[F' end-of-line
bindkey '\e[3~' delete-char
2020-06-17 19:01:57 +02:00
ZLE_RPROMPT_INDENT=0
export MATRIXDEV_HOMESERVER="https://matrix.dodsorf.as"
export ***REMOVED***
export FV_KUBECONFIG="$HOME/.kube/config-fv"
export FV_KUBECONFIG="$HOME/.kube/config-fv-prod"
export FV_ARM_SUBSCRIPTION_ID="***REMOVED***"
export FV_ARM_CLIENT_ID="***REMOVED***"
export FV_ARM_CLIENT_SECRET="***REMOVED***"
export FV_ARM_TENANT_ID="***REMOVED***"
export FV_ARM_ENVIRONMENT="public"
'';
};
programs.direnv = {
enable = true;
};
home.packages = [
pkgs.dan.mesloNFp10k
];
};
}