-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
functions.zsh
43 lines (34 loc) · 725 Bytes
/
functions.zsh
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
function f() {
find . -name "$1" 2>&1 | grep -v 'Permission denied' | grep -v 'Operation not permitted'
}
function tinker() {
if [ -z "$1" ]
then
php artisan tinker
else
php artisan tinker --execute="dd($1);"
fi
}
function commit() {
commitMessage="$*"
git add .
if [ "$commitMessage" = "" ]; then
aicommits
return
fi
eval "git commit -a -m '${commitMessage}'"
}
function hidePrompt() {
export HIDE_PROMPT_FOLDER=1
reloadshell
}
function showPrompt() {
export HIDE_PROMPT_FOLDER=0
reloadshell
}
function churchip() {
networksetup -setmanual Wi-Fi 172.16.0.203 255.240.0.0 172.16.0.200
}
function dhcp() {
networksetup -setdhcp Wi-Fi
}