updated script for lazydocker and separating aliases
This commit is contained in:
18
debian/debian-essentials.sh
vendored
18
debian/debian-essentials.sh
vendored
@@ -120,9 +120,7 @@ echo "" >> /etc/inputrc
|
|||||||
echo "set completion-ignore-case On" >> /etc/inputrc
|
echo "set completion-ignore-case On" >> /etc/inputrc
|
||||||
|
|
||||||
# set bash preferences and aliases
|
# set bash preferences and aliases
|
||||||
wget -qO /etc/bash.bashrc.default http://192.168.1.50/files/debian/bash.bashrc.default
|
wget -qO /etc/bash.bashrc http://192.168.1.50/files/debian/bash.bashrc.default
|
||||||
rm /etc/bash.bashrc > /dev/null 2>&1
|
|
||||||
cp /etc/bash.bashrc.default /etc/bash.bashrc
|
|
||||||
echo "" >> /etc/bash.bashrc
|
echo "" >> /etc/bash.bashrc
|
||||||
echo "# custom settings and aliases" >> /etc/bash.bashrc
|
echo "# custom settings and aliases" >> /etc/bash.bashrc
|
||||||
echo "set -o noclobber" >> /etc/bash.bashrc
|
echo "set -o noclobber" >> /etc/bash.bashrc
|
||||||
@@ -155,6 +153,11 @@ echo "alias sreboot='sudo reboot'" >> /etc/bash.bashrc
|
|||||||
echo "alias spoweroff='sudo poweroff'" >> /etc/bash.bashrc
|
echo "alias spoweroff='sudo poweroff'" >> /etc/bash.bashrc
|
||||||
echo "alias tmuxls='tmux ls'" >> /etc/bash.bashrc
|
echo "alias tmuxls='tmux ls'" >> /etc/bash.bashrc
|
||||||
echo "alias tmuxa='tmux attach -t'" >> /etc/bash.bashrc
|
echo "alias tmuxa='tmux attach -t'" >> /etc/bash.bashrc
|
||||||
|
echo "alias wrestic='sudo wrestic'" >> /etc/bash.bashrc
|
||||||
|
|
||||||
|
# docker aliases
|
||||||
|
if [[ -f /etc/apt/keyrings/docker.gpg ]]
|
||||||
|
then
|
||||||
echo "alias dc='docker compose'" >> /etc/bash.bashrc
|
echo "alias dc='docker compose'" >> /etc/bash.bashrc
|
||||||
echo "alias dcup='docker compose up -d'" >> /etc/bash.bashrc
|
echo "alias dcup='docker compose up -d'" >> /etc/bash.bashrc
|
||||||
echo "alias dcdown='docker compose down'" >> /etc/bash.bashrc
|
echo "alias dcdown='docker compose down'" >> /etc/bash.bashrc
|
||||||
@@ -165,7 +168,14 @@ echo "alias dstop='docker stop'" >> /etc/bash.bashrc
|
|||||||
echo "alias drestart='docker restart'" >> /etc/bash.bashrc
|
echo "alias drestart='docker restart'" >> /etc/bash.bashrc
|
||||||
echo "alias dlf='docker logs -f'" >> /etc/bash.bashrc
|
echo "alias dlf='docker logs -f'" >> /etc/bash.bashrc
|
||||||
echo "alias dipaf='docker image prune -a -f'" >> /etc/bash.bashrc
|
echo "alias dipaf='docker image prune -a -f'" >> /etc/bash.bashrc
|
||||||
echo "alias wrestic='sudo wrestic'" >> /etc/bash.bashrc
|
fi
|
||||||
|
|
||||||
|
# lazy docker install
|
||||||
|
if [[ -f /etc/apt/keyrings/docker.gpg ]]
|
||||||
|
then
|
||||||
|
curl -s https://raw.githubusercontent.com/jesseduffield/lazydocker/master/scripts/install_update_linux.sh | bash
|
||||||
|
mv /root/.local/bin/lazydocker /usr/local/bin
|
||||||
|
fi
|
||||||
|
|
||||||
# create tmux config
|
# create tmux config
|
||||||
rm /etc/tmux.conf* > /dev/null 2>&1
|
rm /etc/tmux.conf* > /dev/null 2>&1
|
||||||
|
|||||||
Reference in New Issue
Block a user