29 lines
776 B
Nix
29 lines
776 B
Nix
{ config, lib, pkgs, ... }: {
|
|
|
|
home.packages = with pkgs; [ oh-my-posh ];
|
|
|
|
programs.bash = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
blesh.enable = true;
|
|
|
|
shellAliases = {
|
|
ls = "eza";
|
|
ll = "ls -l";
|
|
|
|
ksh = "kitten ssh";
|
|
|
|
vi = "nvim";
|
|
vim = "nvim";
|
|
|
|
};
|
|
|
|
initContent = if config.homeconfig.wal.enable then (lib.mkBefore ''
|
|
cat ${config.home.homeDirectory}/.cache/wal/sequences
|
|
eval "$(oh-my-posh init bash --config ${config.home.homeDirectory}/.cache/wal/ohmyposh.toml)"
|
|
'') else (lib.mkBefore ''
|
|
eval "$(oh-my-posh init bash --config ${config.home.homeDirectory}/.config/ohmyposh/ohmyposh.toml)"
|
|
'');
|
|
};
|
|
}
|