@sebastienrousseau/dotfiles 0.2.440 → 0.2.453

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 (156) hide show
  1. package/COPYRIGHT +5 -0
  2. package/LICENSE +1260 -2
  3. package/Makefile +79 -0
  4. package/README.md +390 -70
  5. package/bin/dotfiles.sh +157 -0
  6. package/index.js +24 -0
  7. package/package.json +99 -25
  8. package/pnpm-lock.yaml +232 -0
  9. package/pnpm-workspace.yaml +2 -0
  10. package/shell/README.md +3 -0
  11. package/{Icon/r → shell/aliases/default/README.md} +0 -0
  12. package/shell/aliases/default/default.aliases.sh +199 -0
  13. package/shell/aliases/gcloud/gcloud.aliases.sh +121 -0
  14. package/shell/aliases/git/git.aliases.wip +586 -0
  15. package/shell/aliases/heroku/heroku.aliases.sh +1031 -0
  16. package/shell/aliases/jekyll/jekyll.aliases.sh +50 -0
  17. package/shell/aliases/pnpm/pnpm.aliases.sh +42 -0
  18. package/shell/aliases/subversion/subversion.aliases.sh +123 -0
  19. package/shell/aliases/tmux/tmux.aliases.sh +14 -0
  20. package/shell/aliases.sh +12 -0
  21. package/shell/configurations/README.md +3 -0
  22. package/shell/configurations/bash/bashrc +36 -0
  23. package/shell/configurations/curl/cacert.pem +3460 -0
  24. package/shell/configurations/curl/curlrc +55 -0
  25. package/shell/configurations/default/color.sh +17 -0
  26. package/shell/configurations/default/editor.sh +16 -0
  27. package/shell/configurations/default/prompt.sh +37 -0
  28. package/shell/configurations/inputrc/inputrc +22 -0
  29. package/shell/configurations/jshint/jshintrc +37 -0
  30. package/shell/configurations/profile/profile +36 -0
  31. package/shell/configurations/tmux/tmux +95 -0
  32. package/shell/configurations/vim/vimrc +73 -0
  33. package/{.wgetrc → shell/configurations/wget/wgetrc} +4 -0
  34. package/shell/configurations/zsh/zshrc +50 -0
  35. package/shell/configurations.sh +10 -0
  36. package/shell/exit.sh +9 -0
  37. package/shell/functions/README.md +3 -0
  38. package/shell/functions/cdls.sh +19 -0
  39. package/shell/functions/changediskpwd.wip +19 -0
  40. package/shell/functions/code.wip +18 -0
  41. package/shell/functions/countdown.wip +33 -0
  42. package/shell/functions/curlheader.sh +20 -0
  43. package/shell/functions/curltime.sh +31 -0
  44. package/shell/functions/encode64.sh +25 -0
  45. package/shell/functions/environment.sh +37 -0
  46. package/shell/functions/extract.sh +32 -0
  47. package/shell/functions/filehead.sh +4 -0
  48. package/{zsh/zsh/functions/genpwd.zsh → shell/functions/genpwd.sh} +8 -3
  49. package/shell/functions/goto.sh +14 -0
  50. package/shell/functions/headers.wip +4 -0
  51. package/{zsh/zsh/functions/hidehiddenfiles.zsh → shell/functions/hidehiddenfiles.sh} +7 -2
  52. package/shell/functions/history-all.wip +7 -0
  53. package/shell/functions/hostinfo.sh +25 -0
  54. package/{zsh/zsh/functions/hstats.zsh → shell/functions/hstats.sh} +6 -1
  55. package/shell/functions/httpdebug.sh +7 -0
  56. package/shell/functions/keygen.sh +23 -0
  57. package/shell/functions/last.sh +9 -0
  58. package/shell/functions/logout.sh +10 -0
  59. package/shell/functions/lowercase.sh +28 -0
  60. package/shell/functions/macos.sh +47 -0
  61. package/shell/functions/matrix.sh +9 -0
  62. package/shell/functions/mcd.sh +18 -0
  63. package/shell/functions/mount_read_only.sh +9 -0
  64. package/shell/functions/myproc.sh +7 -0
  65. package/shell/functions/prependpath.sh +19 -0
  66. package/shell/functions/print.wip +13 -0
  67. package/shell/functions/ql.sh +7 -0
  68. package/shell/functions/rd.sh +15 -0
  69. package/shell/functions/remove_disk.sh +9 -0
  70. package/shell/functions/ren.sh +11 -0
  71. package/shell/functions/rm.wip +13 -0
  72. package/shell/functions/rps.wip +103 -0
  73. package/{zsh/zsh/functions/showhiddenfiles.zsh → shell/functions/showhiddenfiles.sh} +7 -2
  74. package/{zsh/zsh/functions/size.zsh → shell/functions/size.sh} +6 -1
  75. package/shell/functions/stopwatch.sh +13 -0
  76. package/shell/functions/trash.wip +13 -0
  77. package/shell/functions/tree.wip +13 -0
  78. package/shell/functions/uppercase.sh +28 -0
  79. package/shell/functions/uuidgen.wip +27 -0
  80. package/shell/functions/view-source.sh +8 -0
  81. package/shell/functions/vscode.sh +31 -0
  82. package/shell/functions/whoisport.sh +12 -0
  83. package/shell/functions/zipf.sh +14 -0
  84. package/shell/functions.sh +10 -0
  85. package/shell/history.sh +107 -0
  86. package/shell/paths/ant/ant.paths.sh +15 -0
  87. package/shell/paths/default/default.paths.sh +17 -0
  88. package/shell/paths/homebrew/homebrew.paths.sh +25 -0
  89. package/shell/paths/java/java.paths.sh +16 -0
  90. package/shell/paths/maven/maven.paths.sh +17 -0
  91. package/shell/paths/node/node.paths.sh +13 -0
  92. package/shell/paths/nvm/nvm.paths.sh +21 -0
  93. package/shell/paths/pnpm/pnpm.paths.sh +13 -0
  94. package/shell/paths/python/python.paths.sh +19 -0
  95. package/shell/paths/ruby/ruby.paths.sh +23 -0
  96. package/shell/paths/tmux/tmux.paths.sh +14 -0
  97. package/shell/paths.sh +12 -0
  98. package/.curlrc +0 -17
  99. package/.eslintrc +0 -44
  100. package/.jshintrc +0 -22
  101. package/.travis.yml +0 -21
  102. package/CODE_OF_CONDUCT.md +0 -46
  103. package/CONTRIBUTING.md +0 -60
  104. package/Dotfiles.png +0 -0
  105. package/ISSUE_TEMPLATE.md +0 -43
  106. package/bash/.bash_aliases +0 -409
  107. package/bash/.bash_exit +0 -25
  108. package/bash/.bash_functions +0 -312
  109. package/bash/.bash_load_completion +0 -62
  110. package/bash/.bash_profile +0 -295
  111. package/bash/.bashrc +0 -47
  112. package/homebrew/brew-cask.sh +0 -165
  113. package/homebrew/brew-package.sh +0 -256
  114. package/homebrew/brew-tap.sh +0 -35
  115. package/homebrew/install.sh +0 -29
  116. package/zsh/.zshrc +0 -64
  117. package/zsh/aliases.zsh +0 -427
  118. package/zsh/configurations.zsh +0 -19
  119. package/zsh/exit.zsh +0 -21
  120. package/zsh/functions.zsh +0 -42
  121. package/zsh/history.zsh +0 -53
  122. package/zsh/profile.zsh +0 -17
  123. package/zsh/zsh/configurations/color.zsh +0 -21
  124. package/zsh/zsh/configurations/editor.zsh +0 -21
  125. package/zsh/zsh/configurations/history.zsh +0 -53
  126. package/zsh/zsh/configurations/path.zsh +0 -123
  127. package/zsh/zsh/configurations/prompt.zsh +0 -24
  128. package/zsh/zsh/functions/cd.zsh +0 -51
  129. package/zsh/zsh/functions/cdls.zsh +0 -11
  130. package/zsh/zsh/functions/changediskpwd.zsh +0 -4
  131. package/zsh/zsh/functions/code.zsh +0 -2
  132. package/zsh/zsh/functions/countdown.zsh +0 -33
  133. package/zsh/zsh/functions/curlheader.zsh +0 -12
  134. package/zsh/zsh/functions/curltime.zsh +0 -12
  135. package/zsh/zsh/functions/extract.zsh +0 -27
  136. package/zsh/zsh/functions/goto.zsh +0 -8
  137. package/zsh/zsh/functions/history-all.zsh +0 -2
  138. package/zsh/zsh/functions/hostinfo.zsh +0 -19
  139. package/zsh/zsh/functions/httpdebug.zsh +0 -2
  140. package/zsh/zsh/functions/keygen.zsh +0 -18
  141. package/zsh/zsh/functions/logout.zsh +0 -5
  142. package/zsh/zsh/functions/lowercase.zsh +0 -23
  143. package/zsh/zsh/functions/matrix.zsh +0 -4
  144. package/zsh/zsh/functions/mcd.zsh +0 -11
  145. package/zsh/zsh/functions/mount_read_only.zsh +0 -4
  146. package/zsh/zsh/functions/myproc.zsh +0 -2
  147. package/zsh/zsh/functions/print.zsh +0 -8
  148. package/zsh/zsh/functions/ql.zsh +0 -2
  149. package/zsh/zsh/functions/rd.zsh +0 -8
  150. package/zsh/zsh/functions/remove_disk.zsh +0 -4
  151. package/zsh/zsh/functions/rm.zsh +0 -10
  152. package/zsh/zsh/functions/stopwatch.zsh +0 -8
  153. package/zsh/zsh/functions/trash.zsh +0 -8
  154. package/zsh/zsh/functions/tree.zsh +0 -8
  155. package/zsh/zsh/functions/uppercase.zsh +0 -23
  156. package/zsh/zsh/functions/zipf.zsh +0 -9
package/CONTRIBUTING.md DELETED
@@ -1,60 +0,0 @@
1
- # Contributing to Dotfiles
2
-
3
- Thank you so much for wanting to contribute to Dotfiles! There are a couple ways to help out.
4
-
5
- ## Evangelise!
6
-
7
- Just tell people about Dotfiles. We believe that a bigger, more involved community makes for a better product, and that better products make the world a better place. We can always use more feedback and learn from you.
8
-
9
- ## How to Contribute
10
-
11
- Please find down here, our guides for submitting issues and pull requests.
12
-
13
- ### Bug Reports
14
-
15
- If you encounter a bug that hasn't already been filled, please file a bug report. Let us know of things we should fix, things we should add, questions, etc.
16
-
17
- Warning us of a bug is possibly the single most valuable contribution you can make to Dotfiles.
18
-
19
- 1) Head [here](https://github.com/reedia/dotfiles/issues/new) to submit a new issue.
20
-
21
- 2) Include a descriptive title that is straight to the point.
22
-
23
- 3) Write a detailed description on what the issue is all about.
24
-
25
- 4) Wait for someone to get to the issue and add labels.
26
-
27
- 5) The issue will be fixed soon!
28
-
29
- ### Code Contributions
30
-
31
- Contributing code is one of the more difficult ways to contribute to Dotfiles.
32
-
33
- **Feature Requests**
34
-
35
- Filling feature requests is one of the most popular ways to contribute to Dotfiles.
36
-
37
- Is there some feature request that you'd like to code up yourself? Is there a feature you asked for yourself that you'd like to code?
38
-
39
- Here's how to contribute code for a new feature to Dotfiles. Pull Requests allow you to share your own code with us, and we can merge it into the main repo.
40
-
41
- **Adding Code**
42
-
43
- 1) Fork the repo.
44
-
45
- 2) Clone the repo **you forked** by running
46
- ```sh
47
- $ git clone https://github.com/YOUR-USERNAME-HERE/dotfiles.git
48
- ```
49
-
50
- **Fixing an Issue**
51
-
52
- Have you found a solution to an issue? Here is how you can submit your code to Dotfiles.
53
-
54
- 1) Fork the repo, and refer above for how to change up code.
55
-
56
- 1) Head to your local fork of the repo, and click the "New Pull Request" button.
57
-
58
- 2) Include a title that is straight to the point.
59
-
60
- 3) Wait for someone to review the pull request, and then merge your pull request!
package/Dotfiles.png DELETED
Binary file
package/ISSUE_TEMPLATE.md DELETED
@@ -1,43 +0,0 @@
1
- ### Step 1: Are you in the right place?
2
-
3
- * For issues or feature requests related to the code **in this repository** file a [Github issue](https://github.com/reedia/dotfiles/issues).
4
-
5
- ### Step 2: Describe your environment:
6
-
7
- * Device:
8
- * OS:
9
- * Node.js version:
10
- * npm version:
11
-
12
-
13
- ### Step 3: Describe the problem:
14
-
15
- * Describe the problem clearly here. Be sure to convey here why it's a bug or a feature request.
16
-
17
-
18
- ### Step 4: Highlights the steps to reproduce:
19
-
20
- 1.
21
- 2.
22
- 3.
23
-
24
- ### Step 5: Observed Results:
25
-
26
- * What happened?
27
- * This could be a description, logs output, etc.
28
-
29
- ### Step 6: Expected Results:
30
-
31
- * What did you expect to happen?
32
-
33
- ### Step 7: Relevant Code / Stack Traces:
34
-
35
- Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.
36
-
37
- ```
38
- // Code here to demonstrate the problem
39
- ```
40
-
41
- Making sure to follow these steps will guarantee the quickest resolution possible.
42
-
43
- Many thanks!
@@ -1,409 +0,0 @@
1
- #!/bin/bash -l
2
-
3
- # ---------------------------------------------------------------------------
4
- #
5
- # ______ _ ______ _ _
6
- # | _ \ | | | ___(_) |
7
- # | | | |___ | |_| |_ _| | ___ ___
8
- # | | | / _ \| __| _| | | |/ _ \/ __|
9
- # | |/ / (_) | |_| | | | | __/\__ \
10
- # |___/ \___/ \__\_| |_|_|\___||___/
11
- #
12
- # Description: Mac OS X Dotfiles - Simply designed to fit your shell life.
13
- #
14
- # Sections:
15
- #
16
- # 1. Allow aliases to be with sudo
17
- # 2. Generic aliases
18
- # 3. Quicker navigation
19
- # 4. Jekyll
20
- # 5. Heroku's commands
21
- # 6. Ionic commands
22
- # 7. Emulate iOS using different Apple devices
23
- # 8. Git SCM Cheats
24
- # 9. App engine commands
25
- # 10. Add an "alert" alias for long running commands.
26
- # 11. Get OS X Software Updates, update Homebrew itself, and upgrade installed Homebrew packages
27
- # 12. Shorter commands for `Homebrew`.
28
- # 13. Speed-up Terminal load time by clearing system logs
29
- # 14. Empty the Trash on all mounted volumes and the main HDD
30
- # 15. Open the device simulators
31
- # 16. Recursively delete .DS_Store files
32
- # 17. Hidden Files
33
- # 18. Clean up LaunchServices to remove duplicates in the "Open With" menu
34
- # 19. Run a screen saver on the Desktop
35
- # 20. Things for Subversion
36
- # 21. Application launchers
37
- # 22. Recommended 'top' invocation to minimize resources
38
- # 23. Networking
39
- # 24. Limit Ping to 5 ECHO_REQUEST packets
40
- # 25. Wget with resume
41
- # 26. Searching
42
- # 27. Find memory hogs
43
- # 28. Python Paths
44
- # 29. Find CPU hogs
45
- #
46
- # ---------------------------------------------------------------------------
47
-
48
-
49
- # ---------------------------------------------------------------------------
50
- # 1. Allow aliases to be with sudo
51
- # Please refer to http://www.shellperson.net/using-sudo-with-an-alias/
52
- # ---------------------------------------------------------------------------
53
- alias sudo='sudo '
54
-
55
- # Common
56
- alias reload='reset; source ~/.bashrc'
57
- alias reloads='source ~/.bashrc &> /dev/null'
58
-
59
- # Purging Xcode DerivedData
60
- alias purge='rm -rf ~/library/Developer/Xcode/DerivedData/*'
61
-
62
-
63
- # ---------------------------------------------------------------------------
64
- # 2. Generic aliases
65
- # ---------------------------------------------------------------------------
66
- alias c='clear'
67
- alias checkperms='sudo /usr/libexec/repair_packages --verify --standard-pkgs --volume /'
68
- alias DT='tee ~/Desktop/terminalOut.txt' # DT: Pipe content to file on MacOS Desktop
69
- alias du="du -h"
70
- alias e='open -a "Visual Studio Code"'
71
- alias edit='open -a "Visual Studio Code"'
72
- alias grep="grep --color"
73
- alias h='history'
74
- alias kp="ps auxwww"
75
- alias l='ls -FGlAhp'
76
- alias la='ls -lisa'
77
- alias ll='ls -lisa'
78
- alias locale='locale -a | grep UTF-8'
79
- alias lr='ls -R | grep ":$" | sed -e '\''s/:$//'\'' -e '\''s/[^-][^\/]*\//--/g'\'' -e '\''s/^/ /'\'' -e '\''s/-/|/'\'' | less'
80
- alias ls='ls -FGlAhp'
81
- alias lsd='ls -l | grep "^d"' #list only directories
82
- alias mate='open -a "Visual Studio Code"'
83
- alias mkdir='mkdir -pv'
84
- alias p='pwd'
85
- alias path='echo -e ${PATH//:/\\n}' # path: Echo all executable Paths
86
- alias preview="open -a Preview"
87
- alias r='reload'
88
- alias repairperms='sudo /usr/libexec/repair_packages --repair --standard-pkgs --volume /'
89
- alias xcode='open -a xcode'
90
-
91
- # ---------------------------------------------------------------------------
92
- # 3. Quicker navigation
93
- # ---------------------------------------------------------------------------
94
- alias ~="cd ~"
95
- alias ...='cd ../../' # Go back 2 directory levels
96
- alias ..='cd ../' # Go back 1 directory level
97
- alias .3='cd ../../../' # Go back 3 directory levels
98
- alias .4='cd ../../../../' # Go back 4 directory levels
99
- alias .5='cd ../../../../../' # Go back 5 directory levels
100
- alias .6='cd ../../../../../../' # Go back 6 directory levels
101
- alias less="less -R" # Make less always work with coloured input
102
- alias oc='open -a Finder ./'
103
- alias path='echo -e ${PATH//:/\\n}'
104
- alias so='shopt'
105
- alias zap='rm -i' # Remove file with warning
106
-
107
-
108
- # ---------------------------------------------------------------------------
109
- # 4. Jekyll
110
- # ---------------------------------------------------------------------------
111
-
112
- alias site-dev='JEKYLL_ENV=dev bundle exec jekyll serve --watch --trace'
113
- alias site-production='JEKYLL_ENV=production bundle exec jekyll serve --watch --trace'
114
-
115
-
116
- # ---------------------------------------------------------------------------
117
- # 5. Heroku's commands
118
- # ---------------------------------------------------------------------------
119
-
120
- alias hcp='heroku console --remote production'
121
- alias hcs='heroku console --remote staging'
122
- alias hlp='heroku logs -t --remote production'
123
- alias hls='heroku logs -t --remote staging'
124
-
125
-
126
- # ---------------------------------------------------------------------------
127
- # 6. Ionic commands
128
- # ---------------------------------------------------------------------------
129
-
130
- alias ionandroid="ionic emulate android"
131
- alias ionandroidrun="ionic run android"
132
- alias ionb="ionic build"
133
- alias ionbandroid="ionic build android"
134
- alias ionbios="ionic build ios"
135
- alias iondroidreset="ionpr-android | ionpa-android | ionbandroid"
136
- alias ionicons="open http://ionicons.com/"
137
- alias ionios="ionic emulate ios"
138
- alias ioniosrun="ionic run ios"
139
- alias ionosreset="ionpr-ios | ionpa-ios | ionbios"
140
- alias ionpa-android="ionic platform add android"
141
- alias ionpa-ios="ionic platform add ios"
142
- alias ionpr-android="ionic platform remove android"
143
- alias ionpr-ios="ionic platform remove ios"
144
- alias ions="ionic serve"
145
- alias ionup='npm update -g cordova ionic'
146
-
147
-
148
- # ---------------------------------------------------------------------------
149
- # 7. Emulate iOS using different Apple devices
150
- # ---------------------------------------------------------------------------
151
-
152
- alias ione-ios-4s="ionic emulate ios --target='iPhone-4s'"
153
- alias ione-ios-5="ionic emulate ios --target='iPhone-5'"
154
- alias ione-ios-5s="ionic emulate ios --target='iPhone-5s'"
155
- alias ione-ios-6-Plus="ionic emulate ios --target='iPhone-6-Plus'"
156
- alias ione-ios-6="ionic emulate ios --target='iPhone-6'"
157
- alias ione-ios-iPad-2="ionic emulate ios --target='iPad-2'"
158
- alias ione-ios-iPad-Air="ionic emulate ios --target='iPad-Air'"
159
- alias ione-ios-iPad-Retina="ionic emulate ios --target='iPad-Retina'"
160
-
161
-
162
- # ---------------------------------------------------------------------------
163
- # 8. Git SCM Cheats
164
- # ---------------------------------------------------------------------------
165
-
166
- alias clear="printf '\33c\e[3J'"
167
- alias c='clear'
168
- alias flush="sudo dscacheutil -flushcache"
169
- alias g=git
170
- alias ga="git add"
171
- alias gaa='git add --all'
172
- alias gad='git add .'
173
- alias gau='git add --update'
174
- alias gb='git branch'
175
- alias gbd='git branch -d'
176
- alias gbl='git blame --date short'
177
- alias gbr='git branch -r'
178
- alias gbs='git branch -a'
179
- alias gc="git commit"
180
- alias gcam='git commit --amend -m'
181
- alias gce='git commit -a'
182
- alias gcl='git config --list'
183
- alias gcm='git commit -m '
184
- alias gco='git checkout' #undo to last commit
185
- alias gd='git diff'
186
- alias gdh='git diff HEAD'
187
- alias gdh1='git diff HEAD^'
188
- alias gdh2='git diff HEAD^^'
189
- alias gdh5='git diff HEAD~5'
190
- alias gds='git diff --staged'
191
- alias gf='git fetch'
192
- alias gi='git init'
193
- alias gitremoveallmergedbranches='git branch --merged | grep -v "\*" | xargs -n 1 git branch -d'
194
- alias gl="git log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
195
- alias gl1d='git log --since=1.day.ago'
196
- alias gl1w='git log --since=1.week.ago'
197
- alias gl7d='git log --since=7.days.ago'
198
- alias glg='git log --oneline --graph --all --decorate'
199
- alias glgc='clear && git log --oneline --graph --all --decorate'
200
- alias gll="git log --graph --full-history --all --color"
201
- alias glo="git log --pretty=oneline"
202
- alias glp='git log --pretty=oneline'
203
- alias glps='git log --pretty=oneline --stat'
204
- alias gls='git log --pretty=format: --name-only --diff-filter=A | sort '
205
- alias glu="git log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short"
206
- alias gm="git merge"
207
- alias gnuke='git branch --merged | xargs git branch -d'
208
- alias gob="git checkout -b"
209
- alias gout="git checkout"
210
- alias gpo='git push -u origin'
211
- alias gpo="git push origin"
212
- alias gpom='git push -u origin master'
213
- alias gpt='git push --tags'
214
- alias gpul='git pull'
215
- alias gpum="git pull origin master"
216
- alias gpus='git push'
217
- alias gra='git remote add'
218
- alias grao='git remote add origin'
219
- alias grh='git reset HEAD' #unstage some files
220
- alias grhh='git reset --hard HEAD^' #role back fully to last commit! //be careful
221
- alias grm='git rm'
222
- alias grmc='git rm --cached'
223
- alias grs='git remote -v'
224
- alias grsh='git reset --soft HEAD^' #role back to stage!
225
- alias grso='git remote show origin'
226
- alias grv="git revert"
227
- alias gs='git status -sb'
228
- alias gsu='git submodule update --recursive'
229
- alias gt="git tag"
230
- alias gta='git tag -a'
231
- alias gts='git tag'
232
- alias q='exit'
233
- alias rmdir="rm –rf"
234
-
235
-
236
- # ---------------------------------------------------------------------------
237
- # 9. App engine commands
238
- # ---------------------------------------------------------------------------
239
-
240
- alias gaeauth='appcfg.py --oauth2'
241
- alias gaeup='appcfg.py --oauth2 update .'
242
- alias gaeupauth='appcfg.py --oauth2 -V dev update . && appcfg.py --oauth2 update . -V'
243
-
244
-
245
- # ---------------------------------------------------------------------------
246
- # 10. Add an "alert" alias for long running commands. Use like so:
247
- # sleep 10; alert
248
- # ---------------------------------------------------------------------------
249
-
250
- 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$//'\'')"'
251
-
252
-
253
- # ---------------------------------------------------------------------------
254
- # 11. Get OS X Software Updates, update Homebrew itself, and upgrade installed Homebrew packages
255
- # ---------------------------------------------------------------------------
256
-
257
- # Get macOS Software Updates, and update installed Ruby gems, Homebrew, npm, and their installed packages
258
- alias update='sudo softwareupdate -i -a; brew cu --all; brew doctor; brew update; brew upgrade; brew cleanup -s; 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'
259
-
260
- # ---------------------------------------------------------------------------
261
- # 12. Shorter commands for `Homebrew`.
262
- # ---------------------------------------------------------------------------
263
-
264
- alias brewd="brew doctor"
265
- alias brewi="brew install"
266
- alias brews="brew search"
267
- alias brewu="brew uninstall"
268
- alias brewupdate='brew update && brew upgrade && brew cleanup && brew prune && brew doctor'
269
-
270
-
271
- # ---------------------------------------------------------------------------
272
- # 13. Speed-up Terminal load time by clearing system logs
273
- # ---------------------------------------------------------------------------
274
-
275
- alias speedup="sudo rm -rf /private/var/log/asl/*"
276
-
277
-
278
- # ---------------------------------------------------------------------------
279
- # 14. Empty the Trash on all mounted volumes and the main HDD
280
- # Also, clear Apple’s System Logs to improve shell startup speed
281
- # ---------------------------------------------------------------------------
282
-
283
- alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; speedup"
284
-
285
-
286
- # ---------------------------------------------------------------------------
287
- # 15. Open the device simulators
288
- # ---------------------------------------------------------------------------
289
- alias iphone="open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app"
290
-
291
-
292
- # ---------------------------------------------------------------------------
293
- # 16. cleanupDS: Recursively delete .DS_Store files
294
- # ---------------------------------------------------------------------------
295
-
296
- alias cleanupDS="find . -type f -name '*.DS_Store' -ls -delete"
297
-
298
-
299
- # ---------------------------------------------------------------------------
300
- # 17. Hidden Files
301
- # finderShowHidden: Show hidden files in Finder
302
- # finderHideHidden: Hide hidden files in Finder
303
- # ---------------------------------------------------------------------------
304
-
305
- alias finderHideHidden='defaults write com.apple.finder ShowAllFiles FALSE'
306
- alias finderShowHidden='defaults write com.apple.finder ShowAllFiles TRUE'
307
-
308
-
309
- # ---------------------------------------------------------------------------
310
- # 18. cleanupLS: Clean up LaunchServices to remove duplicates in the "Open With" menu
311
- # ---------------------------------------------------------------------------
312
-
313
- alias cleanupLS="/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user && killall Finder"
314
-
315
-
316
- # ---------------------------------------------------------------------------
317
- # 19. screensaverDesktop: Run a screensaver on the Desktop
318
- # ---------------------------------------------------------------------------
319
-
320
- alias screensaverDesktop='/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background'
321
-
322
-
323
- # ---------------------------------------------------------------------------
324
- # 20. Subversion
325
- # ---------------------------------------------------------------------------
326
-
327
- alias sa='svn add'
328
- alias sc='svn commit'
329
- alias sd='svn delete'
330
- alias sm='svn move'
331
- alias sr='svn rename'
332
- alias ss='svn status'
333
-
334
-
335
- # ---------------------------------------------------------------------------
336
- # 21. Application launchers
337
- # ---------------------------------------------------------------------------
338
-
339
- alias css='open -a /Applications/CSSEdit.app'
340
- alias ipinfo='$HOME/Bin/gt-ipinfo.sh'
341
- alias preview='open -a /Applications/Preview.app'
342
- alias sql='open -a /Applications/Sequel\ Pro.app'
343
- alias www='open -a /Applications/Safari.app'
344
-
345
-
346
- # ---------------------------------------------------------------------------
347
- # 22. ttop: Recommended 'top' invocation to minimize resources
348
- # ---------------------------------------------------------------------------
349
-
350
- alias ttop="top -R -F -s 10 -o rsize"
351
-
352
-
353
- # ---------------------------------------------------------------------------
354
- # 23. Networking
355
- # ---------------------------------------------------------------------------
356
-
357
- alias flushDNS='sudo killall -HUP mDNSResponder' # flushDNS: Flush out the DNS Cache
358
- alias ipInfo0='ipconfig getpacket en0' # ipInfo0: Get info on connections for en0
359
- alias ipInfo1='ipconfig getpacket en1' # ipInfo1: Get info on connections for en1
360
- alias lsock='sudo /usr/sbin/lsof -i -P' # lsock: Display open sockets
361
- alias lsockT='sudo /usr/sbin/lsof -nP | grep TCP' # lsockT: Display only open TCP sockets
362
- alias lsockU='sudo /usr/sbin/lsof -nP | grep UDP' # lsockU: Display only open UDP sockets
363
- alias myip='curl -s checkip.dyndns.org | sed -e "s/.*Current IP Address: //" -e "s/<.*$//"' # myip: Public facing IP Address
364
- alias netCons='lsof -i' # netCons: Show all open TCP/IP sockets
365
- alias op='sudo lsof -i -P' # op: List of open ports
366
- alias openPorts='sudo lsof -i | grep LISTEN' # openPorts: All listening connections
367
-
368
- # ---------------------------------------------------------------------------
369
- # 24. Limit Ping to 5 ECHO_REQUEST packets
370
- # ---------------------------------------------------------------------------
371
-
372
- alias ping='ping -c 5'
373
-
374
- # ---------------------------------------------------------------------------
375
- # 25. wget with resume
376
- # ---------------------------------------------------------------------------
377
-
378
- alias wget='wget -c'
379
-
380
-
381
- # ---------------------------------------------------------------------------
382
- # 26. Searching
383
- # ---------------------------------------------------------------------------
384
-
385
- alias qfind="find . -name " # qfind: Quickly search for file
386
-
387
-
388
- # ---------------------------------------------------------------------------
389
- # 27. memHogsTop, memHogsPs: Find memory hogs
390
- # ---------------------------------------------------------------------------
391
-
392
- alias memHogsPs='ps wwaxm -o pid,stat,vsize,rss,time,command | head -10'
393
- alias memHogsTop='top -l 1 -o rsize | head -20'
394
-
395
-
396
- # ---------------------------------------------------------------------------
397
- # 28. Python Paths
398
- # ---------------------------------------------------------------------------
399
-
400
- # alias python='$(brew --prefix)/bin/python2'
401
- # alias python2='$(brew --prefix)/bin/python2'
402
- # alias python3='$(brew --prefix)/bin/python3'
403
-
404
-
405
- # ---------------------------------------------------------------------------
406
- # 29. cpuHogs: Find CPU hogs
407
- # ---------------------------------------------------------------------------
408
-
409
- alias cpu_hogs='ps wwaxr -o pid,stat,%cpu,time,command | head -10'
package/bash/.bash_exit DELETED
@@ -1,25 +0,0 @@
1
- #!/bin/bash -l
2
-
3
- # ---------------------------------------------------------------------------
4
- #
5
- # ______ _ ______ _ _
6
- # | _ \ | | | ___(_) |
7
- # | | | |___ | |_| |_ _| | ___ ___
8
- # | | | / _ \| __| _| | | |/ _ \/ __|
9
- # | |/ / (_) | |_| | | | | __/\__ \
10
- # |___/ \___/ \__\_| |_|_|\___||___/
11
- #
12
- # Description: Mac OS X Dotfiles - Simply designed to fit your shell life.
13
- #
14
- # Sections:
15
- #
16
- # 1. Executed by bash when login shell exits
17
- #
18
- # ---------------------------------------------------------------------------
19
-
20
-
21
- # When leaving the console clear the screen to increase privacy
22
- if [[ "$SHLVL" = 1 ]]; then
23
- type -P clear_console &> /dev/null && clear_console -q
24
- clear
25
- fi