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 >──────────────────────────────────────
if test -d $HOME/.config/fish/init/
function _source
if test -d $HOME/.config/fish/init/
source $HOME/.config/fish/init/setup.fish
# ────────────────────────────────────< setup some stuff >────────────────────────────────────
upin
# dep_fisher
# check_fishr
else
else
notify-send "no fish config.."
end
if test -e $HOME/.config/fish/aliases.fish
end
if test -e $HOME/.config/fish/aliases.fish
source $HOME/.config/fish/aliases.fish
end
end
# ─────────────────────────────────< Environment-Variables >───────────────────────────────
set -p EDITOR (which nvim)
# ────────────────────────────────────────< functions >─────────────────────────────────────
# ─< z stands for Zoxide >──────────────────────────────────────────────────────────────────
if command -v zoxide >/dev/null 2>&1
function _zox
if command -v zoxide >/dev/null 2>&1
zoxide init fish | source
end
end
# ─< oh-my-posh >───────────────────────────────────────────────────────────────────────────
if command -v oh-my-posh >/dev/null 2>&1
function _omp
if command -v oh-my-posh >/dev/null 2>&1
# ─< tokyo-storm config >───────────────────────────────────────────────────────────────────
oh-my-posh init fish --config ~/.config/fish/themes/tokyo_storm.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
# ─< set colorscheme for bobthefish >───────────────────────────────────────────────────────
if test -d $HOME/.config/fish/functions/
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)
set -g theme_color_scheme catppuccin-mocha
end
function main
_source
_zox
_omp
end
main