Adds a bunch of fixes.

This commit is contained in:
Tom Hicks
2024-09-20 18:03:26 -07:00
parent 51fa32de5d
commit 26d72aa686
12 changed files with 24 additions and 5 deletions

0
.rc.d/aliases.sh Normal file → Executable file
View File

0
.rc.d/cargo.sh Normal file → Executable file
View File

2
.rc.d/fzf.sh Normal file → Executable file
View File

@@ -11,4 +11,6 @@
# To use fzf in Vim, add the following line to your .vimrc:
# set rtp+=/opt/homebrew/opt/fzf
if [ -x "$(which fzf)" ]; then
source <(fzf --zsh)
fi

16
.rc.d/fzf.sh.disabled Executable file
View File

@@ -0,0 +1,16 @@
# To set up shell integration, add this to your shell configuration file:
# # bash
# eval "$(fzf --bash)"
# # zsh
# source <(fzf --zsh)
# # fish
# fzf --fish | source
# To use fzf in Vim, add the following line to your .vimrc:
# set rtp+=/opt/homebrew/opt/fzf
if [ -x "$(which fzf)" ]; then
source <(fzf --zsh)
fi

0
.rc.d/icu.sh Normal file → Executable file
View File

0
.rc.d/iterm2.sh Normal file → Executable file
View File

0
.rc.d/ls-colors.sh Normal file → Executable file
View File

View File

@@ -1,5 +1,5 @@
function {
$nvm_dir="$HOME/.nvm"
local nvm_dir="$HOME/.nvm"
if [ -d $nvm_dir ]; then
[ -s $nvm_dir/nvm.sh ] && \. $nvm_dir/nvm.sh # This loads nvm

0
.rc.d/qb64.sh Normal file → Executable file
View File

2
.rc.d/yarn.sh Normal file → Executable file
View File

@@ -1,6 +1,6 @@
function {
if [[ $(command -v yarn) ]]; then
local yarn_path="$(yarn global bin)"
$path=($yarn_path $path)
path=($yarn_path $path)
fi
}

3
.rc.d/zoxide.sh Normal file → Executable file
View File

@@ -1,8 +1,9 @@
# TODO: Check if zoxide_path exists.
# TODO: Check shell better.
# -n $zoxide_path -a -n $zoxide_path
function {
zoxide_path=$(which zoxide)
if [ -n $zoxide_path -a ( $zoxide_path != "zoxide not found" ) ];
if [ -n $zoxide_path -a $zoxide_path != "zoxide not found" ]; then
if [ "$SHELL" = "/bin/zsh" ]; then
eval "$(zoxide init --cmd cd zsh)"
fi

0
.rc.d/zsh-completions.sh Normal file → Executable file
View File