-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.aliases
34 lines (25 loc) · 1.11 KB
/
.aliases
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
#!/usr/env/bin sh
# with help from https://github.com/losingkeys/dotfiles
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias show.="defaults write com.apple.finder AppleShowAllFiles YES;
killall Finder /System/Library/CoreServices/Finder.app"
alias hide.="defaults write com.apple.finder AppleShowAllFiles NO;
killall Finder /System/Library/CoreServices/Finder.app"
alias hidedesktop="defaults write com.apple.finder CreateDesktop -bool false && killall Finder"
alias showdesktop="defaults write com.apple.finder CreateDesktop -bool true && killall Finder"
alias afk="open -a /System/Library/Frameworks/ScreenSaver.framework/Versions/A/Resources/ScreenSaverEngine.app"
projects="$HOME/projects"
if [ -d "$projects" ]; then
# change to a project directory with `p project-name`
p() { cd "$projects/$*"; }
compdef "_directories -W $projects" p; zstyle ':completion:*:p::' ignored-patterns '*~' '\\\#*\\\#'
fi
alias g="git"
alias gs="git status"
alias dc="docker-compose"
alias dcup="docker-compose up -d"
alias ls="ls -GA"
alias "?"="which"
alias http="python3 -m http.server"