From 6b501030e58bc15036b7c28e42f31cdfd7b411e2 Mon Sep 17 00:00:00 2001 From: Leo Alho Date: Tue, 28 Jul 2026 14:31:21 +0300 Subject: [PATCH] Add bash aliases --- home.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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"; }; };