added docker check and separated aliases
This commit is contained in:
@@ -19,6 +19,12 @@ echo "alias tf='tail -f'" >> ~/.bash_profile
|
||||
echo "alias apkupy='sudo apk update && sudo apk upgrade'" >> ~/.bash_profile
|
||||
echo "alias apkiy='sudo apk add'" >> ~/.bash_profile
|
||||
echo "alias apkrpy='sudo apk del'" >> ~/.bash_profile
|
||||
echo "alias wrestic='sudo wrestic'" >> ~/.bash_profile
|
||||
echo "alias hh='hstr'" >> ~/.bash_profile
|
||||
echo "export HSTR_CONFIG=hide-help,hicolor,prompt-bottom,ignorespace,raw-history-view" ~/.bash_profile
|
||||
|
||||
if [[ -f /etc/init.d/docker ]]
|
||||
then
|
||||
echo "alias dc='docker compose'" >> ~/.bash_profile
|
||||
echo "alias dcup='docker compose up -d'" >> ~/.bash_profile
|
||||
echo "alias dcdown='docker compose down'" >> ~/.bash_profile
|
||||
@@ -29,9 +35,7 @@ echo "alias dstop='docker stop'" >> ~/.bash_profile
|
||||
echo "alias drestart='docker restart'" >> ~/.bash_profile
|
||||
echo "alias dlf='docker logs -f'" >> ~/.bash_profile
|
||||
echo "alias dipaf='docker image prune -a -f'" >> ~/.bash_profile
|
||||
echo "alias wrestic='sudo wrestic'" >> ~/.bash_profile
|
||||
echo "alias hh='hstr'" >> ~/.bash_profile
|
||||
echo "export HSTR_CONFIG=hide-help,hicolor,prompt-bottom,ignorespace,raw-history-view" ~/.bash_profile
|
||||
fi
|
||||
|
||||
# git config
|
||||
git config --global credential.helper store
|
||||
|
||||
Reference in New Issue
Block a user