set TERM to xterm-color + new nixre func that can do a --log-format
This commit is contained in:
@@ -31,20 +31,18 @@
|
|||||||
# this does not work aparently....
|
# this does not work aparently....
|
||||||
|
|
||||||
# is needed to that ssh works
|
# is needed to that ssh works
|
||||||
TREM = "xterm";
|
# TERM = "xterm";
|
||||||
|
|
||||||
# my prompt
|
# my prompt
|
||||||
PS1 = ''\[\033[01;34m\]\W\[\033[00m\]\[\033[01;32m\]\[\033[00m\] ❯❯❯ '';
|
PS1 = ''\[\033[01;34m\]\W\[\033[00m\]\[\033[01;32m\]\[\033[00m\] ❯❯❯ '';
|
||||||
|
|
||||||
TEST = "hiiiiiiiiiiiiiiiiiiiiiiiiiii";
|
TEST = "hiiiiiiiiiiiiiiiiiiiiiiiiiii";
|
||||||
|
|
||||||
HIII = "hiiiiiiiiiiiiiiiiiiiiii";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
shutdown = "echo try harder.... xD";
|
shutdown = "echo try harder.... xD";
|
||||||
npw = "nmcli c up pw";
|
npw = "nmcli c up pw";
|
||||||
nixre = "sd nixos-rebuild switch --flake ~/work/config/ --impure";
|
#nixre = "sd nixos-rebuild switch --flake ~/work/config/ --impure";
|
||||||
flex = "neofetch | lolcat";
|
flex = "neofetch | lolcat";
|
||||||
kwoche = "curl https://kalenderwoche.celll.net/?api=1; echo";
|
kwoche = "curl https://kalenderwoche.celll.net/?api=1; echo";
|
||||||
psg = "ps -e | grep";
|
psg = "ps -e | grep";
|
||||||
@@ -72,7 +70,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
bashrcExtra = ''
|
bashrcExtra = ''
|
||||||
export TREM="xterm"
|
export TERM="xterm-color"
|
||||||
|
|
||||||
# my prompt
|
# my prompt
|
||||||
export PS1="\[\033[01;34m\]\W\[\033[00m\]\[\033[01;32m\]\[\033[00m\] ❯❯❯ "
|
export PS1="\[\033[01;34m\]\W\[\033[00m\]\[\033[01;32m\]\[\033[00m\] ❯❯❯ "
|
||||||
@@ -257,6 +255,21 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# my nixos rebuild
|
||||||
|
function nixre(){
|
||||||
|
if [ "$1" == "boot" ]
|
||||||
|
then
|
||||||
|
nix build ~/work/config#nixosConfigurations.c2vi-main.config.system.build.toplevel --impure ''${@:2}
|
||||||
|
sudo ./result/bin/switch-to-configuration boot
|
||||||
|
rm ./result
|
||||||
|
else
|
||||||
|
nix build ~/work/config#nixosConfigurations.c2vi-main.config.system.build.toplevel --impure $@
|
||||||
|
sudo ./result/bin/switch-to-configuration switch
|
||||||
|
rm ./result
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#################### completions ####################
|
#################### completions ####################
|
||||||
complete -cf sudo
|
complete -cf sudo
|
||||||
complete -cf sd
|
complete -cf sd
|
||||||
|
|||||||
Reference in New Issue
Block a user