-
Notifications
You must be signed in to change notification settings - Fork 0
/
.profile
89 lines (78 loc) · 2.84 KB
/
.profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
export EDITOR="vim"
export SYSTEMD_EDITOR="vim"
export BROWSER="open"
export PAGER="less"
export HOMEBREW_NO_AUTO_UPDATE=1
export TLDR_AUTO_UPDATE_DISABLED=0
exists() { command -v "$1" > /dev/null 2>&1; }
export PATH="$HOME/.cargo/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"
if exists /opt/homebrew/bin/brew; then
eval "$(/opt/homebrew/bin/brew shellenv)"
export CFLAGS="-I$HOMEBREW_PREFIX/include"
export LDFLAGS="-L$HOMEBREW_PREFIX/lib"
fi
if exists python3; then
export PATH="$(python3 -m site --user-base)/bin:$PATH"
fi
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
export PATH="/usr/local/share/dotnet/x64:$PATH"
export MGFXC_WINE_PATH=/Users/tga/.winemonogame
alias ~="cd ~"
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ......="cd ../../../../.."
alias e='$EDITOR'
alias se='sudo -E $EDITOR'
alias o="open"
alias f="open ."
alias lsize="du -chs * .* | sort -h"
alias disk="df -h ."
alias uptext="curl -F 'f:1=<-' ix.io"
alias ip="curl ifconfig.co"
alias playraw="ffplay -ar 8000 -ac 1 -f u8 -nodisp -"
alias weather="curl 'wttr.in?m'"
alias dnsflush="sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder"
alias dsclean="find . -name '.DS_Store' -print -delete"
alias opengate="sudo spctl --master-disable"
alias gs="git status"
alias ga="git add -A"
alias gc="git commit -m"
alias gp="git push"
alias gb="git branch"
alias gr="git remote"
alias gd="git diff"
alias gsw="git switch"
alias gcl="git clone"
alias gpl="git pull"
alias grv="gh repo view --web"
alias toupper="tr '[:lower:]' '[:upper:]'"
alias tolower="tr '[:upper:]' '[:lower:]'"
alias serve="darkhttpd"
alias python="python3"
alias ffmpeg="ffmpeg -hide_banner"
alias map="xargs -n1"
alias stfu="osascript -e 'set volume output muted true'"
alias pumpitup="osascript -e 'set volume output volume 100'"
alias reload='exec $SHELL -l'
alias path='echo -e ${PATH//:/\\n}'
alias ase="/Applications/Aseprite.app/Contents/MacOS/aseprite --batch"
alias chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome"
alias dl="aria2c -x 16 -s 16 -k 1M"
alias dv="yt-dlp -f 'bestvideo[ext=mp4][height<=720]+bestaudio[ext=m4a]/best[ext=mp4][height<=720]/best' -o '%(title)s.%(ext)s' --no-playlist"
alias dvl="yt-dlp -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' -o '%(title)s.%(ext)s' --yes-playlist"
alias dm="yt-dlp -x --audio-format mp3 -o '%(title)s.%(ext)s' --no-playlist"
alias dml="yt-dlp -x --audio-format mp3 -o '%(title)s.%(ext)s' --yes-playlist"
alias dmc="yt-dlp -x --audio-format mp3 --split-chapters -o '%(chapter)s.%(ext)s' --no-playlist"
alias ds="yt-dlp --all-subs --convert-subs srt --skip-download --no-playlist"
alias dsl="yt-dlp --all-subs --convert-subs srt --skip-download --yes-playlist"
localip() {
if exists ipconfig; then
ipconfig getifaddr en0
elif exists hostname; then
hostname -I
fi
}
PS1='\n\u@\H\n\w\n$ '