addet oh-my-posh config

This commit is contained in:
pika 2024-06-13 11:56:36 +02:00
parent a4af14e765
commit 253fd4c711

View file

@ -10,35 +10,42 @@ end
# ╰───────────────────────────────────────────────────╯ # ╰───────────────────────────────────────────────────╯
# ────────────────────────────────────────< sources >────────────────────────────────────── # ────────────────────────────────────────< sources >──────────────────────────────────────
if test -d $HOME/.config/fish/init/ function _source
source $HOME/.config/fish/init/setup.fish if test -d $HOME/.config/fish/init/
# ────────────────────────────────────< setup some stuff >──────────────────────────────────── source $HOME/.config/fish/init/setup.fish
upin # ────────────────────────────────────< setup some stuff >────────────────────────────────────
# dep_fisher upin
# check_fishr # dep_fisher
else # check_fishr
notify-send "no fish config.." else
end notify-send "no fish config.."
if test -e $HOME/.config/fish/aliases.fish end
source $HOME/.config/fish/aliases.fish if test -e $HOME/.config/fish/aliases.fish
source $HOME/.config/fish/aliases.fish
end
end end
# ─────────────────────────────────< Environment-Variables >─────────────────────────────── # ─────────────────────────────────< Environment-Variables >───────────────────────────────
set -p EDITOR (which nvim) set -p EDITOR (which nvim)
# ────────────────────────────────────────< functions >───────────────────────────────────── # ────────────────────────────────────────< functions >─────────────────────────────────────
# ─< z stands for Zoxide >────────────────────────────────────────────────────────────────── # ─< z stands for Zoxide >──────────────────────────────────────────────────────────────────
if command -v zoxide >/dev/null 2>&1 function _zox
zoxide init fish | source if command -v zoxide >/dev/null 2>&1
zoxide init fish | source
end
end end
# ─< oh-my-posh >─────────────────────────────────────────────────────────────────────────── # ─< oh-my-posh >───────────────────────────────────────────────────────────────────────────
if command -v oh-my-posh >/dev/null 2>&1 function _omp
# ─< tokyo-storm config >─────────────────────────────────────────────────────────────────── if command -v oh-my-posh >/dev/null 2>&1
oh-my-posh init fish --config ~/.config/fish/themes/tokyo_storm.toml | source # ─< tokyo-storm config >───────────────────────────────────────────────────────────────────
# ─< zen config >─────────────────────────────────────────────────────────────────────────── oh-my-posh init fish --config ~/.config/fish/themes/tokyo_storm.toml | source
# oh-my-posh init fish --config ~/.config/fish/themes/zen.toml | source # ─< zen config >───────────────────────────────────────────────────────────────────────────
# oh-my-posh init fish --config ~/.config/fish/themes/zen.toml | source
else
curl -s https://ohmyposh.dev/install.sh | bash -s -- -d ~/bin
end
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
@ -46,3 +53,11 @@ if test -d $HOME/.config/fish/functions/
# 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
function main
_source
_zox
_omp
end
main