Add bash aliases
This commit is contained in:
parent
cddb54d142
commit
6b501030e5
1 changed files with 9 additions and 1 deletions
10
home.nix
10
home.nix
|
|
@ -110,11 +110,19 @@
|
||||||
#############################################################################
|
#############################################################################
|
||||||
programs.bash = {
|
programs.bash = {
|
||||||
enable = true;
|
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 = {
|
shellAliases = {
|
||||||
c = "clear";
|
c = "clear";
|
||||||
gm = "git checkout master && git pull";
|
gm = "git checkout master && git pull";
|
||||||
count = "ls -1 | wc -l";
|
count = "ls -1 | wc -l";
|
||||||
|
nrs = "sudo nixos-rebuild switch --flake . --impure";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue