addet fisher plugin support
This commit is contained in:
parent
b1337c69b8
commit
f322dfa16a
2 changed files with 42 additions and 25 deletions
54
config.fish
54
config.fish
|
@ -8,6 +8,7 @@ end
|
||||||
# │ If you have any questions, check the git page at: │
|
# │ If you have any questions, check the git page at: │
|
||||||
# │ https://git.k4li.de/pika/fish.git │
|
# │ https://git.k4li.de/pika/fish.git │
|
||||||
# ╰───────────────────────────────────────────────────╯
|
# ╰───────────────────────────────────────────────────╯
|
||||||
|
|
||||||
# ────────────────────────────────────────< sources >──────────────────────────────────────
|
# ────────────────────────────────────────< sources >──────────────────────────────────────
|
||||||
source $HOME/.config/fish/functions/git.fish
|
source $HOME/.config/fish/functions/git.fish
|
||||||
source $HOME/.config/fish/functions/tmux.fish
|
source $HOME/.config/fish/functions/tmux.fish
|
||||||
|
@ -16,29 +17,36 @@ source $HOME/.config/fish/functions/c_fisher.fish
|
||||||
# ─────────────────────────────────< Environment-Variables >───────────────────────────────
|
# ─────────────────────────────────< Environment-Variables >───────────────────────────────
|
||||||
set -p EDITOR (which nvim)
|
set -p EDITOR (which nvim)
|
||||||
|
|
||||||
|
# ─< check for sudo/root >──────────────────────────────────────────────────────────────────
|
||||||
|
if [ $USER == root ]
|
||||||
|
set sudo ""
|
||||||
|
else
|
||||||
|
set sudo "sudo"
|
||||||
|
end
|
||||||
|
|
||||||
# ─────────────────────────< START | distro/packagemanger detection >─────────────────────────
|
# ─────────────────────────< START | distro/packagemanger detection >─────────────────────────
|
||||||
# ─< DNF - Fedora >─────────────────────────────────────────────────────
|
# ─< DNF - Fedora >─────────────────────────────────────────────────────
|
||||||
if command -v dnf
|
if command -v dnf
|
||||||
alias install='sudo dnf install'
|
alias install='$sudo dnf install'
|
||||||
alias update='sudo dnf update && sudo dnf upgrade'
|
alias update='$sudo dnf update && sudo dnf upgrade'
|
||||||
alias search='sudo dnf search'
|
alias search='$sudo dnf search'
|
||||||
alias remove='sudo dnf remove'
|
alias remove='$sudo dnf remove'
|
||||||
set -a ALIASSES "-- You're using DNF aliases!! --"
|
set -a ALIASSES "-- You're using DNF aliases!! --"
|
||||||
end
|
end
|
||||||
|
|
||||||
# ─< APT/NALA - Debian >────────────────────────────────────────────────
|
# ─< APT/NALA - Debian >────────────────────────────────────────────────
|
||||||
if command -v nala >/dev/null 2>&1
|
if command -v nala >/dev/null 2>&1
|
||||||
alias install='sudo nala update && sudo nala install'
|
alias install='$sudo nala update && sudo nala install'
|
||||||
alias update='sudo nala update && sudo nala upgrade'
|
alias update='$sudo nala update && sudo nala upgrade'
|
||||||
alias search='nala search'
|
alias search='$sudo nala search'
|
||||||
alias remove='sudo nala remove'
|
alias remove='$sudo nala remove'
|
||||||
set ALIASSES "-- You're using NALA aliases!! --"
|
set ALIASSES "-- You're using NALA aliases!! --"
|
||||||
else
|
else
|
||||||
if command -v apt >/dev/null 2>&1
|
if command -v apt >/dev/null 2>&1
|
||||||
alias install='sudo apt update && sudo apt install'
|
alias install='$sudo apt update && sudo apt install'
|
||||||
alias update='sudo apt update && sudo apt upgrade'
|
alias update='$sudo apt update && sudo apt upgrade'
|
||||||
alias search='apt search'
|
alias search='$sudo apt search'
|
||||||
alias remove='sudo apt remove'
|
alias remove='$sudo apt remove'
|
||||||
set ALIASSES "-- You're using APT aliases!! --"
|
set ALIASSES "-- You're using APT aliases!! --"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -59,9 +67,9 @@ if command -v paru >/dev/null 2>&1
|
||||||
set ALIASSES "-- You're using Arch!! - installed helper: paru --"
|
set ALIASSES "-- You're using Arch!! - installed helper: paru --"
|
||||||
else
|
else
|
||||||
if command -v pacman >/dev/null 2>&1
|
if command -v pacman >/dev/null 2>&1
|
||||||
alias install='sudo pacman -S'
|
alias install='$sudo pacman -S'
|
||||||
alias update='sudo pacman -Syu'
|
alias update='$sudo pacman -Syu'
|
||||||
alias remove='sudo pacman -R'
|
alias remove='$sudo pacman -R'
|
||||||
set ALIASSES "-- by the PACMAN - You're using Arch!! --"
|
set ALIASSES "-- by the PACMAN - You're using Arch!! --"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -69,20 +77,20 @@ end
|
||||||
|
|
||||||
# ─< Zypper - OpenSuse >────────────────────────────────────────────────────────────────────
|
# ─< Zypper - OpenSuse >────────────────────────────────────────────────────────────────────
|
||||||
if command -v zypper >/dev/null 2>&1
|
if command -v zypper >/dev/null 2>&1
|
||||||
alias install='sudo zypper in'
|
alias install='$sudo zypper in'
|
||||||
alias update='sudo zypper dup'
|
alias update='$sudo zypper dup'
|
||||||
alias search='sudo zypper se'
|
alias search='$sudo zypper se'
|
||||||
alias lock='sudo zypper al'
|
alias lock='$sudo zypper al'
|
||||||
alias remove='sudo zypper rm'
|
alias remove='$sudo zypper rm'
|
||||||
set ALIASSES "-- I see.. you're using OpenSUSE. i like <3 --
|
set ALIASSES "-- I see.. you're using OpenSUSE. i like <3 --
|
||||||
-- ZYPPER -- "
|
-- ZYPPER -- "
|
||||||
end
|
end
|
||||||
|
|
||||||
# ─< APK - Alpine >─────────────────────────────────────────────────────────────────────────
|
# ─< APK - Alpine >─────────────────────────────────────────────────────────────────────────
|
||||||
if command -v apk >/dev/null 2>&1
|
if command -v apk >/dev/null 2>&1
|
||||||
alias install='sudo apk add'
|
alias install='$sudo apk add'
|
||||||
alias update='sudo apk update'
|
alias update='$sudo apk update'
|
||||||
alias search='sudo apk search'
|
alias search='$sudo apk search'
|
||||||
set ALIASSES "-- Alpine.. right, this fast os is evolving.. --"
|
set ALIASSES "-- Alpine.. right, this fast os is evolving.. --"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -11,8 +11,17 @@ if [[ ! -e $HOME/.config/fish/functions/fisher.fish ]]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
set plugin "PatrickF1/fzf.fish" "jorgebucaran/autopair.fish"
|
||||||
|
|
||||||
function plugins_fisher
|
function plugins_fisher
|
||||||
if command -v fisher >/dev/null 2>&1
|
for plug in $plugin
|
||||||
fisher install PatrickF1/fzf.fish
|
if fisher update $plug
|
||||||
|
echo "Updated $plug"
|
||||||
|
else
|
||||||
|
fisher install $plug
|
||||||
|
echo "Installed $plug"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
plugins_fisher
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue