Created
July 10, 2024 20:38
-
-
Save albertomorini/c3226e555e8352cc446e9c6363272462 to your computer and use it in GitHub Desktop.
Shell config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NEWLINE=$'\n' | |
DATE=$( date +"[%Y-%m-%d %H:%M]" ) | |
PROMPT="${NEWLINE}%F{yellow}${DATE} %(!.%F{red}.%F{white})%n%F{cyan}@%m %F{yellow}%d${NEWLINE}%F{reset}> " | |
export PATH="/Users/alby/Library/Android/sdk/platform-tools":$PATH | |
export ANDROID_HOME="/Users/alby/Library/Android/sdk":$PATH | |
export CLICOLOR=1 | |
export LSCOLORS=gx | |
########## | |
function convertToM4A(){ #first param is the song --> convertToM4A song.mp4 | |
v1="$1" | |
v2=${v1%.*} #get just the title of the song, removing the extension | |
# echo "$v2" | |
ffmpeg -i "$v1" "$v2":'.m4a' #ffmpeg adding m4a at the end of the title | |
} | |
########## | |
alias mem='du -sh */' | |
alias bckListApp='cd ; cd /Applications/; ls > /Volumes/Archive/Setups/MacMini/listApps.txt' | |
alias bckDEV='cd ;rsync --exclude={".*","*/*/node_modules"} -avh dev/ /Volumes/Archive/Dev/ --delete' | |
alias bckDocs='cd ;rsync -avh Documents/ /Volumes/Archive/Docs/' | |
alias bckDesk='cd ;rsync -avh Desktop/ /Volumes/Archive/Setups/MacMini/desktop/ --delete' | |
alias bckUNI='cd ;rsync -avh --exclude={".*","*/*/node_modules"} UNIPD/ /Volumes/ARCHIVE/Academic/UNIPD/ --delete' | |
alias backup='bckDEV; bckDesk; bckDocs; bckListApp; cd ~;echo "\n<BACKUP DONE>"' | |
alias snas='ssh 10.0.0.2 -p 2722' | |
alias myip='curl -i https://ifconfig.me/' | |
## iTunes management | |
alias music='sh ~/Documents/itunesBashController.sh $1' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment