-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.functions
More file actions
executable file
·32 lines (28 loc) · 889 Bytes
/
.functions
File metadata and controls
executable file
·32 lines (28 loc) · 889 Bytes
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
function update() {
# update antigen
pushd ~/.antigen;git pull origin master;popd;
antigen update
gem update
brew update
brew upgrade
# update version managers
pushd ~/.nodenv;git pull origin master;popd;
pushd ~/.nodenv/plugins/node-build;git pull origin master;popd;
pushd ~/.rbenv;git pull origin master;popd;
pushd ~/.rbenv/plugins/ruby-build;git pull origin master;popd;
pushd ~/.pyenv;git pull origin master;popd;
pushd ~/.plenv;git pull origin master;popd;
pushd ~/.plenv/plugins/perl-build;git pull origin master;popd;
clear
}
function clean() {
gem cleanup
brew cleanup -s
antigen cleanup
}
function compare() {
echo "original size (bytes): $(cat "$1" | wc -c)"
echo " gzip size (bytes): $(gzip -c "$1" | wc -c)"
echo " zopfli size (bytes): $(zopfli -c "$1" | wc -c)"
echo " brotli size (bytes): $(bro --input "$1" | wc -c)"
}