Files
linux-scripts/alpine/alpine-user-customizations.sh
2024-03-13 18:13:50 -05:00

46 lines
2.0 KiB
Bash
Executable File

#!/bin/bash
# add aliases
echo "# custom settings and aliases" > ~/.bash_profile
echo "" >> ~/.bash_profile
echo "alias lsa='ls -alhvF'" >> ~/.bash_profile
echo "alias cd..='cd ..'" >> ~/.bash_profile
echo "alias ..='cd ..'" >> ~/.bash_profile
echo "alias ...='cd ../..'" >> ~/.bash_profile
echo "alias grep='grep --color'" >> ~/.bash_profile
echo "alias mkdir='mkdir -pv'" >> ~/.bash_profile
echo "alias du='sudo du -h'" >> ~/.bash_profile
echo "alias df='sudo df -h'" >> ~/.bash_profile
echo "alias si='sudo -i'" >> ~/.bash_profile
echo "alias sreboot='sudo reboot'" >> ~/.bash_profile
echo "alias spoweroff='sudo poweroff'" >> ~/.bash_profile
echo "alias ports='netstat -tulpna'" >> ~/.bash_profile
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
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 deit='docker exec -it'" >> ~/.bash_profile
fi
# git config
git config --global credential.helper store
git config --global user.name "akanealw"
git config --global user.email "akanealw@gmail.com"
git config --global init.defaultBranch main