zaneyos/config/home/bash.nix

37 lines
892 B
Nix
Raw Normal View History

{ config, pkgs, ... }:
2024-01-18 08:36:06 +01:00
let inherit (import ../../options.nix) flakeDir; in
2024-01-18 08:36:06 +01:00
{
# Configure Bash
programs.bash = {
enable = true;
enableCompletion = true;
profileExtra = ''
#if [ -z "$DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then
# exec Hyprland
#fi
'';
2024-01-24 06:32:20 +01:00
initExtra = ''
neofetch
if [ -f $HOME/.bashrc-personal ]; then
source $HOME/.bashrc-personal
fi
2024-01-24 06:32:20 +01:00
'';
2024-01-18 08:36:06 +01:00
sessionVariables = {
};
shellAliases = {
sv="sudo vim";
flake-rebuild="sudo nixos-rebuild switch --flake ${flakeDir}";
flake-update="sudo nix flake update ${flakeDir}";
2024-01-18 08:36:06 +01:00
gcCleanup="nix-collect-garbage --delete-old && sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
2024-02-05 21:18:53 +01:00
v="nvim";
2024-01-18 08:36:06 +01:00
ls="lsd";
ll="lsd -l";
la="lsd -a";
lal="lsd -al";
".."="cd ..";
};
};
}