@sebastienrousseau/dotfiles 0.2.440 → 0.2.452

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/COPYRIGHT +5 -0
  2. package/LICENSE +1260 -2
  3. package/Makefile +79 -0
  4. package/README.md +328 -71
  5. package/bin/dotfiles.sh +150 -0
  6. package/index.js +24 -0
  7. package/package.json +99 -25
  8. package/pnpm-lock.yaml +178 -0
  9. package/pnpm-workspace.yaml +2 -0
  10. package/shell/README.md +3 -0
  11. package/shell/aliases/README.md +327 -0
  12. package/{Icon/r → shell/aliases/default/README.md} +0 -0
  13. package/shell/aliases/default/default.aliases.sh +199 -0
  14. package/shell/aliases/gcloud/README.md +117 -0
  15. package/shell/aliases/gcloud/gcloud.aliases.sh +121 -0
  16. package/shell/aliases/git/README.md +279 -0
  17. package/shell/aliases/git/git.aliases.wip +586 -0
  18. package/shell/aliases/heroku/README.md +457 -0
  19. package/shell/aliases/heroku/heroku.aliases.sh +1031 -0
  20. package/shell/aliases/jekyll/README.md +32 -0
  21. package/shell/aliases/jekyll/jekyll.aliases.sh +50 -0
  22. package/shell/aliases/pnpm/README.md +3 -0
  23. package/shell/aliases/pnpm/pnpm.aliases.sh +42 -0
  24. package/shell/aliases/subversion/README.md +54 -0
  25. package/shell/aliases/subversion/subversion.aliases.sh +123 -0
  26. package/shell/aliases/tmux/README.md +0 -0
  27. package/shell/aliases/tmux/tmux.aliases.sh +14 -0
  28. package/shell/aliases.sh +12 -0
  29. package/shell/configurations/README.md +3 -0
  30. package/shell/configurations/bash/bashrc +36 -0
  31. package/shell/configurations/curl/cacert.pem +3460 -0
  32. package/shell/configurations/curl/curlrc +55 -0
  33. package/shell/configurations/default/color.sh +17 -0
  34. package/shell/configurations/default/editor.sh +16 -0
  35. package/shell/configurations/default/prompt.sh +37 -0
  36. package/shell/configurations/inputrc/inputrc +22 -0
  37. package/shell/configurations/jshint/jshintrc +37 -0
  38. package/shell/configurations/profile/profile +36 -0
  39. package/shell/configurations/tmux/tmux +95 -0
  40. package/shell/configurations/vim/vimrc +73 -0
  41. package/{.wgetrc → shell/configurations/wget/wgetrc} +4 -0
  42. package/shell/configurations/zsh/zshrc +40 -0
  43. package/shell/configurations.sh +10 -0
  44. package/shell/exit.sh +9 -0
  45. package/shell/functions/README.md +3 -0
  46. package/shell/functions/cdls.sh +19 -0
  47. package/shell/functions/changediskpwd.sh +19 -0
  48. package/shell/functions/code.sh +18 -0
  49. package/shell/functions/countdown.sh +33 -0
  50. package/shell/functions/curlheader.sh +20 -0
  51. package/shell/functions/curltime.sh +31 -0
  52. package/shell/functions/encode64.sh +25 -0
  53. package/shell/functions/environment.sh +37 -0
  54. package/shell/functions/extract.sh +32 -0
  55. package/shell/functions/filehead.sh +4 -0
  56. package/{zsh/zsh/functions/genpwd.zsh → shell/functions/genpwd.sh} +8 -3
  57. package/shell/functions/goto.sh +14 -0
  58. package/shell/functions/headers.sh +4 -0
  59. package/{zsh/zsh/functions/hidehiddenfiles.zsh → shell/functions/hidehiddenfiles.sh} +7 -2
  60. package/shell/functions/history-all.sh +7 -0
  61. package/shell/functions/hostinfo.sh +25 -0
  62. package/{zsh/zsh/functions/hstats.zsh → shell/functions/hstats.sh} +6 -1
  63. package/shell/functions/httpdebug.sh +7 -0
  64. package/shell/functions/keygen.sh +23 -0
  65. package/shell/functions/last.sh +9 -0
  66. package/shell/functions/logout.sh +10 -0
  67. package/shell/functions/lowercase.sh +28 -0
  68. package/shell/functions/macos.sh +47 -0
  69. package/shell/functions/matrix.sh +9 -0
  70. package/shell/functions/mcd.sh +18 -0
  71. package/shell/functions/mount_read_only.sh +9 -0
  72. package/shell/functions/myproc.sh +7 -0
  73. package/shell/functions/prependpath.sh +19 -0
  74. package/shell/functions/print.sh +13 -0
  75. package/shell/functions/ql.sh +7 -0
  76. package/shell/functions/rd.sh +15 -0
  77. package/shell/functions/remove_disk.sh +9 -0
  78. package/shell/functions/ren.sh +11 -0
  79. package/shell/functions/rm.sh +13 -0
  80. package/shell/functions/rps.sh +103 -0
  81. package/{zsh/zsh/functions/showhiddenfiles.zsh → shell/functions/showhiddenfiles.sh} +7 -2
  82. package/{zsh/zsh/functions/size.zsh → shell/functions/size.sh} +6 -1
  83. package/shell/functions/stopwatch.sh +13 -0
  84. package/shell/functions/trash.sh +13 -0
  85. package/shell/functions/tree.sh +13 -0
  86. package/shell/functions/uppercase.sh +28 -0
  87. package/shell/functions/uuidgen.sh +27 -0
  88. package/shell/functions/view-source.sh +8 -0
  89. package/shell/functions/vscode.sh +31 -0
  90. package/shell/functions/whoisport.sh +12 -0
  91. package/shell/functions/zipf.sh +14 -0
  92. package/shell/functions.sh +10 -0
  93. package/shell/history.sh +110 -0
  94. package/shell/paths/ant/ant.paths.sh +15 -0
  95. package/shell/paths/default/default.paths.sh +17 -0
  96. package/shell/paths/homebrew/homebrew.paths.sh +22 -0
  97. package/shell/paths/java/java.paths.sh +16 -0
  98. package/shell/paths/maven/maven.paths.sh +16 -0
  99. package/shell/paths/node/node.paths.sh +13 -0
  100. package/shell/paths/nvm/nvm.paths.sh +21 -0
  101. package/shell/paths/pnpm/pnpm.paths.sh +13 -0
  102. package/shell/paths/ruby/ruby.paths.sh +23 -0
  103. package/shell/paths/tmux/tmux.paths.sh +15 -0
  104. package/shell/paths.sh +12 -0
  105. package/.curlrc +0 -17
  106. package/.eslintrc +0 -44
  107. package/.jshintrc +0 -22
  108. package/.travis.yml +0 -21
  109. package/CODE_OF_CONDUCT.md +0 -46
  110. package/CONTRIBUTING.md +0 -60
  111. package/Dotfiles.png +0 -0
  112. package/ISSUE_TEMPLATE.md +0 -43
  113. package/bash/.bash_aliases +0 -409
  114. package/bash/.bash_exit +0 -25
  115. package/bash/.bash_functions +0 -312
  116. package/bash/.bash_load_completion +0 -62
  117. package/bash/.bash_profile +0 -295
  118. package/bash/.bashrc +0 -47
  119. package/homebrew/brew-cask.sh +0 -165
  120. package/homebrew/brew-package.sh +0 -256
  121. package/homebrew/brew-tap.sh +0 -35
  122. package/homebrew/install.sh +0 -29
  123. package/zsh/.zshrc +0 -64
  124. package/zsh/aliases.zsh +0 -427
  125. package/zsh/configurations.zsh +0 -19
  126. package/zsh/exit.zsh +0 -21
  127. package/zsh/functions.zsh +0 -42
  128. package/zsh/history.zsh +0 -53
  129. package/zsh/profile.zsh +0 -17
  130. package/zsh/zsh/configurations/color.zsh +0 -21
  131. package/zsh/zsh/configurations/editor.zsh +0 -21
  132. package/zsh/zsh/configurations/history.zsh +0 -53
  133. package/zsh/zsh/configurations/path.zsh +0 -123
  134. package/zsh/zsh/configurations/prompt.zsh +0 -24
  135. package/zsh/zsh/functions/cd.zsh +0 -51
  136. package/zsh/zsh/functions/cdls.zsh +0 -11
  137. package/zsh/zsh/functions/changediskpwd.zsh +0 -4
  138. package/zsh/zsh/functions/code.zsh +0 -2
  139. package/zsh/zsh/functions/countdown.zsh +0 -33
  140. package/zsh/zsh/functions/curlheader.zsh +0 -12
  141. package/zsh/zsh/functions/curltime.zsh +0 -12
  142. package/zsh/zsh/functions/extract.zsh +0 -27
  143. package/zsh/zsh/functions/goto.zsh +0 -8
  144. package/zsh/zsh/functions/history-all.zsh +0 -2
  145. package/zsh/zsh/functions/hostinfo.zsh +0 -19
  146. package/zsh/zsh/functions/httpdebug.zsh +0 -2
  147. package/zsh/zsh/functions/keygen.zsh +0 -18
  148. package/zsh/zsh/functions/logout.zsh +0 -5
  149. package/zsh/zsh/functions/lowercase.zsh +0 -23
  150. package/zsh/zsh/functions/matrix.zsh +0 -4
  151. package/zsh/zsh/functions/mcd.zsh +0 -11
  152. package/zsh/zsh/functions/mount_read_only.zsh +0 -4
  153. package/zsh/zsh/functions/myproc.zsh +0 -2
  154. package/zsh/zsh/functions/print.zsh +0 -8
  155. package/zsh/zsh/functions/ql.zsh +0 -2
  156. package/zsh/zsh/functions/rd.zsh +0 -8
  157. package/zsh/zsh/functions/remove_disk.zsh +0 -4
  158. package/zsh/zsh/functions/rm.zsh +0 -10
  159. package/zsh/zsh/functions/stopwatch.zsh +0 -8
  160. package/zsh/zsh/functions/trash.zsh +0 -8
  161. package/zsh/zsh/functions/tree.zsh +0 -8
  162. package/zsh/zsh/functions/uppercase.zsh +0 -23
  163. package/zsh/zsh/functions/zipf.zsh +0 -9
package/zsh/aliases.zsh DELETED
@@ -1,427 +0,0 @@
1
- # ---------------------------------------------------------------------------
2
- #
3
- # ______ _ ______ _ _
4
- # | _ \ | | | ___(_) |
5
- # | | | |___ | |_| |_ _| | ___ ___
6
- # | | | / _ \| __| _| | | |/ _ \/ __|
7
- # | |/ / (_) | |_| | | | | __/\__ \
8
- # |___/ \___/ \__\_| |_|_|\___||___/
9
- #
10
- # Description: Mac OS X Dotfiles - Simply designed to fit your shell life.
11
- #
12
- # Sections:
13
- #
14
- # 1. Allow aliases to be with sudo
15
- # 2. Generic aliases
16
- # 3. Quicker navigation
17
- # 4. Jekyll
18
- # 5. Heroku's commands
19
- # 6. Ionic commands
20
- # 7. Emulate iOS using different Apple devices
21
- # 8. Git SCM Cheats
22
- # 9. App engine commands
23
- # 10. Add an 'alert' alias for long running commands.
24
- # 11. Get OS X Software Updates, update Homebrew itself, and upgrade installed Homebrew packages
25
- # 12. Shorter commands for `Homebrew`.
26
- # 13. Speed-up Terminal load time by clearing system logs
27
- # 14. Empty the Trash on all mounted volumes and the main HDD
28
- # 15. Open the device simulators
29
- # 16. Recursively delete .DS_Store files
30
- # 17. Hidden Files
31
- # 18. Clean up LaunchServices to remove duplicates in the 'Open With' menu
32
- # 19. Run a screen saver on the Desktop
33
- # 20. Things for Subversion
34
- # 21. Application launchers
35
- # 22. Recommended 'top' invocation to minimize resources
36
- # 23. Networking
37
- # 24. Limit Ping to 5 ECHO_REQUEST packets
38
- # 25. Wget with resume
39
- # 26. Searching
40
- # 27. Find memory hogs
41
- # 28. Find CPU hogs
42
- #
43
- # ---------------------------------------------------------------------------
44
-
45
-
46
- # Detect which `ls` flavour is in use
47
- if ls --color > /dev/null 2>&1; then # GNU `ls`
48
- colorflag='--color'
49
- export colorflag
50
- export LS_COLORS='no=00:fi=00:di=01;31:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:'
51
- else # macOS `ls`
52
- colorflag='-G'
53
- export colorflag
54
- export CLICOLOR=1
55
- export LSCOLORS='GxFxCxDxBxegedabagaced'
56
- fi
57
-
58
-
59
- # ---------------------------------------------------------------------------
60
- # 1. Allow aliases to be with sudo
61
- # Please refer to http://www.shellperson.net/using-sudo-with-an-alias/
62
- # ---------------------------------------------------------------------------
63
-
64
- # Common
65
- alias sudo='sudo '
66
- alias reload='reset'
67
-
68
- # Purging Xcode DerivedData
69
- alias purge='rm -rf ~/library/Developer/Xcode/DerivedData/*'
70
-
71
-
72
- # ---------------------------------------------------------------------------
73
- # 2. Generic aliases
74
- # ---------------------------------------------------------------------------
75
- alias c="clear && printf '\e[3J'"
76
- alias dt='tee ~/Desktop/terminalOut.txt' # dt: Pipe content to file on MacOS Desktop
77
- alias du='du -h'
78
- alias flush='sudo dscacheutil -flushcache'
79
- alias grep='grep --color'
80
- alias h='history'
81
- alias kp='ps auxwww'
82
- alias l='ls -lF ${colorflag}' # Show long listing information about the file/directory
83
- alias l1='ls -1' # Display one file per line
84
- alias la='ls -a' # Display Hidden Files
85
- alias la='ls -lAF ${colorflag}'
86
- alias last='ls -t' # Sorts all files by modification time, showing the last edited file first.
87
- alias ld='ls -ld' # Display directory information
88
- alias lf='ls -lf' # Visual Classification of Files With Special Characters
89
- alias lh='ls -lh' # Display file size in human readable format
90
- alias li='ls -i' # Display File Inode Number
91
- alias ll='/usr/local/opt/coreutils/libexec/gnubin/ls -AhlFo --color --group-directories-first'
92
- alias ln='ls -n' # Display File UID and GID
93
- alias locale='locale -a | grep UTF-8'
94
- alias lq='ls -q' # Hide Control Characters
95
- alias lr='ls -R | grep ':$' | sed -e '\''s/:$//'\'' -e '\''s/[^-][^\/]*\//--/g'\'' -e '\''s/^/ /'\'' -e '\''s/-/|/'\'' | less'
96
- alias lr='ls -R' # Display Files Recursively
97
- alias ls='command ls ${colorflag}'
98
- alias lsd='ls -lF ${colorflag} | grep --color=never "^d"'
99
- alias lt='ls -lt' # Order Files Based on Last Modified Time
100
- alias ltr='ls -ltr' # Order Files Based on Last Modified Time (In Reverse Order)
101
- alias makedir='mkdir -pv'
102
- alias numFiles='echo $(ls -1 | wc -l)' # numFiles: Function to count of non-hidden files in current dir
103
- alias p='pwd'
104
- alias path='echo -e ${PATH//:/\\n}'
105
- alias q='exit'
106
- alias r='reload'
107
- alias removedir=rmdir
108
- alias repair_permissions='diskutil repairPermissions /'
109
- alias repair_volume='diskutil repairvolume /'
110
- alias rmdir='rm –rf'
111
- alias shutdown="shutdown -h now"
112
- alias top='htop'
113
- alias verify_permissions='diskutil verifyPermissions /'
114
- alias verify_volume='diskutil verifyvolume /'
115
-
116
-
117
-
118
- # ---------------------------------------------------------------------------
119
- # 3. Quicker navigation
120
- # ---------------------------------------------------------------------------
121
- alias 1='cd -'
122
- alias 2='cd -2'
123
- alias 3='cd -3'
124
- alias 4='cd -4'
125
- alias 5='cd -5'
126
- alias 6='cd -6'
127
- alias 7='cd -7'
128
- alias 8='cd -8'
129
- alias 9='cd -9'
130
- alias cd.='cd $(readlink -f .)' # go to real dir (i.e. if current dir is linked)
131
- alias less='less -R' # Make less always work with coloured input
132
- alias opendir='open -a Finder ./'
133
- alias path='echo "$PATH" | tr ":" "\n" | nl'
134
- alias so='shopt'
135
- alias zap='rm -i' # Remove file with warning
136
- alias ~='cd ~'
137
-
138
-
139
- # ---------------------------------------------------------------------------
140
- # 4. Jekyll
141
- # ---------------------------------------------------------------------------
142
-
143
- alias site-dev='JEKYLL_ENV=dev bundle exec jekyll serve --watch --trace'
144
- alias site-production='JEKYLL_ENV=production bundle exec jekyll serve --watch --trace'
145
-
146
-
147
- # ---------------------------------------------------------------------------
148
- # 5. Heroku's commands
149
- # ---------------------------------------------------------------------------
150
-
151
- alias hcp='heroku console --remote production'
152
- alias hcs='heroku console --remote staging'
153
- alias hlp='heroku logs -t --remote production'
154
- alias hls='heroku logs -t --remote staging'
155
-
156
-
157
- # ---------------------------------------------------------------------------
158
- # 6. Ionic commands
159
- # ---------------------------------------------------------------------------
160
-
161
- alias ionandroid='ionic emulate android'
162
- alias ionandroidrun='ionic run android'
163
- alias ionb='ionic build'
164
- alias ionbandroid='ionic build android'
165
- alias ionbios='ionic build ios'
166
- alias iondroidreset='ionpr-android | ionpa-android | ionbandroid'
167
- alias ionicons='open http://ionicons.com/'
168
- alias ionios='ionic emulate ios'
169
- alias ioniosrun='ionic run ios'
170
- alias ionosreset='ionpr-ios | ionpa-ios | ionbios'
171
- alias ionpa-android='ionic platform add android'
172
- alias ionpa-ios='ionic platform add ios'
173
- alias ionpr-android='ionic platform remove android'
174
- alias ionpr-ios='ionic platform remove ios'
175
- alias ions='ionic serve'
176
- alias ionup='npm update -g cordova ionic'
177
-
178
-
179
- # ---------------------------------------------------------------------------
180
- # 7. Emulate iOS using different Apple devices
181
- # ---------------------------------------------------------------------------
182
-
183
- alias ione-ios-4s='ionic emulate ios --target='iPhone-4s''
184
- alias ione-ios-5='ionic emulate ios --target='iPhone-5''
185
- alias ione-ios-5s='ionic emulate ios --target='iPhone-5s''
186
- alias ione-ios-6-Plus='ionic emulate ios --target='iPhone-6-Plus''
187
- alias ione-ios-6='ionic emulate ios --target='iPhone-6''
188
- alias ione-ios-iPad-2='ionic emulate ios --target='iPad-2''
189
- alias ione-ios-iPad-Air='ionic emulate ios --target='iPad-Air''
190
- alias ione-ios-iPad-Retina='ionic emulate ios --target='iPad-Retina''
191
-
192
-
193
- # ---------------------------------------------------------------------------
194
- # 8. Git SCM Cheats
195
- # ---------------------------------------------------------------------------
196
-
197
- alias g=git
198
- alias ga='git add'
199
- alias gaa='git add --all'
200
- alias gad='git add .'
201
- alias gau='git add --update'
202
- alias gb='git branch'
203
- alias gbd='git branch -d'
204
- alias gbl='git blame --date short'
205
- alias gbr='git branch -r'
206
- alias gbs='git branch -a'
207
- alias gc='git commit'
208
- alias gcam='git commit --amend -m'
209
- alias gce='git commit -a'
210
- alias gcl='git config --list'
211
- alias gcm='git commit -m '
212
- alias gco='git checkout' #undo to last commit
213
- alias gd='git diff'
214
- alias gdh='git diff HEAD'
215
- alias gdh1='git diff HEAD^'
216
- alias gdh2='git diff HEAD^^'
217
- alias gdh5='git diff HEAD~5'
218
- alias gds='git diff --staged'
219
- alias gf='git fetch'
220
- alias gi='git init'
221
- alias gitremoveallmergedbranches='git branch --merged | grep -v '\*' | xargs -n 1 git branch -d'
222
- alias gl1d='git log --since=1.day.ago'
223
- alias gl1w='git log --since=1.week.ago'
224
- alias gl7d='git log --since=7.days.ago'
225
- alias glg='git log --oneline --graph --all --decorate'
226
- alias glgc='clear && git log --oneline --graph --all --decorate'
227
- alias gll='git log --graph --full-history --all --color'
228
- alias gm='git merge'
229
- alias gnuke='git branch --merged | xargs git branch -d'
230
- alias gob='git checkout -b'
231
- alias gout='git checkout'
232
- alias gpo='git push -u origin'
233
- alias gpo='git push origin'
234
- alias gpom='git push -u origin master'
235
- alias gpt='git push --tags'
236
- alias gpul='git pull'
237
- alias gpum='git pull origin master'
238
- alias gpus='git push'
239
- alias gra='git remote add'
240
- alias grao='git remote add origin'
241
- alias grh='git reset HEAD' #unstage some files
242
- alias grhh='git reset --hard HEAD^' #role back fully to last commit! //be careful
243
- alias grm='git rm'
244
- alias grmc='git rm --cached'
245
- alias grs='git remote -v'
246
- alias grsh='git reset --soft HEAD^' #role back to stage!
247
- alias grso='git remote show origin'
248
- alias grv='git revert'
249
- alias gs='git status -sb'
250
- alias gsu='git submodule update --recursive'
251
- alias gt='git tag'
252
- alias gta='git tag -a'
253
- alias gts='git tag'
254
-
255
-
256
- # ---------------------------------------------------------------------------
257
- # 9. App engine commands
258
- # ---------------------------------------------------------------------------
259
-
260
- alias gaeauth='appcfg.py --oauth2'
261
- alias gaeup='appcfg.py --oauth2 update .'
262
- alias gaeupauth='appcfg.py --oauth2 -V dev update . && appcfg.py --oauth2 update . -V'
263
-
264
-
265
-
266
- # ---------------------------------------------------------------------------
267
- # 10. Add an 'alert' alias for long running commands. Use like so: sleep 10; alert
268
- # ---------------------------------------------------------------------------
269
-
270
- #alias alert='notify-send --urgency=low -i ''$([ $? = 0 ] && echo terminal || echo error)'' ''$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')'''
271
-
272
-
273
- # ---------------------------------------------------------------------------
274
- # 11. Get OS X Software Updates, update Homebrew itself, and upgrade installed Homebrew packages
275
- # ---------------------------------------------------------------------------
276
-
277
- # Get macOS Software Updates, and update installed Ruby gems, Homebrew, npm, and their installed packages
278
-
279
- alias update='sudo softwareupdate -i -a; brew cu --all; brew doctor; brew update; brew upgrade; brew cask cleanup; brew prune; brew cleanup; mas upgrade; npm install npm -g; npm update -g; sudo gem update --system; sudo gem update; sudo gem cleanup'
280
-
281
- # ---------------------------------------------------------------------------
282
- # 12. Shorter commands for `Homebrew`.
283
- # ---------------------------------------------------------------------------
284
-
285
- alias brewd='brew doctor'
286
- alias brewi='brew install'
287
- alias brews='brew search'
288
- alias brewu='brew uninstall'
289
- alias brewupdate='brew update && brew upgrade && brew cleanup && brew doctor'
290
-
291
-
292
- # ---------------------------------------------------------------------------
293
- # 13. Speed-up Terminal load time by clearing system logs
294
- # ---------------------------------------------------------------------------
295
-
296
- alias speedup='sudo rm -rf /private/var/log/asl/*'
297
-
298
-
299
- # ---------------------------------------------------------------------------
300
- # 14. Empty the Trash on all mounted volumes and the main HDD
301
- # Also, clear Apple’s System Logs to improve shell startup speed
302
- # ---------------------------------------------------------------------------
303
-
304
- alias emptytrash='rm -rf ~/.Trash/*'
305
-
306
-
307
- # ---------------------------------------------------------------------------
308
- # 15. Open the device simulators
309
- # ---------------------------------------------------------------------------
310
-
311
- alias iphone='open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app'
312
-
313
-
314
- # ---------------------------------------------------------------------------
315
- # 16. cleanupDS: Recursively delete .DS_Store files
316
- # ---------------------------------------------------------------------------
317
-
318
- alias cleanupDS='find . -type f -name ''*.DS_Store'' -ls -delete'
319
-
320
-
321
- # ---------------------------------------------------------------------------
322
- # 17. Hidden Files
323
- # finderShowHidden: Show hidden files in Finder
324
- # finderHideHidden: Hide hidden files in Finder
325
- # ---------------------------------------------------------------------------
326
-
327
- alias finderHideHidden='defaults write com.apple.finder ShowAllFiles FALSE'
328
- alias finderShowHidden='defaults write com.apple.finder ShowAllFiles TRUE'
329
-
330
-
331
- # ---------------------------------------------------------------------------
332
- # 18. cleanupLS: Clean up LaunchServices to remove duplicates in the 'Open With' menu
333
- # ---------------------------------------------------------------------------
334
-
335
- alias cleanupLS='/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user && killall Finder'
336
-
337
-
338
- # ---------------------------------------------------------------------------
339
- # 19. screensaverDesktop: Run a screensaver on the Desktop
340
- # ---------------------------------------------------------------------------
341
-
342
- alias screensaverDesktop='/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background'
343
-
344
-
345
- # ---------------------------------------------------------------------------
346
- # 20. Subversion
347
- # ---------------------------------------------------------------------------
348
-
349
- alias sa='svn add'
350
- alias sc='svn commit'
351
- alias sd='svn delete'
352
- alias sm='svn move'
353
- alias sr='svn rename'
354
- alias ss='svn status'
355
-
356
-
357
- # ---------------------------------------------------------------------------
358
- # 21. Application launchers
359
- # ---------------------------------------------------------------------------
360
-
361
- alias css='open -a /Applications/CSSEdit.app'
362
- alias e='open -a "Visual Studio Code"'
363
- alias edit='open -a "Visual Studio Code"'
364
- alias ipinfo='$HOME/Bin/gt-ipinfo.sh'
365
- alias mate='open -a "Visual Studio Code"'
366
- alias preview='open -a /System/Applications/Preview.app'
367
- alias sql='open -a /Applications/Sequel\ Pro.app'
368
- alias www='open -a /Applications/Safari.app'
369
- alias xcode='open -a xcode'
370
-
371
-
372
-
373
-
374
- # ---------------------------------------------------------------------------
375
- # 22. ttop: Recommended 'top' invocation to minimize resources
376
- # ---------------------------------------------------------------------------
377
-
378
- alias ttop='top -R -F -s 10 -o rsize'
379
-
380
-
381
- # ---------------------------------------------------------------------------
382
- # 23. Networking
383
- # ---------------------------------------------------------------------------
384
-
385
- alias flushDNS='sudo killall -HUP mDNSResponder' # flushDNS: Flush out the DNS Cache
386
- alias ipInfo0='ipconfig getpacket en0' # ipInfo0: Get info on connections for en0
387
- alias ipInfo1='ipconfig getpacket en1' # ipInfo1: Get info on connections for en1
388
- alias lsock='sudo /usr/sbin/lsof -i -P' # lsock: Display open sockets
389
- alias lsockT='sudo /usr/sbin/lsof -nP | grep TCP' # lsockT: Display only open TCP sockets
390
- alias lsockU='sudo /usr/sbin/lsof -nP | grep UDP' # lsockU: Display only open UDP sockets
391
- alias myip='curl -s checkip.dyndns.org | sed -e ''s/.*Current IP Address: //'' -e ''s/<.*$//''' # myip: Public facing IP Address
392
- alias netCons='lsof -i' # netCons: Show all open TCP/IP sockets
393
- alias op='sudo lsof -i -P' # op: List of open ports
394
- alias openPorts='sudo lsof -i | grep LISTEN' # openPorts: All listening connections
395
-
396
- # ---------------------------------------------------------------------------
397
- # 24. Limit Ping to 5 ECHO_REQUEST packets
398
- # ---------------------------------------------------------------------------
399
-
400
- alias ping='ping -c 5'
401
-
402
- # ---------------------------------------------------------------------------
403
- # 25. wget with resume
404
- # ---------------------------------------------------------------------------
405
-
406
- alias wget='wget -c'
407
-
408
-
409
- # ---------------------------------------------------------------------------
410
- # 26. Searching
411
- # ---------------------------------------------------------------------------
412
-
413
- alias qfind='find . -name ' # qfind: Quickly search for file
414
-
415
-
416
- # ---------------------------------------------------------------------------
417
- # 27. memHogsTop, memHogsPs: Find memory hogs
418
- # ---------------------------------------------------------------------------
419
-
420
- alias memHogsPs='ps wwaxm -o pid,stat,vsize,rss,time,command | head -10'
421
- alias memHogsTop='top -l 1 -o rsize | head -20'
422
-
423
- # ---------------------------------------------------------------------------
424
- # 28. cpuHogs: Find CPU hogs
425
- # ---------------------------------------------------------------------------
426
-
427
- alias cpu_hogs='ps wwaxr -o pid,stat,%cpu,time,command | head -10'
@@ -1,19 +0,0 @@
1
- # ---------------------------------------------------------------------------
2
- #
3
- # ______ _ ______ _ _
4
- # | _ \ | | | ___(_) |
5
- # | | | |___ | |_| |_ _| | ___ ___
6
- # | | | / _ \| __| _| | | |/ _ \/ __|
7
- # | |/ / (_) | |_| | | | | __/\__ \
8
- # |___/ \___/ \__\_| |_|_|\___||___/
9
- #
10
- # Description: Mac OS X Dotfiles - Simply designed to fit your shell life.
11
- #
12
- # Custom Configurations
13
- #
14
- # ---------------------------------------------------------------------------
15
-
16
- # Load custom configurations
17
- for config in $HOME/zsh/configurations/[^.#]*.zsh; do
18
- source $config
19
- done
package/zsh/exit.zsh DELETED
@@ -1,21 +0,0 @@
1
- # ---------------------------------------------------------------------------
2
- #
3
- # ______ _ ______ _ _
4
- # | _ \ | | | ___(_) |
5
- # | | | |___ | |_| |_ _| | ___ ___
6
- # | | | / _ \| __| _| | | |/ _ \/ __|
7
- # | |/ / (_) | |_| | | | | __/\__ \
8
- # |___/ \___/ \__\_| |_|_|\___||___/
9
- #
10
- # Description: Mac OS X Dotfiles - Simply designed to fit your shell life.
11
- #
12
- # Sections:
13
- #
14
- # 1. Executed by Ze Shell when login shell exits
15
- #
16
- # ---------------------------------------------------------------------------
17
-
18
- # When leaving the console clear the screen to increase privacy
19
- if [[ "$SHLVL" = 1 ]]; then
20
- clear && printf '\e[3J'
21
- fi
package/zsh/functions.zsh DELETED
@@ -1,42 +0,0 @@
1
- # ---------------------------------------------------------------------------
2
- #
3
- # ______ _ ______ _ _
4
- # | _ \ | | | ___(_) |
5
- # | | | |___ | |_| |_ _| | ___ ___
6
- # | | | / _ \| __| _| | | |/ _ \/ __|
7
- # | |/ / (_) | |_| | | | | __/\__ \
8
- # |___/ \___/ \__\_| |_|_|\___||___/
9
- #
10
- # Description: Mac OS X Dotfiles - Simply designed to fit your shell life.
11
- #
12
- # Custom Functions
13
- #
14
- # ---------------------------------------------------------------------------
15
-
16
- # load custom executable functions
17
- for function in ~/zsh/functions/*; do
18
- source $function
19
- done
20
-
21
- # To be tested and triaged (multi-display support)
22
- #
23
- # set dual monitors
24
- # dual () {
25
- # xrandr --output eDP1 --primary --left-of HDMI1 --output HDMI1 --mode 1280x720
26
- # }
27
- #
28
- # dual2 () {
29
- # xrandr --output eDP1 --primary --left-of HDMI1 --output HDMI1 --auto
30
- # }
31
- #
32
- # # set single monitor
33
- # single () {
34
- # xrandr --output HDMI1 --off
35
- # }
36
- #
37
- #
38
- #
39
- # # aliasc: Function alias
40
- # function aliasc() {
41
- # alias | grep "^${1}=" | awk -F= '{ print $2 }' | sed "s/^'//" | sed "s/'$//"
42
- # }
package/zsh/history.zsh DELETED
@@ -1,53 +0,0 @@
1
- # ---------------------------------------------------------------------------
2
- #
3
- # ______ _ ______ _ _
4
- # | _ \ | | | ___(_) |
5
- # | | | |___ | |_| |_ _| | ___ ___
6
- # | | | / _ \| __| _| | | |/ _ \/ __|
7
- # | |/ / (_) | |_| | | | | __/\__ \
8
- # |___/ \___/ \__\_| |_|_|\___||___/
9
- #
10
- # Description: Mac OS X Dotfiles - Simply designed to fit your shell life.
11
- #
12
- # History options
13
- #
14
- # ---------------------------------------------------------------------------
15
-
16
- # Command history configuration
17
- if [ -z $HISTFILE ]; then
18
- export HISTFILE=$HOME/.zsh_history
19
- fi
20
-
21
- # Number of histories saved in memory
22
- export HISTSIZE=10000
23
-
24
- # Number of histories saved in history file
25
- export SAVEHIST=10000
26
-
27
- # Specifying some history options
28
- setopt always_to_end # Move cursor to the end of a completed word.
29
- setopt append_history # Sessions will append their history list to the history file, rather than replace it.
30
- setopt auto_cd # cd to a directory if it's given without a command.
31
- setopt auto_list # Automatically list choices on ambiguous completion.
32
- setopt auto_menu # Show completion menu on a successive tab press.
33
- setopt auto_param_keys # Automatically complements parentheses
34
- setopt auto_param_slash # If completed parameter is a directory, add a trailing slash.
35
- setopt auto_pushd # Automatically push when cd
36
- setopt auto_resume # Resume if you execute the same command name as the suspended process
37
- setopt bang_hist # Perform textual history expansion
38
- setopt complete_in_word # Complete from both ends of a word.
39
- setopt correct # Enable command correction prompts
40
- setopt extended_history # Save each command’s beginning timestamp (in seconds since the epoch) and the duration (in seconds) to the history file.
41
- setopt hist_beep # Beep in ZLE when a widget attempts to access a history entry which isn’t there.
42
- setopt hist_expire_dups_first # Cause the oldest history event that has a duplicate to be lost before losing a unique event from the list.
43
- setopt hist_ignore_all_dups # If a new command line being added to the history list duplicates an older one, the older command is removed from the list (even if it is not the previous event).
44
- setopt hist_ignore_dups # Do not enter command lines into the history list if they are duplicates of the previous event.
45
- setopt hist_ignore_space # Remove command lines from the history list when the first character on the line is a space, or when one of the expanded aliases contains a leading space.
46
- setopt hist_no_store # Remove the history (fc -l) command from the history list when invoked.
47
- setopt hist_reduce_blanks # Remove superfluous blanks from each command line being added to the history list.
48
- setopt hist_save_no_dups # When writing out the history file, older commands that duplicate newer ones are omitted.
49
- setopt hist_verify # Whenever the user enters a line with history expansion, don’t execute the line directly; instead, perform history expansion and reload the line into the editing buffer.
50
- setopt list_packed # Display with complementary candidates packed
51
- setopt list_types # Mark the file type in the completion candidate list
52
- setopt pushd_ignore_dups # Don’t push multiple copies of the same directory onto the directory stack.
53
- setopt share_history # Imports new commands from the history file, and also causes the typed commands to be appended to the history file
package/zsh/profile.zsh DELETED
@@ -1,17 +0,0 @@
1
- # ---------------------------------------------------------------------------
2
- #
3
- # ______ _ ______ _ _
4
- # | _ \ | | | ___(_) |
5
- # | | | |___ | |_| |_ _| | ___ ___
6
- # | | | / _ \| __| _| | | |/ _ \/ __|
7
- # | |/ / (_) | |_| | | | | __/\__ \
8
- # |___/ \___/ \__\_| |_|_|\___||___/
9
- #
10
- # Description: Mac OS X Dotfiles - Simply designed to fit your shell life.
11
- #
12
- # ---------------------------------------------------------------------------
13
-
14
- # Set JAVA_HOME
15
- # For zsh shell, export $JAVA_HOME at ~/.zshenv or ~/.zshrc.
16
- JAVA_HOME="$(brew --prefix)/Cellar/openjdk/15.0.2/libexec"
17
- export JAVA_HOME
@@ -1,21 +0,0 @@
1
- # ---------------------------------------------------------------------------
2
- #
3
- # ______ _ ______ _ _
4
- # | _ \ | | | ___(_) |
5
- # | | | |___ | |_| |_ _| | ___ ___
6
- # | | | / _ \| __| _| | | |/ _ \/ __|
7
- # | |/ / (_) | |_| | | | | __/\__ \
8
- # |___/ \___/ \__\_| |_|_|\___||___/
9
- #
10
- # Description: Mac OS X Dotfiles - Simply designed to fit your shell life.
11
- #
12
- # Color options
13
- #
14
- # ---------------------------------------------------------------------------
15
-
16
- # makes color constants available
17
- autoload -U colors
18
- colors
19
-
20
- # enable colored output from ls, etc. on FreeBSD-based systems
21
- export CLICOLOR=1
@@ -1,21 +0,0 @@
1
- # ---------------------------------------------------------------------------
2
- #
3
- # ______ _ ______ _ _
4
- # | _ \ | | | ___(_) |
5
- # | | | |___ | |_| |_ _| | ___ ___
6
- # | | | / _ \| __| _| | | |/ _ \/ __|
7
- # | |/ / (_) | |_| | | | | __/\__ \
8
- # |___/ \___/ \__\_| |_|_|\___||___/
9
- #
10
- # Description: Mac OS X Dotfiles - Simply designed to fit your shell life.
11
- #
12
- # Editor configurations
13
- #
14
- # ---------------------------------------------------------------------------
15
-
16
- # Set Default Editor
17
- EDITOR=code
18
- export EDITOR
19
-
20
- GIT_EDITOR=code
21
- export GIT_EDITOR