restructurize config dir
This commit is contained in:
parent
c946a7d6d2
commit
705219d7bb
3 changed files with 36 additions and 36 deletions
34
config.fish
34
config.fish
|
@ -1,5 +1,5 @@
|
||||||
if status is-interactive
|
if status is-interactive
|
||||||
# ─< Commands to run in interactive sessions can go here >──────────────
|
# ─< Commands to run in interactive sessions can go here >──────────────
|
||||||
end
|
end
|
||||||
|
|
||||||
# ╭───────────────────────────────────────────────────╮
|
# ╭───────────────────────────────────────────────────╮
|
||||||
|
@ -10,7 +10,7 @@ end
|
||||||
# ╰───────────────────────────────────────────────────╯
|
# ╰───────────────────────────────────────────────────╯
|
||||||
|
|
||||||
# ────────────────────────────────────────< sources >──────────────────────────────────────
|
# ────────────────────────────────────────< sources >──────────────────────────────────────
|
||||||
source $HOME/.config/fish/functions/setup.fish
|
source $HOME/.config/fish/init/*.fish
|
||||||
|
|
||||||
# ─────────────────────────────────< Environment-Variables >───────────────────────────────
|
# ─────────────────────────────────< Environment-Variables >───────────────────────────────
|
||||||
set -p EDITOR (which nvim)
|
set -p EDITOR (which nvim)
|
||||||
|
@ -22,23 +22,23 @@ if command -v lsd >/dev/null 2>&1
|
||||||
alias ll="lsd -lA"
|
alias ll="lsd -lA"
|
||||||
alias tree="lsd --tree"
|
alias tree="lsd --tree"
|
||||||
else
|
else
|
||||||
# ─< exa >──────────────────────────────────────────────────────────────────────────────────
|
# ─< exa >──────────────────────────────────────────────────────────────────────────────────
|
||||||
if command -v exa >/dev/null 2>&1
|
if command -v exa >/dev/null 2>&1
|
||||||
alias ls="exa --icons -l"
|
alias ls="exa --icons -l"
|
||||||
alias ll="exa --icons -laa"
|
alias ll="exa --icons -laa"
|
||||||
alias tree="exa --icons -l -tree"
|
alias tree="exa --icons -l -tree"
|
||||||
else
|
else
|
||||||
# ─< eza >──────────────────────────────────────────────────────────────────────────────────
|
# ─< eza >──────────────────────────────────────────────────────────────────────────────────
|
||||||
if command -v eza >/dev/null 2>&1
|
if command -v eza >/dev/null 2>&1
|
||||||
alias ls="eza --icons -l"
|
alias ls="eza --icons -l"
|
||||||
alias ll="eza --icons -laa"
|
alias ll="eza --icons -laa"
|
||||||
alias tree="eza --icons -l -tree"
|
alias tree="eza --icons -l -tree"
|
||||||
else
|
else
|
||||||
# ─< if nothing works -- plain old ls >─────────────────────────────────────────────────────
|
# ─< if nothing works -- plain old ls >─────────────────────────────────────────────────────
|
||||||
alias ls="ls --color=always -lph"
|
alias ls="ls --color=always -lph"
|
||||||
alias ll="ls --color=always -lAph"
|
alias ll="ls --color=always -lAph"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# ─< colored everything >───────────────────────────────────────────────────────────────────
|
# ─< colored everything >───────────────────────────────────────────────────────────────────
|
||||||
|
@ -110,16 +110,16 @@ end
|
||||||
if command -v fastfetch >/dev/null 2>&1
|
if command -v fastfetch >/dev/null 2>&1
|
||||||
alias ff="fastfetch"
|
alias ff="fastfetch"
|
||||||
alias clearff="command clear & fastfetch"
|
alias clearff="command clear & fastfetch"
|
||||||
# ─< check for fastfetch module-existance >─────────────────────────────────────────────────
|
# ─< check for fastfetch module-existance >─────────────────────────────────────────────────
|
||||||
command fastfetch --config os >/dev/null 2>&1
|
command fastfetch --config os >/dev/null 2>&1
|
||||||
# ─< check the status >─────────────────────────────────────────────────────────────────────
|
# ─< check the status >─────────────────────────────────────────────────────────────────────
|
||||||
switch $status
|
switch $status
|
||||||
case 0
|
case 0
|
||||||
alias f="fastfetch --config os"
|
alias f="fastfetch --config os"
|
||||||
# ─< unsuccessfull, cloning repo >──────────────────────────────────────────────────────────
|
# ─< unsuccessfull, cloning repo >──────────────────────────────────────────────────────────
|
||||||
case '*'
|
case '*'
|
||||||
git clone https://git.k4li.de/mirror/fastfetch $HOME/.local/share/fastfetch >/dev/null 2>&1
|
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
|
exec fish
|
||||||
end
|
end
|
||||||
clear & f
|
clear & f
|
||||||
|
@ -142,9 +142,9 @@ end
|
||||||
|
|
||||||
# ─< starship >─────────────────────────────────────────────────────────────────────────────
|
# ─< starship >─────────────────────────────────────────────────────────────────────────────
|
||||||
if command -v starship >/dev/null 2>&1
|
if command -v starship >/dev/null 2>&1
|
||||||
function starship_transient_prompt_func
|
function starship_transient_prompt_func
|
||||||
starship module character
|
starship module character
|
||||||
end
|
end
|
||||||
starship init fish | source
|
starship init fish | source
|
||||||
enable_transience
|
enable_transience
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue