restructurize config dir

This commit is contained in:
pika 2024-05-26 20:22:33 +02:00
parent c946a7d6d2
commit 705219d7bb
3 changed files with 36 additions and 36 deletions

View file

@ -1,5 +1,5 @@
if status is-interactive
# ─< Commands to run in interactive sessions can go here >──────────────
# ─< Commands to run in interactive sessions can go here >──────────────
end
# ╭───────────────────────────────────────────────────╮
@ -10,7 +10,7 @@ end
# ╰───────────────────────────────────────────────────╯
# ────────────────────────────────────────< sources >──────────────────────────────────────
source $HOME/.config/fish/functions/setup.fish
source $HOME/.config/fish/init/*.fish
# ─────────────────────────────────< Environment-Variables >───────────────────────────────
set -p EDITOR (which nvim)
@ -22,23 +22,23 @@ if command -v lsd >/dev/null 2>&1
alias ll="lsd -lA"
alias tree="lsd --tree"
else
# ─< exa >──────────────────────────────────────────────────────────────────────────────────
if command -v exa >/dev/null 2>&1
# ─< exa >──────────────────────────────────────────────────────────────────────────────────
if command -v exa >/dev/null 2>&1
alias ls="exa --icons -l"
alias ll="exa --icons -laa"
alias tree="exa --icons -l -tree"
else
# ─< eza >──────────────────────────────────────────────────────────────────────────────────
if command -v eza >/dev/null 2>&1
else
# ─< eza >──────────────────────────────────────────────────────────────────────────────────
if command -v eza >/dev/null 2>&1
alias ls="eza --icons -l"
alias ll="eza --icons -laa"
alias tree="eza --icons -l -tree"
else
# ─< if nothing works -- plain old ls >─────────────────────────────────────────────────────
else
# ─< if nothing works -- plain old ls >─────────────────────────────────────────────────────
alias ls="ls --color=always -lph"
alias ll="ls --color=always -lAph"
end
end
end
end
end
# ─< colored everything >───────────────────────────────────────────────────────────────────
@ -110,16 +110,16 @@ end
if command -v fastfetch >/dev/null 2>&1
alias ff="fastfetch"
alias clearff="command clear & fastfetch"
# ─< check for fastfetch module-existance >─────────────────────────────────────────────────
# ─< check for fastfetch module-existance >─────────────────────────────────────────────────
command fastfetch --config os >/dev/null 2>&1
# ─< check the status >─────────────────────────────────────────────────────────────────────
# ─< check the status >─────────────────────────────────────────────────────────────────────
switch $status
case 0
alias f="fastfetch --config os"
# ─< unsuccessfull, cloning repo >──────────────────────────────────────────────────────────
# ─< unsuccessfull, cloning repo >──────────────────────────────────────────────────────────
case '*'
git clone https://git.k4li.de/mirror/fastfetch $HOME/.local/share/fastfetch >/dev/null 2>&1
# ─< execute fish to reinitialize aliasses >────────────────────────────────────────────────
# ─< execute fish to reinitialize aliasses >────────────────────────────────────────────────
exec fish
end
clear & f
@ -142,9 +142,9 @@ end
# ─< starship >─────────────────────────────────────────────────────────────────────────────
if command -v starship >/dev/null 2>&1
function starship_transient_prompt_func
function starship_transient_prompt_func
starship module character
end
end
starship init fish | source
enable_transience
else