Skip to content

Instantly share code, notes, and snippets.

@sarkrui
Last active April 15, 2021 03:46
Show Gist options
  • Save sarkrui/d1d8c825869b97e3151cefbe0877e2ab to your computer and use it in GitHub Desktop.
Save sarkrui/d1d8c825869b97e3151cefbe0877e2ab to your computer and use it in GitHub Desktop.
My exclusive zsh alias
#Aliases
#Alias for uPic application
alias upic='/Applications/uPic.app/Contents/MacOS/uPic'
#Check if gif_temp existence and upload if true, and copy generated url link to clipboard
alias ugif='
file=~/Desktop/gif_temp.gif;
if [ -e "$file" ]; then
echo "File exists";
/Applications/uPic.app/Contents/MacOS/uPic -s -u ~/Desktop/gif_temp.gif | tail -n -1 | pbcopy;
else
echo "File does not exist";
/Applications/uPic.app/Contents/MacOS/uPic -u
fi'
#Quickly convert video clips to gif on the desktop
alias mkgif='
cd ~/Desktop;
ffmpeg -pix_fmt rgb24 -r 10 -y gif_temp.gif -i'
#Download YouTube -best
alias dlytb='
cd ~/Desktop;
youtube-dl -f best'
#Copy to rclone drive
alias rcopy='rclone copy --exclude ".DS_Store"'
#Mount OpenCore EFI partition
alias OCEFI='echo '/' | sudo -kS diskutil mount disk0s3; open /Volumes/OC\ EFI/EFI'
#Sync screenshot folder
alias syncscreenshot='rclone sync --exclude ".DS_Store" /Volumes/Storage/Screenshot screenshot:album/macOS\ Screenshot -P'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment