Add bash aliases

This commit is contained in:
Leo Alho 2026-07-28 14:31:21 +03:00
parent cddb54d142
commit 6b501030e5

View file

@ -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 >/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";
};
};