35 lines
1.5 KiB
Bash
Executable File
35 lines
1.5 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='du -h'" >> ~/.bash_profile
|
|
echo "alias df='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 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
|
|
|
|
# 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
|