Integrates Ubuntu 24.04LTS default bash config and fixes anonymous functions to work properly in bash.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# TODO: Check if zoxide_path exists.
|
||||
# TODO: Check shell better.
|
||||
# -n $zoxide_path -a -n $zoxide_path
|
||||
function {
|
||||
function anon() {
|
||||
zoxide_path=$(which zoxide)
|
||||
if [ -n $zoxide_path -a $zoxide_path != "zoxide not found" ]; then
|
||||
if [ "$SHELL" = "/bin/zsh" ]; then
|
||||
@@ -9,3 +9,4 @@ function {
|
||||
fi
|
||||
fi
|
||||
}
|
||||
unset -f anon
|
||||
|
||||
Reference in New Issue
Block a user