refactor home-manager
This commit is contained in:
parent
a48829bbe6
commit
caed1fc0d4
31 changed files with 243 additions and 270 deletions
61
home-manager/sajenim/features/cli/zsh.nix
Normal file
61
home-manager/sajenim/features/cli/zsh.nix
Normal file
|
@ -0,0 +1,61 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
fzf # command-line fuzzy finder
|
||||
];
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
|
||||
# Enable extra features
|
||||
enableAutosuggestions = true;
|
||||
enableCompletion = true;
|
||||
syntaxHighlighting = {
|
||||
enable = true;
|
||||
};
|
||||
dotDir = ".config/zsh";
|
||||
|
||||
# Commands that should be added to to top of '.zshrc'
|
||||
initExtraFirst = ''
|
||||
'';
|
||||
|
||||
# Aliases
|
||||
shellAliases = {
|
||||
c = "clear";
|
||||
la = "ls -a";
|
||||
ll = "ls -l";
|
||||
tt = "wezterm cli set-tab-title ";
|
||||
};
|
||||
|
||||
# An attribute set that adds to named directory hash table
|
||||
dirHashes = {
|
||||
# QMK Keymaps
|
||||
crkbd = "$HOME/.github/qmk_keymaps/keyboards/crkbd/keymaps/sajenim";
|
||||
kchrn = "$HOME/.github/qmk_keymaps/keyboards/keychron/q4/ansi_v2/keymaps/sajenim";
|
||||
};
|
||||
|
||||
# Install plugins
|
||||
plugins = [
|
||||
{
|
||||
name = "fzf-tab";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "Aloxaf";
|
||||
repo = "fzf-tab";
|
||||
rev = "5a81e13792a1eed4a03d2083771ee6e5b616b9ab";
|
||||
sha256 = "dPe5CLCAuuuLGRdRCt/nNruxMrP9f/oddRxERkgm1FE=";
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
# Extra commands that should be added to '.zshrc'
|
||||
initExtra = ''
|
||||
eval "$(direnv hook zsh)"
|
||||
source ${pkgs.zsh-vi-mode}/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh
|
||||
path+=('/home/sajenim/.local/bin')
|
||||
export PATH
|
||||
PROMPT='%F{blue}%n@%m %F{cyan}%~ %F{red}♥ %f';
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue