addet oh-my-posh config
This commit is contained in:
parent
a4af14e765
commit
253fd4c711
1 changed files with 34 additions and 19 deletions
53
config.fish
53
config.fish
|
@ -10,35 +10,42 @@ end
|
|||
# ╰───────────────────────────────────────────────────╯
|
||||
|
||||
# ────────────────────────────────────────< sources >──────────────────────────────────────
|
||||
if test -d $HOME/.config/fish/init/
|
||||
source $HOME/.config/fish/init/setup.fish
|
||||
# ────────────────────────────────────< setup some stuff >────────────────────────────────────
|
||||
upin
|
||||
# dep_fisher
|
||||
# check_fishr
|
||||
else
|
||||
notify-send "no fish config.."
|
||||
end
|
||||
if test -e $HOME/.config/fish/aliases.fish
|
||||
source $HOME/.config/fish/aliases.fish
|
||||
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
|
||||
notify-send "no fish config.."
|
||||
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
|
||||
zoxide init fish | source
|
||||
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
|
||||
# ─< 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
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue