restructurize config dir
This commit is contained in:
parent
c946a7d6d2
commit
705219d7bb
3 changed files with 36 additions and 36 deletions
72
config.fish
72
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,28 +110,28 @@ 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
|
||||||
alias clear="clear & f"
|
alias clear="clear & f"
|
||||||
end
|
end
|
||||||
|
|
||||||
# ─< set nmap-alias >───────────────────────────────────────────────────────────────────────
|
# ─< set nmap-alias >───────────────────────────────────────────────────────────────────────
|
||||||
if command -v nmap >/dev/null 2>&1
|
if command -v nmap >/dev/null 2>&1
|
||||||
alias scanvuln="sudo nmap --script vuln -vvv"
|
alias scanvuln="sudo nmap --script vuln -vvv"
|
||||||
alias sv="scanvuln"
|
alias sv="scanvuln"
|
||||||
alias portscan="sudo nmap -sT"
|
alias portscan="sudo nmap -sT"
|
||||||
alias ps="portscan"
|
alias ps="portscan"
|
||||||
end
|
end
|
||||||
|
|
||||||
# ────────────────────────────────────────< functions >─────────────────────────────────────
|
# ────────────────────────────────────────< functions >─────────────────────────────────────
|
||||||
|
@ -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
|
||||||
|
@ -153,8 +153,8 @@ 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
|
||||||
set -g defaults_user (echo $USER)
|
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)
|
# 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue