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
|
||||||
end
|
end
|
||||||
|
|
||||||
#t stands for tmux
|
# ─< t stands for tmux >────────────────────────────────────────────────────────────────────
|
||||||
if command -v tmux >/dev/null 2>&1
|
if command -v tmux >/dev/null 2>&1
|
||||||
alias ts="tmux source $HOME/.tmux.conf"
|
alias ts="tmux source $HOME/.tmux.conf"
|
||||||
alias ta="tmux a"
|
alias ta="tmux a"
|
||||||
|
@ -179,7 +179,7 @@ else
|
||||||
"
|
"
|
||||||
end
|
end
|
||||||
|
|
||||||
#d stands for docker
|
# ─< d stands for docker >──────────────────────────────────────────────────────────────────
|
||||||
if command -v docker >/dev/null 2>&1
|
if command -v docker >/dev/null 2>&1
|
||||||
alias up='docker compose up'
|
alias up='docker compose up'
|
||||||
alias down='docker compose down'
|
alias down='docker compose down'
|
||||||
|
@ -196,15 +196,8 @@ else
|
||||||
"
|
"
|
||||||
end
|
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
|
if command -v zoxide >/dev/null 2>&1
|
||||||
zoxide init fish | source
|
zoxide init fish | source
|
||||||
set -a toolbox " z is using $(which zoxide) [cd]
|
set -a toolbox " z is using $(which zoxide) [cd]
|
||||||
|
@ -214,14 +207,14 @@ else
|
||||||
"
|
"
|
||||||
end
|
end
|
||||||
|
|
||||||
# g stands for git
|
# ─< g stands for git >─────────────────────────────────────────────────────────────────────
|
||||||
if command -v git >/dev/null 2>&1
|
if command -v git >/dev/null 2>&1
|
||||||
alias g='git'
|
alias g='git'
|
||||||
alias gc='git clone'
|
alias gc='git clone'
|
||||||
alias gs='git status'
|
alias gs='git status'
|
||||||
alias ga='git add'
|
alias ga='git add'
|
||||||
alias gcm='git commit'
|
alias gcm='git commit'
|
||||||
alias gp='git pull'
|
alias gp='git pull --recurse-submodule=on-demand'
|
||||||
set -a toolbox " g is using $(which git)
|
set -a toolbox " g is using $(which git)
|
||||||
"
|
"
|
||||||
else
|
else
|
||||||
|
@ -229,30 +222,29 @@ else
|
||||||
"
|
"
|
||||||
end
|
end
|
||||||
|
|
||||||
#fastfetch
|
# ─< fastfetch >────────────────────────────────────────────────────────────────────────────
|
||||||
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'
|
||||||
set -a toolbox " ff is using $(which 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
|
command fastfetch --config os >/dev/null 2>&1
|
||||||
# check the status
|
# ─< check the status >─────────────────────────────────────────────────────────────────────
|
||||||
switch $status
|
switch $status
|
||||||
# successfull, making alias
|
|
||||||
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/pika/fastfetch $HOME/.local/share/fastfetch >/dev/null 2>&1
|
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
|
exec fish
|
||||||
end
|
end
|
||||||
clear & f
|
clear & f
|
||||||
alias clear='clear & f && pwd'
|
alias clear='clear & f && pwd'
|
||||||
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'
|
||||||
|
@ -264,6 +256,14 @@ if command -v nmap >/dev/null 2>&1
|
||||||
"
|
"
|
||||||
end
|
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
|
#set colorscheme for bobthefish
|
||||||
#if test -d $HOME/.config/fish/functions/
|
#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)
|
# # 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
|
||||||
|
|
||||||
set -a TOOLBOX "$warnings
|
set -a TOOLBOX "$warnings
|
||||||
|
|
||||||
$toolbox
|
$toolbox
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue