From 0263aa31d9a0f4831e75a8d13903f3a16aa89aeb Mon Sep 17 00:00:00 2001 From: akanealw Date: Thu, 14 Mar 2024 12:00:01 -0500 Subject: [PATCH] added more aliases --- debian/debian-essentials.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/debian/debian-essentials.sh b/debian/debian-essentials.sh index f7f0af2..eef9f46 100755 --- a/debian/debian-essentials.sh +++ b/debian/debian-essentials.sh @@ -127,6 +127,8 @@ echo "set completion-ignore-case On" >> /etc/inputrc if [[ ! -f /etc/bash.bashrc.default ]] then wget -qO /etc/bash.bashrc.default http://192.168.1.50/files/debian/bash.bashrc.default fi +rm /etc/bash.bashrc > /dev/null 2>&1 +cp /etc/bash.bashrc.default /etc/bash.bashrc echo "" >> /etc/bash.bashrc echo "# custom settings and aliases" >> /etc/bash.bashrc echo "set -o noclobber" >> /etc/bash.bashrc @@ -144,6 +146,12 @@ echo "alias start='sudo systemctl start'" >> /etc/bash.bashrc echo "alias stop='sudo systemctl stop'" >> /etc/bash.bashrc echo "alias restart='sudo systemctl restart'" >> /etc/bash.bashrc echo "alias status='sudo systemctl status'" >> /etc/bash.bashrc +echo "alias sdr='sudo systemctl daemon-reload'" >> /etc/bash.bashrc +echo "alias senable='sudo systemctl enable'" >> /etc/bash.bashrc +echo "alias sdisable='sudo systemctl disable'" >> /etc/bash.bashrc +echo "alias snano='sudo nano'" >> /etc/bash.bashrc +echo "alias sreboot='sudo reboot'" >> /etc/bash.bashrc +echo "alias spoweroff='sudo poweroff'" >> /etc/bash.bashrc echo "alias tf='sudo tail -f'" >> /etc/bash.bashrc echo "alias aptupy='sudo apt update && sudo apt upgrade -y'" >> /etc/bash.bashrc echo "alias aptiy='sudo apt install -y'" >> /etc/bash.bashrc @@ -155,8 +163,6 @@ echo "alias aptl='sudo apt list --installed'" >> /etc/bash.bashrc echo "alias aptsh='sudo apt show'" >> /etc/bash.bashrc echo "alias aptac='sudo apt-get autoclean'" >> /etc/bash.bashrc echo "alias dpkgi='sudo dpkg -i'" >> /etc/bash.bashrc -echo "alias sreboot='sudo reboot'" >> /etc/bash.bashrc -echo "alias spoweroff='sudo poweroff'" >> /etc/bash.bashrc echo "alias tmuxls='tmux ls'" >> /etc/bash.bashrc echo "alias tmuxa='tmux attach -t'" >> /etc/bash.bashrc echo "alias hh='hstr'" >> /etc/bash.bashrc