-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_pensieve
58 lines (41 loc) · 1.83 KB
/
dot_pensieve
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
#!/usr/bin/env zsh
# harry potter aliases
# https://gist.github.com/graceavery/01ec404e555571a4a668c271c8f62e8b
alias accio=wget
alias avadaKedavra='rm -f'
alias imperio=sudo
alias priorIncantato='echo `history |tail -n2 |head -n1` | sed "s/[0-9]* //"'
alias stupefy='sleep 5'
alias wingardiumLeviosa=mv
alias sonorus='set -v'
alias quietus='set +v'
# locking spell! $colloportus -in unencryptedName -out encryptedName
alias colloportus='openssl enc -aes-256-cbc'
# unlocking spell! $alohamora -in encryptedName -out unencryptedName
alias alohamora='openssl enc -d -aes-256-cbc'
# $reducio zippedName thingToZip
alias reducio='zip -r'
# $engorgio zippedName
alias engorgio=unzip
# see the hidden thoughts!
alias legilimens='defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder'
# keep hidden things hidden!
alias occlumens='defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder'
# clear bash history
alias obliviate='history -c; history -w'
# lock screen
alias obscuro='/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend'
# makes surfaces clean!
alias tergeo='defaults write com.apple.finder CreateDesktop -bool false && killall Finder'
# (this one isn't canon)
alias untergeo='defaults write com.apple.finder CreateDesktop -bool true && killall Finder'
# summon your patronus! (replace with a picture of your own spirit animal)
alias expectoPatronum='open $DOTFILES/images/patronus.gif'
function bodyBindCurse() {
alias cd='echo "you are immobilized! you cannot get to"'
}
function blindingCurse() {
alias ls='echo "you have been blinded!"'
}
alias lumos="osascript -e 'tell app \"System Events\" to tell appearance preferences to set dark mode to false'"
alias nox="osascript -e 'tell app \"System Events\" to tell appearance preferences to set dark mode to true'"