From a7224fbde1df3facae941cf8405a44cb042ca074 Mon Sep 17 00:00:00 2001 From: pika Date: Thu, 20 Jun 2024 00:23:13 +0200 Subject: [PATCH] addet neovide config --- aliases.fish | 8 +++++++- config.fish | 51 ++++++++++++++++++++++++++++++++++----------------- 2 files changed, 41 insertions(+), 18 deletions(-) diff --git a/aliases.fish b/aliases.fish index a98a403..102e9ab 100644 --- a/aliases.fish +++ b/aliases.fish @@ -1,4 +1,4 @@ - +#!/bin/fish # ─< VSCodium >───────────────────────────────────────────────────────────────────────────── if command -v codium >/dev/null 2>&1 alias code="codium" @@ -6,6 +6,12 @@ if command -v codium >/dev/null 2>&1 set -p EDITOR codium end +# ─< neovide, the best frontend for any neovim-config >─────────────────────────────────── +if test -d $HOME/.local/share/neovide/ + set -p neovide (bash -c 'find $HOME/ -name *neovide*.appimage') + alias nvim="$neovide" +end + # ─< colorized ls >───────────────────────────────────────────────────────────────────────── # ─< lsd >────────────────────────────────────────────────────────────────────────────────── if command -v lsd >/dev/null 2>&1 diff --git a/config.fish b/config.fish index 9b10060..98f7c9f 100644 --- a/config.fish +++ b/config.fish @@ -1,5 +1,18 @@ if status is-interactive # ─< Commands to run in interactive sessions can go here >────────────── + function _source + if test -d $HOME/.config/fish/init/ + source $HOME/.config/fish/init/setup.fish + # ────────────────────────────────────< setup some stuff >──────────────────────────────────── + upin + # dep_fisher + else + notify-send "no fish config.." + end + if test -e $HOME/.config/fish/aliases.fish + source $HOME/.config/fish/aliases.fish + end + end end # ╭───────────────────────────────────────────────────╮ @@ -16,7 +29,6 @@ function _source # ────────────────────────────────────< setup some stuff >──────────────────────────────────── upin # dep_fisher - # check_fishr else notify-send "no fish config.." end @@ -24,10 +36,12 @@ function _source source $HOME/.config/fish/aliases.fish end end + # ─────────────────────────────────< Environment-Variables >─────────────────────────────── set -p EDITOR (which nvim) # ────────────────────────────────────────< functions >───────────────────────────────────── + # ─< z stands for Zoxide >────────────────────────────────────────────────────────────────── function _zox if command -v zoxide >/dev/null 2>&1 @@ -35,29 +49,32 @@ function _zox end end -# ─< oh-my-posh >─────────────────────────────────────────────────────────────────────────── -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 +# ─< set colorscheme for bobthefish >─────────────────────────────────────────────────────── +function _bobfish + if test -d $HOME/.config/fish/functions/bobthefish/ + source $HOME/.config/fish/functions/bobthefish/*.fish + set -g theme_nerd_fonts yes + set -g defaults_user (echo $USER) + # 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 end -# ─< set colorscheme for bobthefish >─────────────────────────────────────────────────────── -if test -d $HOME/.config/fish/functions/ - set -g theme_nerd_fonts yes - set -g defaults_user (echo $USER) - # 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 + +# ─< 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 +else + _bobfish + curl -s https://ohmyposh.dev/install.sh | bash -s -- -d ~/bin end function main _source _zox - _omp + # _omp end main