addet submodule support for git
This commit is contained in:
parent
6c1edfe716
commit
160359c7b9
1 changed files with 20 additions and 19 deletions
39
config.fish
39
config.fish
|
@ -167,7 +167,7 @@ else
|
|||
end
|
||||
end
|
||||
|
||||
#t stands for tmux
|
||||
# ─< t stands for tmux >────────────────────────────────────────────────────────────────────
|
||||
if command -v tmux >/dev/null 2>&1
|
||||
alias ts="tmux source $HOME/.tmux.conf"
|
||||
alias ta="tmux a"
|
||||
|
@ -179,7 +179,7 @@ else
|
|||
"
|
||||
end
|
||||
|
||||
#d stands for docker
|
||||
# ─< d stands for docker >──────────────────────────────────────────────────────────────────
|
||||
if command -v docker >/dev/null 2>&1
|
||||
alias up='docker compose up'
|
||||
alias down='docker compose down'
|
||||
|
@ -196,15 +196,8 @@ else
|
|||
"
|
||||
end
|
||||
|
||||
if command -v starship >/dev/null 2>&1
|
||||
function starship_transient_prompt_func
|
||||
starship module character
|
||||
end
|
||||
starship init fish | source
|
||||
enable_transience
|
||||
end
|
||||
|
||||
# z stands for Zoxide
|
||||
# ─< z stands for Zoxide >──────────────────────────────────────────────────────────────────
|
||||
if command -v zoxide >/dev/null 2>&1
|
||||
zoxide init fish | source
|
||||
set -a toolbox " z is using $(which zoxide) [cd]
|
||||
|
@ -214,14 +207,14 @@ else
|
|||
"
|
||||
end
|
||||
|
||||
# g stands for git
|
||||
# ─< g stands for git >─────────────────────────────────────────────────────────────────────
|
||||
if command -v git >/dev/null 2>&1
|
||||
alias g='git'
|
||||
alias gc='git clone'
|
||||
alias gs='git status'
|
||||
alias ga='git add'
|
||||
alias gcm='git commit'
|
||||
alias gp='git pull'
|
||||
alias gp='git pull --recurse-submodule=on-demand'
|
||||
set -a toolbox " g is using $(which git)
|
||||
"
|
||||
else
|
||||
|
@ -229,30 +222,29 @@ else
|
|||
"
|
||||
end
|
||||
|
||||
#fastfetch
|
||||
# ─< fastfetch >────────────────────────────────────────────────────────────────────────────
|
||||
if command -v fastfetch >/dev/null 2>&1
|
||||
alias ff='fastfetch'
|
||||
alias clearff='command clear & fastfetch'
|
||||
set -a toolbox " ff is using $(which 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
|
||||
# successfull, making alias
|
||||
case 0
|
||||
alias f='fastfetch --config os'
|
||||
# unsuccessfull, cloning repo
|
||||
# ─< unsuccessfull, cloning repo >──────────────────────────────────────────────────────────
|
||||
case '*'
|
||||
git clone https://git.k4li.de/pika/fastfetch $HOME/.local/share/fastfetch >/dev/null 2>&1
|
||||
# execute fish to reinitialize aliasses
|
||||
# ─< execute fish to reinitialize aliasses >────────────────────────────────────────────────
|
||||
exec fish
|
||||
end
|
||||
clear & f
|
||||
alias clear='clear & f && pwd'
|
||||
end
|
||||
|
||||
#set nmap-alias
|
||||
# ─< set nmap-alias >───────────────────────────────────────────────────────────────────────
|
||||
if command -v nmap >/dev/null 2>&1
|
||||
alias scanvuln='sudo nmap --script vuln -vvv'
|
||||
alias sv='scanvuln'
|
||||
|
@ -264,6 +256,14 @@ if command -v nmap >/dev/null 2>&1
|
|||
"
|
||||
end
|
||||
|
||||
# ───────────────────────────────────────< functions >─────────────────────────────────────
|
||||
if command -v starship >/dev/null 2>&1
|
||||
function starship_transient_prompt_func
|
||||
starship module character
|
||||
end
|
||||
starship init fish | source
|
||||
enable_transience
|
||||
end
|
||||
|
||||
#set colorscheme for bobthefish
|
||||
#if test -d $HOME/.config/fish/functions/
|
||||
|
@ -272,6 +272,7 @@ end
|
|||
# # 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
|
||||
|
||||
set -a TOOLBOX "$warnings
|
||||
|
||||
$toolbox
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue