Commit for generation 158
This commit is contained in:
@@ -131,7 +131,7 @@ ls() {
|
|||||||
|
|
||||||
# cd and ls after
|
# cd and ls after
|
||||||
cd() {
|
cd() {
|
||||||
builtin cd "$@" && command ls --group-directories-first --color=always -F1 "$@" | sort -f -k1
|
command ls --group-directories-first --color=always -F1 "$@" | sort -f -k1 && builtin cd "$@"
|
||||||
sounds_enabled && (aplay ~/sound/sys/cd.wav > /dev/null 2>&1 &)
|
sounds_enabled && (aplay ~/sound/sys/cd.wav > /dev/null 2>&1 &)
|
||||||
}
|
}
|
||||||
src() {
|
src() {
|
||||||
@@ -184,8 +184,9 @@ safe_rm() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Perform the removal if no checks or confirmation is "y"
|
# Perform the removal if no checks or confirmation is "y"
|
||||||
|
played_sound=0
|
||||||
if [ "$check" = false ] || [ "$confirm" = "y" ]; then
|
if [ "$check" = false ] || [ "$confirm" = "y" ]; then
|
||||||
sounds_enabled && (aplay ~/sound/sys/rm.wav > /dev/null 2>&1 &)
|
[ $played_sound -eq 0 ] && sounds_enabled && (aplay ~/sound/sys/rm.wav > /dev/null 2>&1 &) && played_sound=1
|
||||||
/run/current-system/sw/bin/rm -rfv "$dir"
|
/run/current-system/sw/bin/rm -rfv "$dir"
|
||||||
else
|
else
|
||||||
echo "Operation cancelled for '$dir'."
|
echo "Operation cancelled for '$dir'."
|
||||||
|
|||||||
Reference in New Issue
Block a user