bugfixing..

This commit is contained in:
PieckA 2024-05-25 18:18:45 +02:00
parent df727178f0
commit 5663dc04e6
2 changed files with 18 additions and 44 deletions

View file

@ -161,18 +161,10 @@ else
curl -sS https://starship.rs/install.sh | sh && exec fish curl -sS https://starship.rs/install.sh | sh && exec fish
end end
set colorscheme for bobthefish # ─< set colorscheme for bobthefish >───────────────────────────────────────────────────────
if test -d $HOME/.config/fish/functions/ if test -d $HOME/.config/fish/functions/
set -g theme_nerd_fonts yes set -g theme_nerd_fonts yes
set -g defaults_user (echo $USER) set -g defaults_user (echo $USER)
# available options: dark, light, solarized(-dark/-light), base16(-dark/-light), zenburn, gruvbox(-light), dracula, nord, catppuccin-(latte/frappe/macchiato/mocha) # available options: dark, light, solarized(-dark/-light), base16(-dark/-light), zenburn, gruvbox(-light), dracula, nord, catppuccin-(latte/frappe/macchiato/mocha)
set -g theme_color_scheme catppuccin-mocha set -g theme_color_scheme catppuccin-mocha
end end
set -a TOOLBOX "$warnings

$toolbox

$ALIASSES

"

View file

@ -154,11 +154,13 @@ end
# ╰───────────────────────────────────────────────────╯ # ╰───────────────────────────────────────────────────╯
if command -v tmux >/dev/null 2>&1 if command -v tmux >/dev/null 2>&1
function ta function ta
if command tmux list-sessions >/dev/null 2>&1 command tmux list-sessions >/dev/null 2>&1
switch $status
case 0
echo "Tmux session found. Entering it now! --" echo "Tmux session found. Entering it now! --"
sleep 0.5 sleep 0.5
tmux a tmux a
else case '*'
echo "No Tmux session found. Creating one now! --" echo "No Tmux session found. Creating one now! --"
tmux tmux
end end
@ -171,7 +173,6 @@ end
function dep_fisher function dep_fisher
# Define dependencies for the plugins used by fisher # Define dependencies for the plugins used by fisher
set dependencies "fzf" set dependencies "fzf"
# Check and install dependencies # Check and install dependencies
for dep in $dependencies for dep in $dependencies
if not command -v $dep >/dev/null 2>&1 if not command -v $dep >/dev/null 2>&1
@ -195,40 +196,21 @@ function inst_fisher
end end
function check_fisher function check_fisher
switch $CHECK_FISHER while $check_fisher != "true"
case true echo "check_fisher == flase"
fisher update sleep 1
case '*' # if $check_fisher = "true"
if test ! -e $HOME/.config/fish/functions/fisher.fish
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish >> $HOME/.config/fish/functions/fisher.fish
else
fisher update >/dev/null 2>&1 fisher update >/dev/null 2>&1
switch $status switch $status
case 0 case 0
set -U CHECK_FISHER "true" set -U check_fisher "true"
echo "check_fisher == true"
sleep 1
case '*' case '*'
if test ! -e $HOME/.config/fish/functions/fisher.fish
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish >> $HOME/.config/fish/functions/fisher.fish
inst_fisher inst_fisher
end end
end end
end end
end end
# ╭──────────────────────────────────╮
# │ FUNCTION: install fisher plugins │
# ╰──────────────────────────────────╯
function plugs_fisher
# Define plugins to use with fisher
set plugins "PatrickF1/fzf.fish" "jorgebucaran/autopair.fish"
# Loop for plugin installation/update
for plugin in $plugins
if fisher list | grep -q (basename $plugin)
fisher update $plugin
echo "Updated $plugin"
else
fisher install $plugin
echo "Installed $plugin"
end
end
end