minor changes
This commit is contained in:
parent
160359c7b9
commit
79f207a31c
1 changed files with 8 additions and 21 deletions
29
config.fish
29
config.fish
|
@ -197,37 +197,22 @@ else
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
# ─< 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]
|
|
||||||
"
|
|
||||||
else
|
|
||||||
set -a warnings " zoxide
|
|
||||||
"
|
|
||||||
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 gsu='git submodule update --recursive'
|
||||||
alias ga='git add'
|
alias ga='git add'
|
||||||
alias gcm='git commit'
|
alias gcm='git commit'
|
||||||
alias gp='git pull --recurse-submodule=on-demand'
|
alias gp='git pull --recurse-submodule=on-demand'
|
||||||
set -a toolbox " g is using $(which git)
|
|
||||||
"
|
|
||||||
else
|
|
||||||
set -a warnings " git
|
|
||||||
"
|
|
||||||
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)
|
|
||||||
"
|
|
||||||
# ─< 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 >─────────────────────────────────────────────────────────────────────
|
||||||
|
@ -250,13 +235,15 @@ if command -v nmap >/dev/null 2>&1
|
||||||
alias sv='scanvuln'
|
alias sv='scanvuln'
|
||||||
alias portscan='sudo nmap -sT'
|
alias portscan='sudo nmap -sT'
|
||||||
alias ps='portscan'
|
alias ps='portscan'
|
||||||
set -a toolbox " nmap is using $(which nmap) [needs sudo]
|
|
||||||
sv | 'nmap --script vuln' | vulnerabilityscan
|
|
||||||
ps | 'nmap -sT' | portscanner
|
|
||||||
"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# ───────────────────────────────────────< functions >─────────────────────────────────────
|
# ────────────────────────────────────────< functions >─────────────────────────────────────
|
||||||
|
# ─< z stands for Zoxide >──────────────────────────────────────────────────────────────────
|
||||||
|
if command -v zoxide >/dev/null 2>&1
|
||||||
|
zoxide init fish | source
|
||||||
|
end
|
||||||
|
|
||||||
|
# ─< 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue