@sebastienrousseau/dotfiles 0.2.452 → 0.2.454

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 (111) hide show
  1. package/README.md +268 -189
  2. package/{Makefile → dist/Makefile} +7 -8
  3. package/dist/bin/compile.sh +16 -0
  4. package/dist/bin/copy.sh +21 -0
  5. package/{bin → dist/bin}/dotfiles.sh +67 -32
  6. package/dist/filesizes.txt +176 -0
  7. package/{shell → dist/shell}/README.md +0 -0
  8. package/{shell → dist/shell}/aliases/default/default.aliases.sh +1 -1
  9. package/{shell → dist/shell}/aliases/gcloud/gcloud.aliases.sh +1 -1
  10. package/{shell → dist/shell}/aliases/heroku/heroku.aliases.sh +1 -1
  11. package/{shell → dist/shell}/aliases/jekyll/jekyll.aliases.sh +1 -1
  12. package/{shell → dist/shell}/aliases/pnpm/pnpm.aliases.sh +1 -1
  13. package/{shell → dist/shell}/aliases/subversion/subversion.aliases.sh +1 -1
  14. package/{shell → dist/shell}/aliases/tmux/tmux.aliases.sh +1 -1
  15. package/{shell → dist/shell}/aliases.sh +1 -1
  16. package/{shell/aliases/pnpm → dist/shell/configurations}/README.md +0 -0
  17. package/{shell → dist/shell}/configurations/bash/bashrc +2 -2
  18. package/{shell → dist/shell}/configurations/curl/cacert.pem +0 -0
  19. package/{shell → dist/shell}/configurations/curl/curlrc +1 -1
  20. package/{shell → dist/shell}/configurations/default/color.sh +1 -1
  21. package/{shell → dist/shell}/configurations/default/editor.sh +1 -1
  22. package/{shell → dist/shell}/configurations/default/prompt.sh +6 -6
  23. package/{shell → dist/shell}/configurations/inputrc/inputrc +2 -2
  24. package/{shell → dist/shell}/configurations/jshint/jshintrc +0 -0
  25. package/{shell → dist/shell}/configurations/profile/profile +1 -1
  26. package/{shell → dist/shell}/configurations/tmux/tmux +2 -2
  27. package/{shell → dist/shell}/configurations/vim/vimrc +1 -1
  28. package/{shell → dist/shell}/configurations/wget/wgetrc +1 -1
  29. package/{shell → dist/shell}/configurations/zsh/zshrc +12 -2
  30. package/{shell → dist/shell}/configurations.sh +1 -1
  31. package/{shell → dist/shell}/exit.sh +1 -1
  32. package/{shell/configurations → dist/shell/functions}/README.md +0 -0
  33. package/{shell → dist/shell}/functions/cdls.sh +1 -1
  34. package/{shell → dist/shell}/functions/curlheader.sh +1 -1
  35. package/{shell → dist/shell}/functions/curltime.sh +1 -1
  36. package/{shell → dist/shell}/functions/encode64.sh +1 -1
  37. package/{shell → dist/shell}/functions/environment.sh +8 -8
  38. package/{shell → dist/shell}/functions/extract.sh +2 -2
  39. package/{shell → dist/shell}/functions/filehead.sh +0 -0
  40. package/{shell → dist/shell}/functions/genpwd.sh +1 -1
  41. package/{shell → dist/shell}/functions/goto.sh +2 -2
  42. package/{shell → dist/shell}/functions/hidehiddenfiles.sh +1 -1
  43. package/{shell → dist/shell}/functions/hostinfo.sh +1 -1
  44. package/{shell → dist/shell}/functions/hstats.sh +1 -1
  45. package/{shell → dist/shell}/functions/httpdebug.sh +1 -1
  46. package/{shell → dist/shell}/functions/keygen.sh +4 -4
  47. package/{shell → dist/shell}/functions/last.sh +1 -1
  48. package/{shell → dist/shell}/functions/logout.sh +1 -1
  49. package/{shell → dist/shell}/functions/lowercase.sh +1 -1
  50. package/{shell → dist/shell}/functions/macos.sh +1 -1
  51. package/{shell → dist/shell}/functions/matrix.sh +1 -1
  52. package/{shell → dist/shell}/functions/mcd.sh +1 -1
  53. package/{shell → dist/shell}/functions/mount_read_only.sh +1 -1
  54. package/{shell → dist/shell}/functions/myproc.sh +2 -2
  55. package/{shell → dist/shell}/functions/prependpath.sh +1 -1
  56. package/{shell → dist/shell}/functions/ql.sh +1 -1
  57. package/{shell → dist/shell}/functions/rd.sh +1 -1
  58. package/{shell → dist/shell}/functions/remove_disk.sh +1 -1
  59. package/{shell → dist/shell}/functions/ren.sh +2 -2
  60. package/{shell → dist/shell}/functions/showhiddenfiles.sh +1 -1
  61. package/{shell → dist/shell}/functions/size.sh +1 -1
  62. package/{shell → dist/shell}/functions/stopwatch.sh +1 -1
  63. package/{shell → dist/shell}/functions/uppercase.sh +2 -2
  64. package/{shell → dist/shell}/functions/view-source.sh +1 -1
  65. package/{shell → dist/shell}/functions/vscode.sh +1 -1
  66. package/{shell → dist/shell}/functions/whoisport.sh +1 -1
  67. package/{shell → dist/shell}/functions/zipf.sh +1 -1
  68. package/{shell → dist/shell}/functions.sh +1 -1
  69. package/{shell → dist/shell}/history.sh +3 -6
  70. package/dist/shell/index.d.ts +2 -0
  71. package/dist/shell/index.d.ts.map +1 -0
  72. package/dist/shell/index.js +2 -0
  73. package/dist/shell/index.js.map +1 -0
  74. package/{shell → dist/shell}/paths/ant/ant.paths.sh +1 -1
  75. package/{shell → dist/shell}/paths/default/default.paths.sh +1 -1
  76. package/{shell → dist/shell}/paths/homebrew/homebrew.paths.sh +4 -1
  77. package/{shell → dist/shell}/paths/java/java.paths.sh +1 -1
  78. package/{shell → dist/shell}/paths/maven/maven.paths.sh +3 -2
  79. package/{shell → dist/shell}/paths/node/node.paths.sh +2 -2
  80. package/{shell → dist/shell}/paths/nvm/nvm.paths.sh +1 -1
  81. package/{shell → dist/shell}/paths/pnpm/pnpm.paths.sh +2 -2
  82. package/dist/shell/paths/python/python.paths.sh +29 -0
  83. package/{shell → dist/shell}/paths/ruby/ruby.paths.sh +1 -1
  84. package/{shell → dist/shell}/paths/tmux/tmux.paths.sh +3 -3
  85. package/{shell → dist/shell}/paths.sh +1 -1
  86. package/package.json +33 -27
  87. package/COPYRIGHT +0 -5
  88. package/index.js +0 -24
  89. package/pnpm-lock.yaml +0 -178
  90. package/pnpm-workspace.yaml +0 -2
  91. package/shell/aliases/README.md +0 -327
  92. package/shell/aliases/default/README.md +0 -0
  93. package/shell/aliases/gcloud/README.md +0 -117
  94. package/shell/aliases/git/README.md +0 -279
  95. package/shell/aliases/git/git.aliases.wip +0 -586
  96. package/shell/aliases/heroku/README.md +0 -457
  97. package/shell/aliases/jekyll/README.md +0 -32
  98. package/shell/aliases/subversion/README.md +0 -54
  99. package/shell/aliases/tmux/README.md +0 -0
  100. package/shell/functions/README.md +0 -3
  101. package/shell/functions/changediskpwd.sh +0 -19
  102. package/shell/functions/code.sh +0 -18
  103. package/shell/functions/countdown.sh +0 -33
  104. package/shell/functions/headers.sh +0 -4
  105. package/shell/functions/history-all.sh +0 -7
  106. package/shell/functions/print.sh +0 -13
  107. package/shell/functions/rm.sh +0 -13
  108. package/shell/functions/rps.sh +0 -103
  109. package/shell/functions/trash.sh +0 -13
  110. package/shell/functions/tree.sh +0 -13
  111. package/shell/functions/uuidgen.sh +0 -27
package/package.json CHANGED
@@ -1,4 +1,7 @@
1
1
  {
2
+ "assets": [
3
+ "index.js"
4
+ ],
2
5
  "author": "Sebastien Rousseau (https://github.com/sebastienrousseau)",
3
6
  "autoupdate": {
4
7
  "fileMap": [
@@ -23,26 +26,27 @@
23
26
  ],
24
27
  "description": "Dotfiles - A set of macOS / Linux and Windows configuration files - Simply designed to fit your shell life.",
25
28
  "devDependencies": {
29
+ "@types/node": "^16.11.64",
26
30
  "filesizes": "^0.1.2",
27
- "pnpm": "^7.13.0",
28
- "rimraf": "^3.0.2"
31
+ "pnpm": "^7.13.2",
32
+ "jsmin": "^1.0.1",
33
+ "rimraf": "^3.0.2",
34
+ "shelljs": "^0.8.5",
35
+ "shelljs-nodecli": "^0.1.1",
36
+ "tsd": "0.24.1",
37
+ "typescript": "^4.8.4"
29
38
  },
30
39
  "directories": {
31
40
  "bin": "./bin",
32
- "docs": "./docs",
33
41
  "shell": "./shell"
34
42
  },
43
+ "engines": {
44
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
45
+ },
46
+ "exports": "./index.js",
35
47
  "files": [
36
- "/index.js",
37
- "/bin",
38
- "/COPYRIGHT",
39
- "/LICENSE",
40
- "/Makefile",
41
- "/package.json",
42
- "/pnpm-lock.yaml",
43
- "/pnpm-workspace.yaml",
44
- "/README.md",
45
- "/shell"
48
+ "index.js",
49
+ "dist/"
46
50
  ],
47
51
  "homepage": "https://dotfiles.io/",
48
52
  "keywords": [
@@ -57,7 +61,8 @@
57
61
  ],
58
62
  "license": "MIT",
59
63
  "license_URI": "http://www.opensource.org/licenses/mit-license.php",
60
- "main": "index.js",
64
+ "lockfileVersion": 1,
65
+ "main": "./dist/index.js",
61
66
  "name": "@sebastienrousseau/dotfiles",
62
67
  "publishConfig": {
63
68
  "access": "public",
@@ -67,36 +72,37 @@
67
72
  "type": "git",
68
73
  "url": "git@github.com:sebastienrousseau/dotfiles.git"
69
74
  },
70
- "type": "module",
71
- "version": "0.2.452",
75
+ "types": "./dist/index.d.ts",
76
+ "version": "0.2.454",
72
77
  "scripts": {
73
78
  "backup": "pnpm run bk:dir && pnpm run bk:bsh && pnpm run bk:zsh",
74
79
  "bk:bsh": "if [ -z $HOME/.bashrc ]; then mv -f $HOME/.bashrc $HOME/.dotfiles_backup/bashrc.bk; fi ",
75
80
  "bk:dir": "if [ -d $HOME/.dotfiles ]; then mv -f $HOME/.dotfiles $HOME/dotfiles_backup; fi ",
76
81
  "bk:zsh": "if [ -z $HOME/.zshrc ]; then mv -f $HOME/.zshrc $HOME/.dotfiles_backup/zshrc.bk; fi ",
77
- "build": "pnpm run clean:dist && pnpm run cp:shell && pnpm run cp:bin && pnpm run cp:docs && pnpm run cp:make && pnpm run filesizes",
78
- "clean:dist": "rimraf \"dist/\"",
79
- "copy": "pnpm run cp:dirs && pnpm run cp:bash && pnpm run cp:prof && pnpm run cp:tmux && pnpm run cp:curl && pnpm run cp:jsht && pnpm run cp:inpt && pnpm run cp:cert && pnpm run cp:vimr && pnpm run cp:wget && pnpm run cp:zshr",
82
+ "copy": "chmod 755 \"./bin/copy.sh\" && ./bin/copy.sh",
80
83
  "cp:bash": "cp ./shell/configurations/bash/bashrc $HOME/.bashrc",
81
- "cp:bin": "cp -R ./bin/ ./dist",
84
+ "cp:bin": "cp -R ./bin/ ./dist/bin",
82
85
  "cp:cert": "cp ./shell/configurations/curl/cacert.pem $HOME/cacert.pem",
83
86
  "cp:curl": "cp ./shell/configurations/curl/curlrc $HOME/.curlrc",
84
- "cp:dirs": "cp -R ./shell $HOME/.dotfiles/shell ",
85
- "cp:docs": "cp -R ./docs ./dist/docs && cp ./README.md ./dist && cp ./LICENSE ./dist && cp ./COPYRIGHT ./dist",
87
+ "cp:dirs": "cp -R ./shell $HOME/.dotfiles/shell/",
86
88
  "cp:inpt": "cp ./shell/configurations/inputrc/inputrc $HOME/.inputrc",
87
89
  "cp:jsht": "cp ./shell/configurations/jshint/jshintrc $HOME/.jshintrc",
88
90
  "cp:make": "cp ./Makefile ./dist",
89
91
  "cp:prof": "cp ./shell/configurations/profile/profile $HOME/.profile",
90
- "cp:shell": "cp -R ./shell/ ./dist",
92
+ "cp:shell": "cp -R ./shell/ ./dist/shell/",
91
93
  "cp:tmux": "cp ./shell/configurations/tmux/tmux $HOME/.tmux.conf",
92
94
  "cp:vimr": "cp ./shell/configurations/vim/vimrc $HOME/.vimrc",
93
95
  "cp:wget": "cp ./shell/configurations/wget/wgetrc $HOME/.wgetrc",
94
96
  "cp:zshr": "cp ./shell/configurations/zsh/zshrc $HOME/.zshrc",
97
+ "clean": "rimraf \"dist/\" && tsc --build --clean",
98
+ "cl:tmp": "rimraf \"./dist/shell/**/*.tmp\"",
99
+ "build": "pnpm run clean && tsc --build tsconfig.json && pnpm run compile",
100
+ "compile": "chmod 755 \"./bin/compile.sh\" && ./bin/compile.sh",
95
101
  "directory": "mkdir $HOME/.dotfiles",
96
- "filesizes": "filesizes dist/ > dist/filesizes.txt",
97
- "help": "sh ./bin/dotfiles.sh --help",
98
- "installer": "pnpm run backup && pnpm run directory && pnpm run copy",
99
- "start": "node index.js",
102
+ "filesizes": "filesizes ./dist/ > ./dist/filesizes.txt",
103
+ "help": "chmod 755 \"./bin/dotfiles.sh\" && ./bin/dotfiles.sh",
104
+ "minify": "jsmin ./shell/index.js > dist/shell/index.js",
105
+ "start": "node dist/shell/index.js",
100
106
  "test": "echo \"Error: no test specified\" && exit 1"
101
107
  }
102
108
  }
package/COPYRIGHT DELETED
@@ -1,5 +0,0 @@
1
- /*
2
- * 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - https://dotfiles.io
3
- * Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- * License: MIT
5
- */
package/index.js DELETED
@@ -1,24 +0,0 @@
1
- import { exec } from "child_process";
2
-
3
- /**
4
- * Execute simple shell command (async wrapper).
5
- * @param {String} cmd
6
- * @return {Object} { stdout: String, stderr: String }
7
- */
8
- async function sh(cmd) {
9
- return new Promise(function (resolve, reject) {
10
- exec(cmd, (err, stdout, stderr) => {
11
- if (err) {
12
- reject(err);
13
- } else {
14
- resolve({ stdout, stderr });
15
- }
16
- });
17
- });
18
- }
19
-
20
- async function main() {
21
- let { stdout } = await sh("pnpm run installer");
22
- }
23
-
24
- main();
package/pnpm-lock.yaml DELETED
@@ -1,178 +0,0 @@
1
- lockfileVersion: 5.4
2
-
3
- importers:
4
-
5
- .:
6
- specifiers:
7
- filesizes: ^0.1.2
8
- pnpm: ^7.13.0
9
- rimraf: ^3.0.2
10
- devDependencies:
11
- filesizes: 0.1.2
12
- pnpm: 7.13.0
13
- rimraf: 3.0.2
14
-
15
- packages:
16
-
17
- /ansi-styles/4.3.0:
18
- resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}
19
- engines: {node: '>=8'}
20
- dependencies:
21
- color-convert: 2.0.1
22
- dev: true
23
-
24
- /balanced-match/1.0.2:
25
- resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
26
- dev: true
27
-
28
- /brace-expansion/1.1.11:
29
- resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==}
30
- dependencies:
31
- balanced-match: 1.0.2
32
- concat-map: 0.0.1
33
- dev: true
34
-
35
- /chalk/3.0.0:
36
- resolution: {integrity: sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==}
37
- engines: {node: '>=8'}
38
- dependencies:
39
- ansi-styles: 4.3.0
40
- supports-color: 7.2.0
41
- dev: true
42
-
43
- /cli-table/0.3.11:
44
- resolution: {integrity: sha512-IqLQi4lO0nIB4tcdTpN4LCB9FI3uqrJZK7RC515EnhZ6qBaglkIgICb1wjeAqpdoOabm1+SuQtkXIPdYC93jhQ==}
45
- engines: {node: '>= 0.2.0'}
46
- dependencies:
47
- colors: 1.0.3
48
- dev: true
49
-
50
- /color-convert/2.0.1:
51
- resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}
52
- engines: {node: '>=7.0.0'}
53
- dependencies:
54
- color-name: 1.1.4
55
- dev: true
56
-
57
- /color-name/1.1.4:
58
- resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}
59
- dev: true
60
-
61
- /colors/1.0.3:
62
- resolution: {integrity: sha512-pFGrxThWcWQ2MsAz6RtgeWe4NK2kUE1WfsrvvlctdII745EW9I0yflqhe7++M5LEc7bV2c/9/5zc8sFcpL0Drw==}
63
- engines: {node: '>=0.1.90'}
64
- dev: true
65
-
66
- /commander/4.1.1:
67
- resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==}
68
- engines: {node: '>= 6'}
69
- dev: true
70
-
71
- /concat-map/0.0.1:
72
- resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
73
- dev: true
74
-
75
- /duplexer/0.1.2:
76
- resolution: {integrity: sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==}
77
- dev: true
78
-
79
- /filesizes/0.1.2:
80
- resolution: {integrity: sha512-B7S28jvoR/mSmccYwh6jkZYvsmuXqULibMkT9rU4hYZfjHTk7bw8Zmygss9UNX49YbJirzvGb2MSh/CbSWKzzQ==}
81
- hasBin: true
82
- dependencies:
83
- chalk: 3.0.0
84
- cli-table: 0.3.11
85
- commander: 4.1.1
86
- gzip-size: 5.1.1
87
- pretty-bytes: 5.6.0
88
- dev: true
89
-
90
- /fs.realpath/1.0.0:
91
- resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==}
92
- dev: true
93
-
94
- /glob/7.2.3:
95
- resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}
96
- dependencies:
97
- fs.realpath: 1.0.0
98
- inflight: 1.0.6
99
- inherits: 2.0.4
100
- minimatch: 3.1.2
101
- once: 1.4.0
102
- path-is-absolute: 1.0.1
103
- dev: true
104
-
105
- /gzip-size/5.1.1:
106
- resolution: {integrity: sha512-FNHi6mmoHvs1mxZAds4PpdCS6QG8B4C1krxJsMutgxl5t3+GlRTzzI3NEkifXx2pVsOvJdOGSmIgDhQ55FwdPA==}
107
- engines: {node: '>=6'}
108
- dependencies:
109
- duplexer: 0.1.2
110
- pify: 4.0.1
111
- dev: true
112
-
113
- /has-flag/4.0.0:
114
- resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}
115
- engines: {node: '>=8'}
116
- dev: true
117
-
118
- /inflight/1.0.6:
119
- resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==}
120
- dependencies:
121
- once: 1.4.0
122
- wrappy: 1.0.2
123
- dev: true
124
-
125
- /inherits/2.0.4:
126
- resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}
127
- dev: true
128
-
129
- /minimatch/3.1.2:
130
- resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}
131
- dependencies:
132
- brace-expansion: 1.1.11
133
- dev: true
134
-
135
- /once/1.4.0:
136
- resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}
137
- dependencies:
138
- wrappy: 1.0.2
139
- dev: true
140
-
141
- /path-is-absolute/1.0.1:
142
- resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==}
143
- engines: {node: '>=0.10.0'}
144
- dev: true
145
-
146
- /pify/4.0.1:
147
- resolution: {integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==}
148
- engines: {node: '>=6'}
149
- dev: true
150
-
151
- /pnpm/7.13.0:
152
- resolution: {integrity: sha512-n1oG3HAOIXuOpzQAMqaPTTKlP1lJBpj9p9EIom63WYiZmCl2GaTvrcDQ085MZRcb5buQxt5lYgfqXppkluB97A==}
153
- engines: {node: '>=14.6'}
154
- hasBin: true
155
- dev: true
156
-
157
- /pretty-bytes/5.6.0:
158
- resolution: {integrity: sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==}
159
- engines: {node: '>=6'}
160
- dev: true
161
-
162
- /rimraf/3.0.2:
163
- resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==}
164
- hasBin: true
165
- dependencies:
166
- glob: 7.2.3
167
- dev: true
168
-
169
- /supports-color/7.2.0:
170
- resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}
171
- engines: {node: '>=8'}
172
- dependencies:
173
- has-flag: 4.0.0
174
- dev: true
175
-
176
- /wrappy/1.0.2:
177
- resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
178
- dev: true
@@ -1,2 +0,0 @@
1
- packages:
2
- - "shell/**"
@@ -1,327 +0,0 @@
1
- # Dotfiles aliases
2
-
3
- ![Banner representing the Dotfiles Library](/assets/dotfiles.svg)
4
-
5
- This aliases.zsh file creates helpful shortcut aliases for many commonly used commands.
6
-
7
- ## Table of Contents
8
-
9
- - [Dotfiles aliases](#dotfiles-aliases)
10
- - [Table of Contents](#table-of-contents)
11
- - [1. System detection utility](#1-system-detection-utility)
12
- - [1.1 Checking the aliases already installed](#11-checking-the-aliases-already-installed)
13
- - [1.2 Swapping to the collection of GNU find, xargs, and locate](#12-swapping-to-the-collection-of-gnu-find-xargs-and-locate)
14
- - [Aliases for the GNU coreutils (Core GNU utilities) programs](#aliases-for-the-gnu-coreutils-core-gnu-utilities-programs)
15
- - [2. System tools and system information aliases](#2-system-tools-and-system-information-aliases)
16
- - [2.1 System tools aliases](#21-system-tools-aliases)
17
- - [2.2 System information aliases](#22-system-information-aliases)
18
- - [2.3 Interactive mode commands](#23-interactive-mode-commands)
19
- - [Interactive mode aliases](#interactive-mode-aliases)
20
- - [3. Common shell aliases](#3-common-shell-aliases)
21
- - [3.1 Generic aliases](#31-generic-aliases)
22
- - [3.2 Finding commands (find and grep)](#32-finding-commands-find-and-grep)
23
- - [3.3 List directory aliases commands (ls)](#33-list-directory-aliases-commands-ls)
24
- - [3.4 Networking aliases](#34-networking-aliases)
25
- - [3.5 Quicker navigation aliases](#35-quicker-navigation-aliases)
26
- - [3.6 Jekyll Aliases](#36-jekyll-aliases)
27
- - [Global aliases](#global-aliases)
28
- - [File extension aliases](#file-extension-aliases)
29
- - [Reading Docs](#reading-docs)
30
- - [Listing files inside a packed file](#listing-files-inside-a-packed-file)
31
-
32
- ### 1. System detection utility
33
-
34
- The `aliases.plugin.zsh` file contains a system detection utility that identifies
35
- which `ls` flavor is in use. (GNU or macOS) in order to help setting up the right
36
- `LS_COLORS` environment variables to your Z Shell.
37
-
38
- #### 1.1 Checking the aliases already installed
39
-
40
- Type the following alias command in your terminal:
41
-
42
- ```bash
43
- alias
44
- ```
45
-
46
- #### 1.2 Swapping to the collection of GNU find, xargs, and locate
47
-
48
- macOS systems are based on BSD, rather than on GNU/Linux like RedHat, Debian, and
49
- Ubuntu. As a result, a lot of the command line tools that ship with macOS aren’t
50
- 100% compatible.
51
-
52
- The GNU Find Utilities are the basic directory searching utilities of the GNU
53
- operating system. These programs are typically used in conjunction with other
54
- programs to provide modular and powerful directory search and file locating
55
- capabilities to other commands.
56
-
57
- The tools supplied with this package are:
58
-
59
- - find - search for files in a directory hierarchy
60
- - locate - list files in databases that match a pattern
61
- - updatedb - update a file name database
62
- - xargs - build and execute command lines from standard input
63
-
64
- Type the following alias command in your terminal:
65
-
66
- ```bash
67
- brew install findutils
68
- ```
69
-
70
- ##### Aliases for the GNU coreutils (Core GNU utilities) programs
71
-
72
- | Alias | Command | Description |
73
- |-------|-------------|-------------------------|
74
- | dircolors | `gdircolors` | Color setup for ls. |
75
- | find | `gfind` | Search for files in a directory hierarchy. |
76
- | grep | `ggrep` | File pattern searcher. |
77
- | readlink | `greadlink` |Display file status. |
78
- | sed | `gsed` | Stream editor. |
79
- | sort | `gsort` | Sort or merge records (lines) of text and binary files. |
80
-
81
- ### 2. System tools and system information aliases
82
-
83
- #### 2.1 System tools aliases
84
-
85
- | Alias | Command | Description |
86
- |-------|-------------|-------------------------|
87
- | htop | `sudo htop` | Append sudo to htop (interactive process viewer) command. |
88
- | ifconfig | `sudo ifconfig` | Append sudo to ifconfig (configure network interface parameters) command. |
89
- | iotop | `sudo iotop` | Append sudo to iotop (display top disk I/O events by process) command. |
90
- | iptables | `sudo iptables` | Append sudo to iptables (Append sudo to iptables (Administration tool for packet filtering) command. |
91
- | purge | `rm -rf ~/library/Developer/Xcode/DerivedData/*` | Purging Xcode DerivedData. |
92
- | reload | `reset` | Reset and initialize the Terminal screen. |
93
- | sudo | `sudo` | Allows a system administrator to delegate authority to give certain users (or groups of users) the ability to run some (or all) commands as root or another user while providing an audit trail of the commands and their arguments. |
94
- | top | `htop` | Allows the user to interactively monitor the system's vital resources or server's processes in real time. |
95
- | ttop | `top -F -s 10 rsize` | Recommended 'top' invocation to minimize resources. |
96
- | zshrc | `${=EDITOR} $HOME/.zshrc` | Quick access to the `.zshrc` file. |
97
-
98
- #### 2.2 System information aliases
99
-
100
- | Alias | Command | Description |
101
- |-------|-------------|-------------------------|
102
- | kp | `ps auxwww` | Getting full path of executables. The "auxwww" are options to the ps (process) command. The options mean display all process running that belong to you and to other users and provide information about who owns what process. The three "www"'s mean display the entire command line regardless of how long it is and wrap it in your window. |
103
- | pid | `ps -f` | Display the uid, pid, parent pid, recent CPU usage, process start time, controlling tty, elapsed CPU usage, and the associated command. |
104
- | ping | `ping -c 5` | Limit Ping to 5 ECHO_REQUEST packets. |
105
- | ports | `netstat -tulan` | Display ports |
106
- | pscpu | `ps aux | sort -nr -k 3 | head -3` | Getting top 3 CPU eating processes. |
107
- | pscpu10 | `ps aux | sort -nr -k 3 | head -10` | Getting top 10 CPU eating processes. |
108
- | psmem | `ps aux | sort -nr -k 4 | head -3` | Getting top 3 memory eating processes. |
109
- | psmem10 | `ps aux | sort -nr -k 4 | head -10` | Getting top 10 memory eating processes. |
110
-
111
- #### 2.3 Interactive mode commands
112
-
113
- ##### Interactive mode aliases
114
-
115
- | Alias | Command | Description |
116
- |-------|-------------|--------------------------|
117
- | cp | `cp -i` | Copy files with warning. |
118
- | ln | `ln -i` | Make links with warning. |
119
- | mv | `mv -i` | Move files with warning. |
120
- | rm | `rm -i` | Remove file with warning.|
121
- | zap | `rm -i` | Remove file with warning.|
122
-
123
- ### 3. Common shell aliases
124
-
125
- #### 3.1 Generic aliases
126
-
127
- | Alias | Command | Description |
128
- |-------|-------------|-------------------------|
129
- | c | `clear && printf '\e[3J'` | Clear screen shortcut. |
130
- | cls | `clear && printf '\e[3J` | Clear screen command. |
131
- | countf | `echo $(ls -1 | wc -l)` | Count of non-hidden files in current dir. |
132
- | dt | `tee $HOME/terminal-$(date +%F).txt` | Pipe content to file in the $HOME directory. |
133
- | du | `du -h` | File size human readable output sorted by size. |
134
- | dud | `du -d 1 -h` | File size human readable output sorted by depth. |
135
- | duf | `du -sh *` | File size human readable output sorted. |
136
- | egz | `tar -xvzf` | Extract a whole directory (including subdirectories). |
137
- | flush | `sudo dscacheutil -flushcache && sudo killall -HUP mDNSResponder` | Flush the directory service cache and restart the multi-cast DNS daemon. |
138
- | gz | `tar -zcvf` | Compress a whole directory (including subdirectories). |
139
- | h | `history` | Lists all recently used commands. |
140
- | hs | `history | grep` | Use grep to search the command history. |
141
- | hsi | `history | grep -i` | Use grep to do a case-insensitive search of the command history. |
142
- | locale | `locale -a | grep UTF-8` | Check UTF-8 locale. |
143
- | mkdir | `mkdir -pv` | Create the directory and all parent directories, verbose mode. |
144
- | p | `pwd` | Shortcut for `pwd` which returns working directory name. |
145
- | path | `echo -e ${PATH//:/\\n}` | Display the $PATH variable on newlines. |
146
- | q | `exit` | Shortcut for the `exit` command. |
147
- | r | `reload` | Shortcut for the `reload` command. |
148
- | reboot | `sudo shutdown -r now` | Restart immediately. |
149
- | reload | `. ~/.zshrc` | Reload the Z shell. |
150
- | rp | `diskutil repairPermissions /` | Repair macOS Permissions. |
151
- | rv | `diskutil repairvolume /` | diskutil repairvolume / |
152
- | rmdir | `rm –rf` | Remove directory. |
153
- | shutdown | `sudo shutdown -h now` | Shutdown immediately. |
154
- | sort | `LC_ALL=C sort` | Fix sorting order |
155
- | sortnr | `sort -n -r` | Sort in a descending order according to numerical value. |
156
- | t | `tail -f` | Prints the last 10 lines of a text or log file, and then waits for new additions to the file to print it in real time. |
157
- | vp | `diskutil verifyPermissions /` | Verify macOS Permissions |
158
- | vv | `diskutil verifyvolume /` | Verify macOS Volume |
159
-
160
- #### 3.2 Finding commands (find and grep)
161
-
162
- | Alias | Command | Description |
163
- |-------|-----------------------------------------------------|-----------------------------------------|
164
- | egrep | `egrep --color` | Searches that can handle extended regular expressions (EREs). |
165
- | fd | `find . -type d -name` | Find a directory with a given name. |
166
- | ff | `find . -type f -name` | Find a file with a given name. |
167
- | fgrep | `fgrep --color` | Searches that can only handle fixed patterns. |
168
- | grep | `grep --color` | Searches for a query string. |
169
- | hgrep | `history | grep` | Searches for a word in the list of previously used commands. |
170
- | sgrep | `grep -R -n -H -C 5 --exclude-dir={.git,.svn,CVS}` | Useful for searching within files. |
171
-
172
- #### 3.3 List directory aliases commands (ls)
173
-
174
- | Alias | Command |Description |
175
- |-------|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------|
176
- | l | `ls -lFh` | Size, show type, human readable. |
177
- | l1 | `ls -1` | Display one file per line. |
178
- | la | `ls -lAFh` | Long list, show almost all, show type, human readable. |
179
- | lart | `ls -1Fcart` | Force output to be one entry per line, last changed, includes directory entries whose names begin with a dot, reverse, sort by time modified. |
180
- | last | `ls -t` | Sorts all files by modification time, showing the last edited file first. |
181
- | lc | `ls -ltcr` | Sort by/show change time,most recent last. |
182
- | ld | `ls -ld` | Display directory information. |
183
- | ldot | `ls -ld .*` | Display only dot files. |
184
- | lf | `ls -lf` | Visual Classification of Files With Special Characters. |
185
- | lh | `ls -lh` | Display file size in human readable format. |
186
- | li | `ls -i` | Display File Inode Number. |
187
- | lk | `ls -lSr` | Sort by size, biggest last. |
188
- | ll | `ls -lghFG | sort -n -td -k2` | Long list. |
189
- | ln | `ls -n` | Display File UID and GID. |
190
- | lq | `ls -q` | Hide Control Characters. |
191
- | lr | `ls -tRFh` | Display Files Recursively sorted by date, recursive, show type, human readable. |
192
- | lrt | `ls -1Fcrt` | Order Files Based on Last Modified Time (In Reverse Order). |
193
- | lS | `ls -1FSsh` | Order Files Based on Last Modified Time and size. |
194
- | lsd | `ls -l | grep "^d"` | Display only directories. |
195
- | lt | `ls -ltFh` | Display Files long list, sorted by date, show type, human readable. |
196
- | ltr | `ls -ltr` | Sort by date, most recent last. |
197
- | lu | `ls -ltur` | Sort by/show access time,most recent last. |
198
- | lx | `ls -lXB` | Sort by extension. |
199
-
200
- #### 3.4 Networking aliases
201
-
202
- | Alias | Command | Description |
203
- |-----------|---------------------|-------------------------------------------------------------|
204
- | ipInfo0 | `ipconfig getpacket en0` | Get info on connections for en0. |
205
- | ipInfo1 | `ipconfig getpacket en1` | Get info on connections for en1. |
206
- | lsock | `sudo /usr/sbin/lsof -i -P` | Display open sockets. |
207
- | lsockTCP | `sudo /usr/sbin/lsof -nP | grep TCP` | Display only open TCP sockets. |
208
- | lsockUDP | `sudo /usr/sbin/lsof -nP | grep UDP` | Display only open UDP sockets. |
209
- | lsof | `lsof -i` | Show all open TCP/IP sockets. |
210
- | mic | `sudo lsof -i | grep LISTEN` | Listening to all connections. |
211
- | op | `sudo lsof -i -P` | List of open ports. |
212
- | wip | `dig +short myip.opendns.com @resolver1.opendns.com` | Public facing IP Address. |
213
-
214
- #### 3.5 Quicker navigation aliases
215
-
216
- | Alias | Command | Description |
217
- |-----------|---------------------|-------------------------------------------------------------|
218
- | ~ | `cd ~` | Change to $HOME directory. |
219
- | cd. | `cd -P .` | Show true (physical) path instead of symbolic links in the path. |
220
- | cd/ | `cd /; ls` | Change to / root directory and show the directory content. |
221
- | gitRoot | `cd "$(git rev-parse --show-toplevel)"` | Change to Git Root directory. |
222
- | . | `cd ..; ls` | Move back to one level and show the directory content. |
223
- | .. | `cd ../..; ls` | Move back to two levels and show the directory content. |
224
- | ... | `cd ../../..; ls` | Move back to three levels and show the directory content. |
225
- | .... | `cd ../../../..; ls` | Move back to four levels and show the directory content. |
226
- | ..... | `cd ../../../../..; ls` | Move back to five levels and show the directory content. |
227
- | cd . | `cd .; ls` | Move back to one level and show the directory content. |
228
- | cd .. | `cd ..; ls` | Move back to two levels and show the directory content. |
229
- | cd ... | `cd ...; ls` | Move back to three levels and show the directory content. |
230
- | cd .... | `cd ....; ls` | Move back to four levels and show the directory content. |
231
- | cd ..... | `cd .....; ls` | Move back to five levels and show the directory content. |
232
- | - | `cd -; ls` | Navigate to the previous one level directory (or back) and show the directory content. |
233
- | -- | `cd -2; ls` | Navigate to the previous two levels directory (or back) and show the directory content. |
234
- | --- | `cd -3; ls` | Navigate to the previous three levels directory (or back) and show the directory content. |
235
- | ---- | `cd -4; ls` | Navigate to the previous four levels directory (or back) and show the directory content. |
236
- | ----- | `cd -5; ls` | Navigate to the previous five levels directory (or back) and show the directory content. |
237
- | 1 | `cd -; ls` | Navigate to the previous one level directory (or back) and show the directory content. |
238
- | 2 | `cd -2; ls` | Navigate to the previous two levels directory (or back) and show the directory content. |
239
- | 3 | `cd -3; ls` | Navigate to the previous three levels directory (or back) and show the directory content. |
240
- | 4 | `cd -4; ls` | Navigate to the previous four levels directory (or back) and show the directory content. |
241
- | 5 | `cd -5; ls` | Navigate to the previous five levels directory (or back) and show the directory content. |
242
- | 1. | `cd ..; ls` | Move back to one level and show the directory content. |
243
- | 2. | `cd ../..; ls` | Move back to two levels and show the directory content. |
244
- | 3. | `cd ../../..; ls` | Move back to three levels and show the directory content. |
245
- | 4. | `cd ../../../..; ls` | Move back to four levels and show the directory content. |
246
- | 5. | `cd ../../../../..; ls` | Move back to five levels and show the directory content. |
247
- | cd 1. | `cd ..; ls` | Move back to one level and show the directory content. |
248
- | cd 2. | `cd ../..; ls` | Move back to two levels and show the directory content. |
249
- | cd 3. | `cd ../../..; ls` | Move back to three levels and show the directory content. |
250
- | cd 4. | `cd ../../../..; ls` | Move back to four levels and show the directory content. |
251
- | cd 5. | `cd ../../../../..; ls` | Move back to five levels and show the directory content. |
252
- | less | `less -R` | Make less always work with colored input. |
253
- | openDir | `open -a Finder ./` | Open any folder from macOS Terminal. |
254
- | path | `echo "$PATH" | tr ":" "\n" | nl` | Display or print $PATH variable. |
255
- | so | `setopt` | Lists the active options. |
256
- | uso | `unsetopt` | Lists the inactive options. |
257
-
258
- #### 3.6 Jekyll Aliases
259
-
260
- | Alias | Command | Description |
261
- |-----------|---------------------|-------------------------------------------------------------|
262
- | jkd | `JEKYLL_ENV=development bundle exec jekyll serve --watch --trace` | Does a development build of the site to `_site` and runs a local development server. |
263
- | jkb | `JEKYLL_ENV=development bundle exec jekyll build` | Performs a one off build your site to `./_site`. |
264
- | jkc | `JEKYLL_ENV=development bundle exec jekyll clean` | Removes all generated files: destination folder, metadata file, Sass and Jekyll caches. |
265
- | jkl | `JEKYLL_ENV=development bundle exec jekyll serve --livereload` | Does a development build of the site to '_site' and runs a local development server. |
266
- | jko | `open http://localhost:4000` | Open local development server. |
267
- | jkp | `JEKYLL_ENV=production bundle exec jekyll serve --watch --trace` | Does a production build of the site to '_site' and runs a local development server. |
268
-
269
- ## Global aliases
270
-
271
- These aliases are expanded in any position in the command line, meaning you can use them even at the
272
- end of the command you've typed. Examples:
273
-
274
- Quickly pipe to less:
275
-
276
- ```zsh
277
- $ ls -l /var/log L
278
- # will run
279
- $ ls -l /var/log | less
280
- ```
281
-
282
- Silences stderr output:
283
-
284
- ```zsh
285
- $ find . -type f NE
286
- # will run
287
- $ find . -type f 2>/dev/null
288
- ```
289
-
290
- | Alias | Command | Description |
291
- |-------|-----------------------------|-------------------------------------------------------------|
292
- | H | `\| head` | Pipes output to head which outputs the first part of a file |
293
- | T | `\| tail` | Pipes output to tail which outputs the last part of a file |
294
- | G | `\| grep` | Pipes output to grep to search for some word |
295
- | L | `\| less` | Pipes output to less, useful for paging |
296
- | M | `\| most` | Pipes output to more, useful for paging |
297
- | LL | `2>&1 \| less` | Writes stderr to stdout and passes it to less |
298
- | CA | `2>&1 \| cat -A` | Writes stderr to stdout and passes it to cat |
299
- | NE | `2 > /dev/null` | Silences stderr |
300
- | NUL | `> /dev/null 2>&1` | Silences both stdout and stderr |
301
- | P | `2>&1\| pygmentize -l pytb` | Writes stderr to stdout and passes it to pygmentize |
302
-
303
- ## File extension aliases
304
-
305
- These are special aliases that are triggered when a file name is passed as the command. For example,
306
- if the pdf file extension is aliased to `acroread` (a popular Linux pdf reader), when running `file.pdf`
307
- that file will be open with `acroread`.
308
-
309
- ### Reading Docs
310
-
311
- | Alias | Command | Description |
312
- |-------|-------------|-------------------------------------|
313
- | pdf | `acroread` | Opens up a document using acroread |
314
- | ps | `gv` | Opens up a .ps file using gv |
315
- | dvi | `xdvi` | Opens up a .dvi file using xdvi |
316
- | chm | `xchm` | Opens up a .chm file using xchm |
317
- | djvu | `djview` | Opens up a .djvu file using djview |
318
-
319
- ### Listing files inside a packed file
320
-
321
- | Alias | Command | Description |
322
- |---------|-------------|-------------------------------------|
323
- | zip | `unzip -l` | Lists files inside a .zip file |
324
- | rar | `unrar l` | Lists files inside a .rar file |
325
- | tar | `tar tf` | Lists files inside a .tar file |
326
- | tar.gz | `echo` | Lists files inside a .tar.gz file |
327
- | ace | `unace l` | Lists files inside a .ace file |
File without changes