addet termshark and made 'has' remove itself after installing

This commit is contained in:
piecka 2024-09-20 11:58:17 +02:00
parent adc69bb235
commit 159cb9e60c

7
.zshrc
View file

@ -241,6 +241,11 @@ _alias(){
alias wgdown="wg-quick down"
fi
# ─< wireshark / termshark alias >────────────────────────────────────────────────────────
if command_exists termshark; then
alias ws="$_sudo termshark"
fi
# ─< fastfetch >────────────────────────────────────────────────────────────────────────────
if command_exists fastfetch; then
alias ff="fastfetch"
@ -495,7 +500,7 @@ get_packager() {
_tools_(){
if ! command_exists has; then
$(git clone https://github.com/kdabir/has.git /tmp/has && cd /tmp/has && sudo make install)
$(git clone https://github.com/kdabir/has.git /tmp/has && cd /tmp/has && sudo make install && rm -rf /tmp/has)
else
tools() {
local pkgs="bash fish git curl make cmake gcc g++ rg docker composer node npm php jre python3 go cargo"