mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-12-22 16:12:55 -05:00
Aly Raffauf
a4754e56b7
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / adjustor-build (push) Waiting to run
nix-build / clean-install-build (push) Waiting to run
nix-build / hhd-ui-build (push) Waiting to run
nix-build / rofi-bluetooth-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / pacifidlog-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
79 lines
1.6 KiB
Nix
79 lines
1.6 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
config = lib.mkIf config.ar.home.apps.shell.enable {
|
|
home.shellAliases = {
|
|
cat = lib.getExe pkgs.bat;
|
|
grep = lib.getExe config.programs.ripgrep.package;
|
|
};
|
|
|
|
programs = {
|
|
bash = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
enableVteIntegration = true;
|
|
|
|
shellOptions = [
|
|
"autocd"
|
|
"cdspell"
|
|
"checkjobs"
|
|
"checkwinsize"
|
|
"dirspell"
|
|
"dotglob"
|
|
"extglob"
|
|
"globstar"
|
|
"histappend"
|
|
];
|
|
|
|
initExtra = ''
|
|
export PS1="[\[$(tput setaf 27)\]\u\[$(tput setaf 135)\]@\[$(tput setaf 45)\]\h:\[$(tput setaf 33)\]\w] \[$(tput sgr0)\]$ "
|
|
'';
|
|
};
|
|
|
|
direnv.enable = true;
|
|
|
|
eza = {
|
|
enable = true;
|
|
extraOptions = ["--group-directories-first" "--header"];
|
|
git = true;
|
|
icons = "auto";
|
|
};
|
|
|
|
fzf = {
|
|
enable = true;
|
|
tmux.enableShellIntegration = true;
|
|
};
|
|
|
|
oh-my-posh = {
|
|
enable = true;
|
|
useTheme = "zash";
|
|
};
|
|
|
|
ripgrep = {
|
|
enable = true;
|
|
arguments = ["--pretty"];
|
|
};
|
|
|
|
zellij.enable = true;
|
|
|
|
zsh = {
|
|
enable = true;
|
|
autocd = true;
|
|
autosuggestion.enable = true;
|
|
enableCompletion = true;
|
|
enableVteIntegration = true;
|
|
historySubstringSearch.enable = true;
|
|
|
|
history = {
|
|
expireDuplicatesFirst = true;
|
|
extended = true;
|
|
ignoreAllDups = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|