added docker check and separated aliases
This commit is contained in:
@@ -19,20 +19,24 @@ echo "alias tf='tail -f'" >> ~/.bash_profile
|
|||||||
echo "alias apkupy='sudo apk update && sudo apk upgrade'" >> ~/.bash_profile
|
echo "alias apkupy='sudo apk update && sudo apk upgrade'" >> ~/.bash_profile
|
||||||
echo "alias apkiy='sudo apk add'" >> ~/.bash_profile
|
echo "alias apkiy='sudo apk add'" >> ~/.bash_profile
|
||||||
echo "alias apkrpy='sudo apk del'" >> ~/.bash_profile
|
echo "alias apkrpy='sudo apk del'" >> ~/.bash_profile
|
||||||
echo "alias dc='docker compose'" >> ~/.bash_profile
|
|
||||||
echo "alias dcup='docker compose up -d'" >> ~/.bash_profile
|
|
||||||
echo "alias dcdown='docker compose down'" >> ~/.bash_profile
|
|
||||||
echo "alias dcpull='docker compose pull'" >> ~/.bash_profile
|
|
||||||
echo "alias dps='docker ps'" >> ~/.bash_profile
|
|
||||||
echo "alias dstart='docker start'" >> ~/.bash_profile
|
|
||||||
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 wrestic='sudo wrestic'" >> ~/.bash_profile
|
||||||
echo "alias hh='hstr'" >> ~/.bash_profile
|
echo "alias hh='hstr'" >> ~/.bash_profile
|
||||||
echo "export HSTR_CONFIG=hide-help,hicolor,prompt-bottom,ignorespace,raw-history-view" ~/.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
|
||||||
|
echo "alias dcpull='docker compose pull'" >> ~/.bash_profile
|
||||||
|
echo "alias dps='docker ps'" >> ~/.bash_profile
|
||||||
|
echo "alias dstart='docker start'" >> ~/.bash_profile
|
||||||
|
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
|
||||||
|
fi
|
||||||
|
|
||||||
# git config
|
# git config
|
||||||
git config --global credential.helper store
|
git config --global credential.helper store
|
||||||
git config --global user.name "akanealw"
|
git config --global user.name "akanealw"
|
||||||
|
|||||||
Reference in New Issue
Block a user