I usually did these steps when having a newly installed macOS. This post also serves as my personal notes on how to do several things such as:
1. Changing the terminal appearance with colorful prompt.
2. Finder shows hidden folders/files.
3. Changing default folder of Screenshot file
1. Changing the terminal appearance with colorful prompt.
echo 'export PS1="\[\e[;1;31m\]\u\[\e[m\]@\[\e[;1;34m\]\h\[\e[m\]:\[\e[;1;32m\]\W\[\e[0;m\]\\$ "' >> ~/.bash_profile
. ~/.bash_profile

2. Finder shows hidden folders/files.
Need to see lots of file. Reference from OSXDaily.
defaults write com.apple.finder AppleShowAllFiles TRUE; killall Finder
3. Changing default folder of Screenshot file
Cluttered desktop with screenshot file? From MacWorld. In Mojave, files can be grouped using Stacks. But I prefer folder rather than Stacks.
defaults write com.apple.screencapture location /Users/tintinnya/Desktop/Screenshots
killall SystemUIServer