-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevelopment.zsh
More file actions
126 lines (102 loc) · 1.97 KB
/
Copy pathdevelopment.zsh
File metadata and controls
126 lines (102 loc) · 1.97 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#!/usr/bin/env zsh
function VmOpp(){
vmrun
}
function git_init_gitignore(){
echo "#----autogenerated gitignore----
.idea
*.iml
public/assets
.DS_Store
.ember.pid
node_modules/
bower_components/
/vendor/bundle
disabledServer/
/public/
#CocoaPods
Pods/
GpeneratedDocumentation/
Carthage.checkout/
/.bundle
#ios injection Project
iOSInjectionProject/
# Ignore the default SQLite database.
/db/*.sqlite3
/target
/log/*.log
/tmp
" >>| .gitignore
}
function git_setup(){
if [[ -d .git ]]; then
echo "Go home, You're drunk";
return;
fi
git_init_gitignore;
git init;
git add .
git commit -m "Initial commit"
if [ ! -z $1 ]; then
git_push_to_github $1
fi
}
function git_push_to_github(){
git remote add origin $1
git push origin master
}
function no_index_here(){
touch .metadata_never_index;
}
function all_update(){
if [[ -e ./Gemfile ]] {
bundle install
}
if [[ -e ./package.json ]] {
npm install
}
if [[ -e ./bower.json ]] {
bower install
}
if [[ -e ./cartfile ]] {
carthage update --no-use-binaries
}
if [[ -e ./Podfile ]] {
pod update
}
if [[ -d ./frontend ]] {
cd frontend;
all_update
cd ..;
}
}
reinstall_alcatraz(){
curl -fsSL https://raw.githubusercontent.com/supermarin/Alcatraz/deploy/Scripts/install.sh | sh;
}
clear_derived_data(){
rm -rf /Users/Joe/Library/Developer/Xcode/DerivedData
}
checksum_diff(){
local chk1=`cksum $1 | awk -F" " '{print $1}'`
local chk2=`cksum $2 | awk -F" " '{print $1}'`
if [ $chk1 -eq $chk2 ]
then
echo "File is identical"
else
echo "File is not identical"
fi
}
current_host_platform(){
if [[ "$(uname)" == "Darwin" ]]; then
echo "osx"
elif [ "$(expr substr $(uname -s) 1 5)" = "Linux" ]; then
echo "linux"
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then
echo "win"
fi
}
synchronize_defaults(){
cd ~/Library/Preferences;
for f (IntelliJIdea2016.2 AppCode2016.2 AppCode2016.3); do
done
}