From: Oleg Broytman Date: Sat, 8 Oct 2022 10:20:25 +0000 (+0300) Subject: .bashrc: Indent 4 spaces X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=commitdiff_plain;h=09f6e97ac8af6d61b40b417e577e1e6a6e64e7e4 .bashrc: Indent 4 spaces --- diff --git a/.bashrc b/.bashrc index 7a874bf..f1614c8 100644 --- a/.bashrc +++ b/.bashrc @@ -301,13 +301,13 @@ if [ "$SHLVL" -eq 1 -a "`type -t X`" = function ] && which startx >/dev/null 2>& # From https://stackoverflow.com/a/18839557 copy_function() { - test -n "$(declare -f "$1")" || return - eval "${_/$1/$2}" + test -n "$(declare -f "$1")" || return + eval "${_/$1/$2}" } rename_function() { - copy_function "$@" || return - unset -f "$1" + copy_function "$@" || return + unset -f "$1" } rename_function X _non_bash_X