Integrates Ubuntu 24.04LTS default bash config and fixes anonymous functions to work properly in bash.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
function {
|
||||
function anon() {
|
||||
local icu_path=/opt/homebrew/opt/icu4c
|
||||
local bin_path=$icu_path/bin
|
||||
local sbin_path=$icu_path/sbin
|
||||
@@ -9,3 +9,4 @@ function {
|
||||
path=($sbin_path $path)
|
||||
fi
|
||||
}
|
||||
unset -f anon
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
function {
|
||||
function anon() {
|
||||
local script_path="$HOME/.iterm2_shell_integration.zsh"
|
||||
if [ "$TERM_PROGRAM" = "iTerm.app" -a -e "$script_path" ]; then
|
||||
source "$script_path"
|
||||
fi
|
||||
}
|
||||
unset -f anon
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
function {
|
||||
function anon() {
|
||||
local nvm_dir="$HOME/.nvm"
|
||||
|
||||
if [ -d $nvm_dir ]; then
|
||||
@@ -7,3 +7,4 @@ function {
|
||||
export NVM_DIR=$nvm_dir
|
||||
fi
|
||||
}
|
||||
unset -f anon
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
# TODO: make this detect the latest version at least.
|
||||
# TODO: make a formula or cask for this so it can come from homebrew instead.
|
||||
|
||||
function {
|
||||
function anon() {
|
||||
bin_path="$HOME/Applications/qb64_2022-09-08-23-37-44-47f5044_osx"
|
||||
|
||||
if [ -d $bin_path ]; then
|
||||
$path=($bin_path $path)
|
||||
path=($bin_path $path)
|
||||
fi
|
||||
}
|
||||
unset -f anon
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
function {
|
||||
function anon() {
|
||||
if [[ $(command -v yarn) ]]; then
|
||||
local yarn_path="$(yarn global bin)"
|
||||
path=($yarn_path $path)
|
||||
fi
|
||||
}
|
||||
unset -f anon
|
||||
|
||||
@@ -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