Created
April 11, 2022 12:21
-
-
Save tasinttttttt/2c2cc6ce599bc4f3af40629bd31ab794 to your computer and use it in GitHub Desktop.
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
export ZSH="$HOME/.oh-my-zsh" | |
# Plugins | |
plugins=( | |
brew | |
colored-man-pages | |
copyfile | |
extract | |
git | |
osx | |
z | |
wp-cli | |
zsh-autosuggestions | |
) | |
function workdays { | |
if [[ -z "$1" || -z "$2" ]]; then | |
echo "Usage: workdays date useremail\n example: workdays 1986-07-18 tonton@charbovary.tld" | |
return 1 | |
fi | |
git log --pretty=format:"Date: %cd" --after "$1" --author "$2" | awk '/Date/ {print $4" "$3" "$6}'| uniq -c | awk 'sub("[[:digit:]]+", "", $0)' | |
} | |
# Aliases | |
alias ip="ifconfig | grep 'inet ' | cut -f2 -d' '" | |
alias update="source $HOME/.zshrc" | |
alias tsm="transmission-remote" | |
alias ytaudio="yt-dlp -f bestaudio --embed-thumbnail --add-metadata --extract-audio --audio-format mp3 --audio-quality 320k" | |
alias yt="yt-dlp --write-description --write-thumbnail --all-subs --convert-subs srt" | |
alias yta="yt-dlp -f bestaudio --embed-thumbnail --add-metadata --extract-audio --audio-format mp3 --audio-quality 320k" | |
alias ta="tsm -a" | |
alias tl="tsm -l" | |
alias td="transmission-daemon" | |
alias tw="while true; do clear; tl; sleep 3; done" | |
alias getrandommovie="curl https://www.imdb.com/list/ls020043828/export | cut -d ',' -f 6,7 | sed '1 d' | shuf | head -3" | |
alias savepage="wget -E -H -k -K -p" | |
ZSH_THEME="spaceship" | |
source $ZSH/oh-my-zsh.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment