addet oh-my-posh config
This commit is contained in:
parent
a4af14e765
commit
253fd4c711
1 changed files with 34 additions and 19 deletions
17
config.fish
17
config.fish
|
@ -10,6 +10,7 @@ end
|
||||||
# ╰───────────────────────────────────────────────────╯
|
# ╰───────────────────────────────────────────────────╯
|
||||||
|
|
||||||
# ────────────────────────────────────────< sources >──────────────────────────────────────
|
# ────────────────────────────────────────< sources >──────────────────────────────────────
|
||||||
|
function _source
|
||||||
if test -d $HOME/.config/fish/init/
|
if test -d $HOME/.config/fish/init/
|
||||||
source $HOME/.config/fish/init/setup.fish
|
source $HOME/.config/fish/init/setup.fish
|
||||||
# ────────────────────────────────────< setup some stuff >────────────────────────────────────
|
# ────────────────────────────────────< setup some stuff >────────────────────────────────────
|
||||||
|
@ -22,23 +23,29 @@ end
|
||||||
if test -e $HOME/.config/fish/aliases.fish
|
if test -e $HOME/.config/fish/aliases.fish
|
||||||
source $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 >──────────────────────────────────────────────────────────────────
|
||||||
|
function _zox
|
||||||
if command -v zoxide >/dev/null 2>&1
|
if command -v zoxide >/dev/null 2>&1
|
||||||
zoxide init fish | source
|
zoxide init fish | source
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# ─< oh-my-posh >───────────────────────────────────────────────────────────────────────────
|
# ─< oh-my-posh >───────────────────────────────────────────────────────────────────────────
|
||||||
|
function _omp
|
||||||
if command -v oh-my-posh >/dev/null 2>&1
|
if command -v oh-my-posh >/dev/null 2>&1
|
||||||
# ─< tokyo-storm config >───────────────────────────────────────────────────────────────────
|
# ─< tokyo-storm config >───────────────────────────────────────────────────────────────────
|
||||||
oh-my-posh init fish --config ~/.config/fish/themes/tokyo_storm.toml | source
|
oh-my-posh init fish --config ~/.config/fish/themes/tokyo_storm.toml | source
|
||||||
# ─< zen config >───────────────────────────────────────────────────────────────────────────
|
# ─< zen config >───────────────────────────────────────────────────────────────────────────
|
||||||
# oh-my-posh init fish --config ~/.config/fish/themes/zen.toml | source
|
# 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue