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
|
||||
# ─< 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
|
||||
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
|
||||
alias ls="eza --icons -l"
|
||||
alias ll="eza --icons -laa"
|
||||
alias tree="eza --icons -l -tree"
|
||||
else
|
||||
# ─< if nothing works -- plain old ls >─────────────────────────────────────────────────────
|
||||
alias ls="ls --color=always -lph"
|
||||
alias ll="ls --color=always -lAph"
|
||||
end
|
||||
end
|
||||
# ─< 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
|
||||
alias ls="eza --icons -l"
|
||||
alias ll="eza --icons -laa"
|
||||
alias tree="eza --icons -l -tree"
|
||||
else
|
||||
# ─< if nothing works -- plain old ls >─────────────────────────────────────────────────────
|
||||
alias ls="ls --color=always -lph"
|
||||
alias ll="ls --color=always -lAph"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# ─< colored everything >───────────────────────────────────────────────────────────────────
|
||||
|
@ -110,28 +110,28 @@ 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 >─────────────────────────────────────────────────────────────────────
|
||||
switch $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
|
||||
end
|
||||
clear & f
|
||||
alias clear="clear & f"
|
||||
end
|
||||
|
||||
# ─< set nmap-alias >───────────────────────────────────────────────────────────────────────
|
||||
if command -v nmap >/dev/null 2>&1
|
||||
alias scanvuln="sudo nmap --script vuln -vvv"
|
||||
alias sv="scanvuln"
|
||||
alias portscan="sudo nmap -sT"
|
||||
alias ps="portscan"
|
||||
alias scanvuln="sudo nmap --script vuln -vvv"
|
||||
alias sv="scanvuln"
|
||||
alias portscan="sudo nmap -sT"
|
||||
alias ps="portscan"
|
||||
end
|
||||
|
||||
# ────────────────────────────────────────< functions >─────────────────────────────────────
|
||||
|
@ -142,9 +142,9 @@ end
|
|||
|
||||
# ─< starship >─────────────────────────────────────────────────────────────────────────────
|
||||
if command -v starship >/dev/null 2>&1
|
||||
function starship_transient_prompt_func
|
||||
starship module character
|
||||
end
|
||||
function starship_transient_prompt_func
|
||||
starship module character
|
||||
end
|
||||
starship init fish | source
|
||||
enable_transience
|
||||
else
|
||||
|
@ -153,8 +153,8 @@ 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
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue