Integrates Ubuntu 24.04LTS default bash config and fixes anonymous functions to work properly in bash.

This commit is contained in:
Tom Hicks
2024-09-30 14:16:46 -07:00
parent 7dbc649489
commit 436baf3241
13 changed files with 231 additions and 18 deletions

View File

@@ -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