diff --git a/home.nix b/home.nix index e634dc8..8a4e393 100644 --- a/home.nix +++ b/home.nix @@ -110,11 +110,19 @@ ############################################################################# programs.bash = { enable = true; - initExtra = builtins.readFile ./dotfiles/bash_prompt; + initExtra = builtins.readFile ./dotfiles/bash_prompt + '' + + function gcam() { git commit -a -m "$1"; } + function dt() { nohup "$@" /dev/null 2>&1 & disown; } + function mkcdir() { mkdir "$1" && cd "$1"; } + function csa() { cd $1 && ls -a; } + function cs() { cd $1 && ls; } + ''; shellAliases = { c = "clear"; gm = "git checkout master && git pull"; count = "ls -1 | wc -l"; + nrs = "sudo nixos-rebuild switch --flake . --impure"; }; };