Commit for generation 151
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
STARSHIP_CONFIG = /home/pagedmov/.config/starship/starship.toml;
|
||||
FZF_DEFAULT_COMMAND = "find $HOME \( -path \"$HOME/.steam\" -o -path \"$HOME/.mozilla\" -o -path \"$HOME/go\" \) -prune -o -type f -print";
|
||||
GIT_TOKEN = "$(cat supersecret/git-token)";
|
||||
PROMPT_COMMAND = "if [[ $? != 0 ]]; then sounds_enabled && aplay ~/sound/sys/error.wav; fi";
|
||||
PROMPT_COMMAND = "if [[ $? != 0 ]]; then sounds_enabled && (aplay ~/sound/sys/error.wav 2> /dev/null &); fi";
|
||||
};
|
||||
|
||||
shellAliases = {
|
||||
@@ -126,13 +126,13 @@ wiki_update() {
|
||||
# Functions
|
||||
ls() {
|
||||
command ls --group-directories-first --color=always -F1 "$@" | sort -f -k1
|
||||
sounds_enabled && aplay ~/sound/sys/ls.wav 2> /dev/null
|
||||
sounds_enabled && (aplay ~/sound/sys/ls.wav 2> /dev/null &)
|
||||
}
|
||||
|
||||
# cd and ls after
|
||||
cd() {
|
||||
builtin cd "$@" && ls
|
||||
sounds_enabled && aplay ~/sound/sys/cd.wav 2> /dev/null
|
||||
sounds_enabled && (aplay ~/sound/sys/cd.wav 2> /dev/null &)
|
||||
}
|
||||
src() {
|
||||
autoload -U zrecompile
|
||||
@@ -185,7 +185,7 @@ safe_rm() {
|
||||
|
||||
# Perform the removal if no checks or confirmation is "y"
|
||||
if [ "$check" = false ] || [ "$confirm" = "y" ]; then
|
||||
check_sounds && aplay ~/sound/sys/rm.wav 2> /dev/null
|
||||
check_sounds && (aplay ~/sound/sys/rm.wav 2> /dev/null &)
|
||||
/run/current-system/sw/bin/rm -rfv "$dir"
|
||||
else
|
||||
echo "Operation cancelled for '$dir'."
|
||||
@@ -198,7 +198,7 @@ safe_rm() {
|
||||
|
||||
|
||||
nixswitch() {
|
||||
sounds_enabled && aplay ~/sound/sys/nixswitch-start.wav 2> /dev/null
|
||||
sounds_enabled && (aplay ~/sound/sys/nixswitch-start.wav 2> /dev/null &)
|
||||
builtin cd "$HOME/sysflakes"
|
||||
nix flake update
|
||||
|
||||
@@ -212,7 +212,7 @@ nixswitch() {
|
||||
fi
|
||||
sudo nixos-rebuild switch --flake "$HOME/sysflakes#glasshouse"
|
||||
builtin cd $OLDPWD
|
||||
sounds_enabled && aplay ~/sound/sys/update.wav 2> /dev/null
|
||||
sounds_enabled && (aplay ~/sound/sys/update.wav 2> /dev/null &)
|
||||
}
|
||||
journal() {
|
||||
# journal for keeping track of stuff I do that isn't declared in my nix config
|
||||
|
||||
Reference in New Issue
Block a user