From 4d7d5376255d4fbb2047a1acf93d0c99f8aefe09 Mon Sep 17 00:00:00 2001 From: d3vyce Date: Sat, 18 Feb 2023 11:23:17 -0500 Subject: [PATCH] Add bash_alais in .zshrc (for kali) --- pentools.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pentools.sh b/pentools.sh index 5d0e57e..743d404 100755 --- a/pentools.sh +++ b/pentools.sh @@ -171,6 +171,13 @@ aliascmd() { sed -i '/# Alias created by PenTools/,/# https:\/\/github.com\/d3vyce\/pentools/d' ~/.bash_aliases fi + if ! grep -q ".bash_aliases" ~/.zshrc >/dev/null 2>&1; then + echo '{ +if [ -f ~/.bash_aliases ]; then + . ~/.bash_aliases +fi}' >> ~/.zshrc + fi + echo " # Alias created by PenTools" >> ~/.bash_aliases