@sebastienrousseau/dotfiles 0.2.465 → 0.2.468

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 (167) hide show
  1. package/LICENSE +20 -17
  2. package/README.md +150 -155
  3. package/dist/Makefile +2 -2
  4. package/dist/bin/backup.js.map +1 -1
  5. package/dist/bin/constants.d.ts +2 -2
  6. package/dist/bin/constants.js +1 -1
  7. package/dist/bin/dotfiles.d.ts +2 -2
  8. package/dist/bin/dotfiles.d.ts.map +1 -1
  9. package/dist/bin/dotfiles.js +1 -2
  10. package/dist/bin/dotfiles.js.map +1 -1
  11. package/dist/bin/download.d.ts +2 -2
  12. package/dist/bin/download.d.ts.map +1 -1
  13. package/dist/bin/download.js +1 -2
  14. package/dist/bin/download.js.map +1 -1
  15. package/dist/bin/index.js +1 -1
  16. package/dist/bin/index.js.map +1 -1
  17. package/dist/filesizes.txt +92 -94
  18. package/dist/lib/README.md +9 -5
  19. package/dist/lib/aliases/README.md +16 -8
  20. package/dist/lib/aliases/archives/README.md +29 -26
  21. package/dist/lib/aliases/archives/archives.aliases.sh +148 -145
  22. package/dist/lib/aliases/cd/README.md +46 -44
  23. package/dist/lib/aliases/cd/cd.aliases.sh +63 -29
  24. package/dist/lib/aliases/chmod/README.md +8 -4
  25. package/dist/lib/aliases/chmod/chmod.aliases.sh +60 -42
  26. package/dist/lib/aliases/clear/README.md +8 -4
  27. package/dist/lib/aliases/clear/clear.aliases.sh +57 -28
  28. package/dist/lib/aliases/configuration/README.md +8 -4
  29. package/dist/lib/aliases/configuration/configuration.aliases.sh +56 -30
  30. package/dist/lib/aliases/default/README.md +8 -4
  31. package/dist/lib/aliases/default/default.aliases.sh +99 -86
  32. package/dist/lib/aliases/dig/README.md +8 -4
  33. package/dist/lib/aliases/dig/dig.aliases.sh +3 -3
  34. package/dist/lib/aliases/disk-usage/README.md +8 -4
  35. package/dist/lib/aliases/disk-usage/du.aliases.sh +2 -2
  36. package/dist/lib/aliases/editor/README.md +8 -4
  37. package/dist/lib/aliases/editor/editor.aliases.sh +3 -3
  38. package/dist/lib/aliases/find/README.md +8 -4
  39. package/dist/lib/aliases/find/find.aliases.sh +3 -3
  40. package/dist/lib/aliases/gcloud/README.md +8 -4
  41. package/dist/lib/aliases/gcloud/gcloud.aliases.sh +3 -3
  42. package/dist/lib/aliases/git/README.md +8 -4
  43. package/dist/lib/aliases/git/git.aliases.sh +2 -2
  44. package/dist/lib/aliases/gnu/README.md +8 -4
  45. package/dist/lib/aliases/gnu/gnucoreutils-aliases.sh +1 -1
  46. package/dist/lib/aliases/heroku/README.md +8 -4
  47. package/dist/lib/aliases/heroku/heroku.aliases.sh +2 -2
  48. package/dist/lib/aliases/interactive/README.md +29 -17
  49. package/dist/lib/aliases/interactive/interactive.aliases.sh +14 -17
  50. package/dist/lib/aliases/jekyll/README.md +8 -4
  51. package/dist/lib/aliases/jekyll/jekyll.aliases.sh +3 -3
  52. package/dist/lib/aliases/list/README.md +8 -4
  53. package/dist/lib/aliases/list/list.aliases.sh +2 -2
  54. package/dist/lib/aliases/{macos → macOS}/README.md +8 -4
  55. package/dist/lib/aliases/{macos → macOS}/macos.aliases.sh +2 -2
  56. package/dist/lib/aliases/make/README.md +8 -4
  57. package/dist/lib/aliases/make/make.aliases.sh +2 -2
  58. package/dist/lib/aliases/mkdir/README.md +8 -4
  59. package/dist/lib/aliases/mkdir/mkdir.aliases.sh +2 -2
  60. package/dist/lib/aliases/npm/README.md +8 -4
  61. package/dist/lib/aliases/npm/npm.aliases.sh +2 -2
  62. package/dist/lib/aliases/permission/README.md +8 -4
  63. package/dist/lib/aliases/permission/permission.aliases.sh +2 -2
  64. package/dist/lib/aliases/pnpm/README.md +8 -4
  65. package/dist/lib/aliases/pnpm/pnpm.aliases.sh +2 -2
  66. package/dist/lib/aliases/ps/README.md +8 -4
  67. package/dist/lib/aliases/ps/ps.aliases.sh +2 -2
  68. package/dist/lib/aliases/rsync/README.md +8 -4
  69. package/dist/lib/aliases/rsync/rsync.aliases.sh +2 -2
  70. package/dist/lib/aliases/rust/README.md +8 -4
  71. package/dist/lib/aliases/rust/rust.aliases.sh +23 -23
  72. package/dist/lib/aliases/subversion/README.md +8 -4
  73. package/dist/lib/aliases/subversion/subversion.aliases.sh +2 -2
  74. package/dist/lib/aliases/sudo/README.md +8 -4
  75. package/dist/lib/aliases/sudo/sudo.aliases.sh +2 -2
  76. package/dist/lib/aliases/tmux/README.md +8 -4
  77. package/dist/lib/aliases/tmux/tmux.aliases.sh +2 -2
  78. package/dist/lib/aliases/update/README.md +8 -4
  79. package/dist/lib/aliases/update/update.aliases.sh +2 -2
  80. package/dist/lib/aliases/uuid/README.md +8 -4
  81. package/dist/lib/aliases/uuid/uuid.aliases.sh +2 -2
  82. package/dist/lib/aliases/wget/README.md +8 -4
  83. package/dist/lib/aliases/wget/wget.aliases.sh +2 -2
  84. package/dist/lib/aliases.sh +42 -12
  85. package/dist/lib/configurations/README.md +8 -4
  86. package/dist/lib/configurations/bash/bashrc +3 -3
  87. package/dist/lib/configurations/curl/curlrc +2 -2
  88. package/dist/lib/configurations/default/color.sh +2 -2
  89. package/dist/lib/configurations/default/constants.sh +3 -3
  90. package/dist/lib/configurations/default/editor.sh +2 -2
  91. package/dist/lib/configurations/default/prompt.sh +2 -2
  92. package/dist/lib/configurations/input/inputrc +2 -2
  93. package/dist/lib/configurations/nano/nanorc +2 -2
  94. package/dist/lib/configurations/profile/profile +2 -2
  95. package/dist/lib/configurations/tmux/default +2 -2
  96. package/dist/lib/configurations/tmux/display +2 -2
  97. package/dist/lib/configurations/tmux/linux +2 -2
  98. package/dist/lib/configurations/tmux/navigation +2 -2
  99. package/dist/lib/configurations/tmux/panes +2 -2
  100. package/dist/lib/configurations/tmux/theme +3 -3
  101. package/dist/lib/configurations/tmux/tmux +2 -2
  102. package/dist/lib/configurations/vim/vimrc +1 -1
  103. package/dist/lib/configurations/wget/wgetrc +2 -2
  104. package/dist/lib/configurations/zsh/zshrc +11 -11
  105. package/dist/lib/configurations.sh +27 -9
  106. package/dist/lib/functions/README.md +12 -4
  107. package/dist/lib/functions/cdls.sh +2 -2
  108. package/dist/lib/functions/curlheader.sh +2 -2
  109. package/dist/lib/functions/curlstatus.sh +2 -2
  110. package/dist/lib/functions/curltime.sh +3 -3
  111. package/dist/lib/functions/encode64.sh +2 -2
  112. package/dist/lib/functions/environment.sh +2 -2
  113. package/dist/lib/functions/extract.sh +2 -2
  114. package/dist/lib/functions/freespace.sh +2 -2
  115. package/dist/lib/functions/genpwd.sh +4 -4
  116. package/dist/lib/functions/goto.sh +2 -2
  117. package/dist/lib/functions/hidehiddenfiles.sh +2 -2
  118. package/dist/lib/functions/hostinfo.sh +2 -2
  119. package/dist/lib/functions/hstats.sh +2 -2
  120. package/dist/lib/functions/httpdebug.sh +2 -2
  121. package/dist/lib/functions/keygen.sh +2 -2
  122. package/dist/lib/functions/last.sh +2 -2
  123. package/dist/lib/functions/logout.sh +2 -2
  124. package/dist/lib/functions/lowercase.sh +2 -2
  125. package/dist/lib/functions/matrix.sh +2 -2
  126. package/dist/lib/functions/mount_read_only.sh +2 -2
  127. package/dist/lib/functions/myproc.sh +2 -2
  128. package/dist/lib/functions/prependpath.sh +2 -2
  129. package/dist/lib/functions/ql.sh +2 -2
  130. package/dist/lib/functions/rd.sh +2 -2
  131. package/dist/lib/functions/remove_disk.sh +2 -2
  132. package/dist/lib/functions/ren.sh +2 -2
  133. package/dist/lib/functions/showhiddenfiles.sh +2 -2
  134. package/dist/lib/functions/size.sh +2 -2
  135. package/dist/lib/functions/stopwatch.sh +2 -2
  136. package/dist/lib/functions/uppercase.sh +2 -2
  137. package/dist/lib/functions/view-source.sh +2 -2
  138. package/dist/lib/functions/vscode.sh +2 -2
  139. package/dist/lib/functions/whoisport.sh +2 -2
  140. package/dist/lib/functions/zipf.sh +2 -2
  141. package/dist/lib/functions.sh +27 -10
  142. package/dist/lib/history.sh +58 -21
  143. package/dist/lib/paths/ant/ant.paths.sh +2 -2
  144. package/dist/lib/paths/default/default.paths.sh +2 -2
  145. package/dist/lib/paths/homebrew/homebrew.paths.sh +2 -2
  146. package/dist/lib/paths/java/java.paths.sh +2 -2
  147. package/dist/lib/paths/maven/maven.paths.sh +2 -2
  148. package/dist/lib/paths/node/node.paths.sh +2 -2
  149. package/dist/lib/paths/nvm/nvm.paths.sh +2 -2
  150. package/dist/lib/paths/pnpm/pnpm.paths.sh +2 -2
  151. package/dist/lib/paths/python/python.paths.sh +2 -2
  152. package/dist/lib/paths/ruby/ruby.paths.sh +2 -2
  153. package/dist/lib/paths/tmux/tmux.paths.sh +2 -2
  154. package/dist/lib/paths.sh +28 -12
  155. package/dist/scripts/backup.sh +2 -2
  156. package/dist/scripts/banner.sh +2 -2
  157. package/dist/scripts/build.sh +2 -2
  158. package/dist/scripts/clean.sh +2 -2
  159. package/dist/scripts/compile.sh +2 -2
  160. package/dist/scripts/copy.sh +2 -2
  161. package/dist/scripts/dotfiles.sh +2 -2
  162. package/dist/scripts/download.sh +2 -2
  163. package/dist/scripts/help.sh +2 -2
  164. package/dist/scripts/ssh.sh +2 -2
  165. package/dist/scripts/unpack.sh +2 -2
  166. package/package.json +6 -5
  167. package/dist/lib/configurations/tmux/vi +0 -9
package/LICENSE CHANGED
@@ -1,26 +1,29 @@
1
+ # Dotfiles
2
+
1
3
  Dotfiles uses the following under the MIT License
2
4
 
3
5
  The MIT License (MIT)
4
6
 
5
- Copyright (c) 2022 Sebastien Rousseau
7
+ Copyright (c) 2023 Sebastien Rousseau
6
8
 
7
- Permission is hereby granted, free of charge, to any person obtaining a copy
8
- of this software and associated documentation files (the "Software"), to deal
9
- in the Software without restriction, including without limitation the rights
10
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- copies of the Software, and to permit persons to whom the Software is
12
- furnished to do so, subject to the following conditions:
9
+ Permission is hereby granted, free of charge, to any person obtaining a
10
+ copy of this software and associated documentation files (the "Software
11
+ "), to deal in the Software without restriction, including without
12
+ limitation the rights to use, copy, modify, merge, publish, distribute,
13
+ sublicense, and/or sell copies of the Software, and to permit persons to
14
+ whom the Software is furnished to do so, subject to the following
15
+ conditions:
13
16
 
14
- The above copyright notice and this permission notice shall be included in all
15
- copies or substantial portions of the Software.
17
+ The above copyright notice and this permission notice shall be included
18
+ in all copies or substantial portions of the Software.
16
19
 
17
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
20
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- SOFTWARE.
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
23
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
27
 
25
28
  Dotfiles uses the following under the GPL-3.0 license:
26
29
 
@@ -1260,7 +1263,7 @@ Dotfiles uses the following under the Apache License Version 2.0:
1260
1263
 
1261
1264
  ==============================================================
1262
1265
 
1263
- # This product also include the following sof§tware
1266
+ ## This product also include the following software
1264
1267
 
1265
1268
  QRCode for JavaScript
1266
1269
 
package/README.md CHANGED
@@ -1,29 +1,39 @@
1
- <!-- markdownlint-disable MD033 MD041 -->
1
+ <!-- markdownlint-disable MD033 MD041 MD043 -->
2
2
 
3
- <img src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
4
- alt="dotfiles logo" width="261" align="right" />
3
+ <img
4
+ src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
5
+ alt="dotfiles logo"
6
+ width="261"
7
+ align="right"
8
+ />
5
9
 
6
10
  <!-- markdownlint-enable MD033 MD041 -->
7
11
 
8
- # Dotfiles (v0.2.465)
12
+ # Dotfiles (v0.2.468)
9
13
 
10
14
  Simply designed to fit your shell life 🐚
11
15
 
16
+ <!-- markdownlint-disable MD033 MD041 MD043 -->
17
+ <center>
18
+ <!-- markdownlint-enable MD033 MD041 -->
19
+
12
20
  ![Dotfiles banner][banner]
13
21
 
14
- [![Codacy][codacy-grade]][codacy-url]
15
- [![Contributors][contributors-shield]][contributors-url]
16
- [![Forks][forks-shield]][forks-url]
17
- [![License][license]][license-url]
18
- [![Love][love]][website-url]
22
+ [![Codacy][codacy-grade]][06]
23
+ [![Contributors][contributors-shield]][14]
24
+ [![Forks][forks-shield]][13]
25
+ [![License][license]][02]
26
+ [![Love][love]][00]
19
27
 
20
- • [Website][website-url] • [Documentation][github-url]
21
- • [Report Bug][issues-url] • [Request Feature][issues-url]
22
- • [Contributing Guidelines][contributing-url]
28
+ • [Website][00] • [Documentation][16]
29
+ • [Report Bug][17] • [Request Feature][17]
30
+ • [Contributing Guidelines][05]
23
31
 
24
- ![divider][divider]
32
+ <!-- markdownlint-disable MD033 MD041 MD043 -->
33
+ </center>
34
+ <!-- markdownlint-enable MD033 MD041 -->
25
35
 
26
- ## Welcome to Dotfiles (v0.2.465) 👋
36
+ ![divider][divider]
27
37
 
28
38
  ## Overview 📖
29
39
 
@@ -37,17 +47,17 @@ directory allows you to easily setup your development environment across
37
47
  numerous computers and operating systems, ensuring consistency and
38
48
  productivity no matter where you work.
39
49
 
40
- <!-- markdownlint-disable MD033 MD041 -->
50
+ <!-- markdownlint-disable MD033 MD041 MD043 -->
41
51
  <br>
42
52
  <center>
43
53
  <!-- markdownlint-enable MD033 MD041 -->
44
54
 
45
55
  [![Getting Started][getting_started]][getting-started-url]
46
- [![Download Dotfiles v0.2.465][download_button]][download-url]
56
+ [![Download Dotfiles v0.2.468][download_button]][12]
47
57
 
48
- <!-- markdownlint-disable MD033 MD041 -->
58
+ <!-- markdownlint-disable MD033 MD041 MD043 -->
49
59
  </center>
50
- <br>
60
+ <br />
51
61
  <!-- markdownlint-enable MD033 MD041 -->
52
62
 
53
63
  ## Features ✨
@@ -96,34 +106,33 @@ know.
96
106
 
97
107
  - macOS 10.15 or later
98
108
  - Windows 10 or later
99
- - A Debian based distribution ([Debian][debian-url],
100
- [Ubuntu][ubuntu-url], [PoP!_OS][pop-url], [Zorin OS][zorin-url],
101
- [Q4OS][q4-url], [Kali Linux][kali-url], [Devuan][devuan-url],
102
- [Deepin][deepin-url], etc.)
109
+ - A Debian based distribution ([Debian][08], [Ubuntu][27],
110
+ [PoP!_OS][22], [Zorin OS][29], [Q4OS][23], [Kali Linux][18],
111
+ [Devuan][10], [Deepin][09], etc.)
103
112
 
104
113
  #### 2) Software Requirements
105
114
 
106
115
  The following programs must be installed on your system to install
107
116
  Dotfiles:
108
117
 
109
- - [**Bash**][bash-url] - a shell, or command language interpreter, for
110
- the GNU operating system.
111
- - Or [**Zsh**][zsh-url] - a shell designed for interactive use, although
112
- it is also a powerful scripting language.
113
- - [**Git**][git-url] - a free and open source distributed version
114
- control system designed to handle everything from small to very large
115
- projects with speed and efficiency.
116
- - [**Curl**][curl-url] - a command line tool for transferring data with
117
- URL syntax.
118
- - [**Wget**][wget-url] - a free software package for retrieving files
119
- using HTTP, HTTPS and FTP, the most widely-used Internet protocols.
120
- - [**Make**][make-url] - a tool which controls the generation of
121
- executables and other non-source files of a program from the
122
- program's source files.
123
- - [**Shell**][shell-url] - a shell command line interpreter program for
124
- Unix-like operating systems.
125
- - [**PnPM**][pnpm-url] - a package manager for JavaScript and Node.js.
126
- It is fast, disk space efficient and reliable.
118
+ - [**Bash**][03] - a shell, or command language interpreter, for the GNU
119
+ operating system.
120
+ - Or [**Zsh**][30] - a shell designed for interactive use, although it
121
+ is also a powerful scripting language.
122
+ - [**Git**][15] - a free and open source distributed version control
123
+ system designed to handle everything from small to very large projects
124
+ with speed and efficiency.
125
+ - [**Curl**][07] - a command line tool for transferring data with URL
126
+ syntax.
127
+ - [**Wget**][28] - a free software package for retrieving files using
128
+ HTTP, HTTPS and FTP, the most widely-used Internet protocols.
129
+ - [**Make**][19] - a tool which controls the generation of executables
130
+ and other non-source files of a program from the program's source
131
+ files.
132
+ - [**Shell**][26] - a shell command line interpreter program for Unix-
133
+ like operating systems.
134
+ - [**PnPM**][21] - a package manager for JavaScript and Node.js. It is
135
+ fast, disk space efficient and reliable.
127
136
 
128
137
  #### 3) Font Requirements
129
138
 
@@ -150,8 +159,8 @@ sudo apt install fonts-roboto-mono-for-powerline
150
159
 
151
160
  To read the documentation for Dotfiles, please visit:
152
161
 
153
- - [Dotfiles website][website-url]
154
- - [Dotfiles Docs GitHub repository][docs-url]
162
+ - [Dotfiles website][00]
163
+ - [Dotfiles Docs GitHub repository][11]
155
164
 
156
165
  ![divider][divider]
157
166
 
@@ -159,24 +168,22 @@ To read the documentation for Dotfiles, please visit:
159
168
 
160
169
  ### 1️⃣ Download Dotfiles
161
170
 
162
- You can download the latest version (v0.2.465) with the following options:
171
+ You can download the latest version (v0.2.468) with the following
172
+ options:
163
173
 
164
- - [**Manual download**][releases-url] - **The easiest way to install Dotfiles.**
165
- - [**Install with PnPM**][package-url]
166
- `pnpm i @wwdseb/dotfiles`.
167
- - [**Install with Npm**][package-url]
168
- `npm install @wwdseb/dotfiles`.
169
- - [**Install with Yarn**][package-url]
170
- `yarn add @wwdseb/dotfiles`.
171
- - **Clone the main repository** to get all source files including build scripts:
172
- `git clone https://github.com/sebastienrousseau/dotfiles.git`. This will clone
173
- the latest version of the Dotfiles repository.
174
+ - [**Manual download**][24] - **The easiest way to install Dotfiles.**
175
+ - [**Install with PnPM**][20] `pnpm i @sebastienrousseau/dotfiles`.
176
+ - [**Install with Npm**][20] `npm install @sebastienrousseau/dotfiles`.
177
+ - [**Install with Yarn**][20] `yarn add @sebastienrousseau/dotfiles`.
178
+ - **Clone the main repository** to get all source files including build
179
+ scripts: `git clone https://github.com/sebastienrousseau/dotfiles.git`
180
+ . This will clone the latest version of the Dotfiles repository.
174
181
 
175
182
  ### 2️⃣ Back Up Your Existing Data
176
183
 
177
- Before installing Dotfiles, we strongly recommend that you back up your existing
178
- data. The Dotfiles installer will try to automatically backup any previous
179
- installation of known dotfiles into a backup directory
184
+ Before installing Dotfiles, we strongly recommend that you back up your
185
+ existing data. The Dotfiles installer will try to automatically backup
186
+ any previous installation of known dotfiles into a backup directory
180
187
  `$HOME/dotfiles_backup`.
181
188
 
182
189
  The backup files are the following:
@@ -208,22 +215,24 @@ The backup files are the following:
208
215
  cacert.pem
209
216
  ```
210
217
 
211
- It is always a good idea to backup as there might be situations in which you
212
- could be required to restore your previous installation.
218
+ It is always a good idea to backup as there might be situations in which
219
+ you could be required to restore your previous installation.
213
220
 
214
221
  ### 3️⃣ Try it out and let us know what you think
215
222
 
216
- To install the latest version of the dotfiles, run the following command:
223
+ To install the latest version of the dotfiles, run the following
224
+ command:
217
225
 
218
- #### Using make (easiest)
226
+ #### Using make (easiest and recommended)
219
227
 
220
- The easiest way to install Dotfiles is to use the `make` command. This will
221
- install the latest version of the dotfiles and will automatically backup
222
- any existing dotfiles you may have into a backup directory
228
+ The easiest way to install Dotfiles is to use the `make` command. This
229
+ will install the latest version of the dotfiles and will automatically
230
+ backup any existing dotfiles you may have into a backup directory
223
231
  `$HOME/dotfiles_backup`.
224
232
 
225
- The installer will check if you have PnPM installed to switch to the PnPM
226
- installation method. If not, it will fallback to equivalent shell scripts.
233
+ The installer will check if you have PnPM installed to switch to the
234
+ PnPM installation method. If not, it will fallback to equivalent shell
235
+ scripts.
227
236
 
228
237
  Switch to the `dist` directory and run:
229
238
 
@@ -231,7 +240,8 @@ Switch to the `dist` directory and run:
231
240
  make build
232
241
  ```
233
242
 
234
- You can also just check the installer options available, by simply running:
243
+ You can also just check the installer options available, by simply
244
+ running:
235
245
 
236
246
  ```bash
237
247
  make help
@@ -241,20 +251,20 @@ make help
241
251
 
242
252
  If you want to install Dotfiles using Node.js, you can run the following
243
253
  command in the `dist` directory located in your
244
- `node_modules/@wwdseb/dotfiles/dist` directory:
254
+ `node_modules/@sebastienrousseau/dotfiles/dist` directory:
245
255
 
246
256
  ```bash
247
257
  node .
248
258
  ```
249
259
 
250
- This will install the latest version of the dotfiles and will automatically
251
- backup any existing dotfiles you may have into a backup directory
252
- `$HOME/dotfiles_backup`.
260
+ This will install the latest version of the dotfiles and will
261
+ automatically backup any existing dotfiles you may have into a backup
262
+ directory `$HOME/dotfiles_backup`.
253
263
 
254
264
  #### Using PnPM (highly recommended if you have PnPM installed)
255
265
 
256
- PnPM is a key dependency of the dotfiles package. It will help you install the
257
- dotfiles rapidly and very efficiently.
266
+ PnPM is a key dependency of the dotfiles package. It will help you
267
+ install the dotfiles rapidly and very efficiently.
258
268
 
259
269
  Switch to the `dist` directory and run:
260
270
 
@@ -262,50 +272,52 @@ Switch to the `dist` directory and run:
262
272
  pnpm run build
263
273
  ```
264
274
 
265
- This will install the latest version of the dotfiles and will automatically
266
- backup any existing dotfiles you may have into a backup directory
267
- `$HOME/dotfiles_backup`.
275
+ This will install the latest version of the dotfiles and will
276
+ automatically backup any existing dotfiles you may have into a backup
277
+ directory `$HOME/dotfiles_backup`.
268
278
 
269
279
  ### Post installation
270
280
 
271
281
  Following the installation, you can verify that the dotfiles package is
272
282
  installed in the following directory `$HOME/dotfiles_backup`.
273
283
 
274
- Just quit your terminal and restart it. If the installation is successful, you
275
- should be able to see a new interface of your terminal and be able to start
276
- using the dotfiles aliases and other configurations.
284
+ Just quit your terminal and restart it. If the installation is
285
+ successful, you should be able to see a new interface of your terminal
286
+ and be able to start using the dotfiles aliases and other
287
+ configurations.
277
288
 
278
- Please refer to the [documentation][docs-url] for more information.
289
+ Please refer to the [documentation][11] for more information.
279
290
 
280
291
  ![divider][divider]
281
292
 
282
293
  ## Releases 🔗
283
294
 
284
- Releases are available on the [GitHub releases page][releases-url].
295
+ Releases are available on the [GitHub releases page][24].
285
296
 
286
297
  ![divider][divider]
287
298
 
288
299
  ## Semantic versioning policy 🚥
289
300
 
290
- For transparency into our release cycle and in striving to maintain backward
291
- compatibility, `Dotfiles` follows [Semantic Versioning][semver-url].
301
+ For transparency into our release cycle and in striving to maintain
302
+ backward compatibility, `Dotfiles` follows
303
+ [Semantic Versioning][25].
292
304
 
293
305
  ![divider][divider]
294
306
 
295
307
  ## History
296
308
 
297
- - See [Dotfiles Release][releases-url] for a list of changes.
309
+ - See [Dotfiles Release][24] for a list of changes.
298
310
 
299
- ## ✅ Changelog
311
+ ## Changelog
300
312
 
301
- - [GitHub Releases][releases-url] are used for changelogs.
313
+ - [GitHub Releases][24] are used for changelogs.
302
314
 
303
315
  ![divider][divider]
304
316
 
305
317
  ## 📖 Code of Conduct
306
318
 
307
- We are committed to preserving and fostering a diverse, welcoming community.
308
- Please read our [Code of Conduct][code-of-conduct-url].
319
+ We are committed to preserving and fostering a diverse, welcoming
320
+ community. Please read our [Code of Conduct][04].
309
321
 
310
322
  ![divider][divider]
311
323
 
@@ -313,91 +325,74 @@ Please read our [Code of Conduct][code-of-conduct-url].
313
325
 
314
326
  - We believe perfection must consider everything.
315
327
  - We take our passion beyond code into our daily practices.
316
- - We are just obsessed about creating and delivering exceptional solutions.
328
+ - We are just obsessed about creating and delivering exceptional
329
+ solutions.
317
330
 
318
331
  ![divider][divider]
319
332
 
320
333
  ## Contribution 🤝
321
334
 
322
- Thank you for using Dotfiles! If you like the library, it would be
323
- great if you can give it a star ⭐ on [Github][github-url].
324
-
325
- There are also many ways in which you can participate in this project, for
326
- example:
335
+ We welcome contributions to `Dotfiles`. Please see the
336
+ [contributing guidelines][05] for more information.
327
337
 
328
- - [Submit bugs and feature requests][issues-url], and help us verify as they are
329
- checked in,
330
- - Review [source code changes][download-url], and help us improve our code quality,
331
- - Review the [documentation][docs-url] and make pull requests for anything from
332
- typos to additional and new content.
333
-
334
- Please read carefully through our
335
- [Contributing Guidelines][contributing-url]
336
- for further details on the process for submitting pull requests to us.
338
+ Unless you explicitly state otherwise, any contribution intentionally
339
+ submitted for inclusion in the work by you, as defined in the
340
+ Apache-2.0 license, shall be dual licensed as above, without any
341
+ additional terms or conditions.
337
342
 
338
343
  ![divider][divider]
339
344
 
340
345
  ## License 📝
341
346
 
342
- This project is licensed under the [MIT License][license-url] file for details.
347
+ The project is licensed under the terms of both the MIT license and the
348
+ Apache License (Version 2.0).
343
349
 
344
- [![FOSSA Status][fossa]][fossa-url]
350
+ - [Apache License, Version 2.0][01]
351
+ - [MIT license][02]
345
352
 
346
353
  ![divider][divider]
347
354
 
348
- ## Acknowledgements 💙
349
-
350
- [Dotfiles][website-url] is beautifully crafted by these people and a bunch of
351
- awesome [contributors][contributors-url]
352
-
353
- | [![sr]][sr-url] | [![gr]][gr-url] |
354
- |:-----------------:|:------------------------------------:|
355
- | [Sebastien Rousseau][sr-url]| [Graham Colgate][gr-url] |
356
-
357
- [bash-url]: https://www.gnu.org/software/bash/
358
- [codacy-url]:https://www.codacy.com/gh/sebastienrousseau/dotfiles/dashboard
359
- [code-of-conduct-url]: https://github.com/sebastienrousseau/dotfiles/blob/master/.github/CODE-OF-CONDUCT.md
360
- [contributing-url]: https://github.com/sebastienrousseau/dotfiles/blob/master/.github/CONTRIBUTING.md
361
- [curl-url]: https://curl.se/
362
- [debian-url]: https://www.debian.org/
363
- [deepin-url]: https://www.deepin.org/en/
364
- [devuan-url]: https://devuan.org/
365
- [docs-url]: https://github.com/sebastienrousseau/dotfiles/docs
366
- [download-url]: https://github.com/sebastienrousseau/dotfiles/archive/refs/tags/v0.2.465.tar.gz
367
- [forks-url]: https://github.com/sebastienrousseau/dotfiles/network/members
368
- [fossa-url]: https://app.fossa.io/projects/git%2Bgithub.com%2Freedia%2Fdotfiles?ref=badge_large
355
+ [00]: https://dotfiles.io
356
+ [01]: https://opensource.org/license/apache-2-0/ "Apache License, Version 2.0"
357
+ [02]: https://opensource.org/licenses/MIT "The MIT License"
358
+ [03]: https://www.gnu.org/software/bash/ "GNU Bash"
359
+ [04]: https://github.com/sebastienrousseau/dotfiles/blob/master/.github/CODE-OF-CONDUCT.md "Code of Conduct"
360
+ [05]: https://github.com/sebastienrousseau/dotfiles/blob/master/.github/CONTRIBUTING.md "Contributing Guidelines"
361
+ [06]:https://www.codacy.com/gh/sebastienrousseau/dotfiles/dashboard "Codacy"
362
+ [07]: https://curl.se/ "cURL"
363
+ [08]: https://www.debian.org/ "Debian"
364
+ [09]: https://www.deepin.org/en/ "Deepin"
365
+ [10]: https://devuan.org/ "Devuan"
366
+ [11]: https://github.com/sebastienrousseau/dotfiles/docs "Documentation"
367
+ [12]: https://github.com/sebastienrousseau/dotfiles/archive/refs/tags/v0.2.468.tar.gz "Download Dotfiles v0.2.468"
368
+ [13]: https://github.com/sebastienrousseau/dotfiles/network/members "List of members"
369
+ [14]: https://github.com/sebastienrousseau/dotfiles/graphs/contributors "List of contributors"
370
+ [15]: https://git-scm.com/ "Git"
371
+ [16]: https://github.com/sebastienrousseau/dotfiles "Dotfiles"
372
+ [17]: https://github.com/sebastienrousseau/dotfiles/issues "Issues"
373
+ [18]: https://www.kali.org/ "Kali Linux"
374
+ [19]: https://www.gnu.org/software/make/ "GNU Make"
375
+ [20]:https://www.npmjs.com/package/@sebastienrousseau/dotfiles "Dotfiles on NPM"
376
+ [21]: https://pnpm.io "PnPM"
377
+ [22]: https://pop.system76.com/ "Pop!_OS"
378
+ [23]: https://q4os.org/ "Q4OS"
379
+ [24]: https://github.com/sebastienrousseau/dotfiles/releases "Dotfiles Releases"
380
+ [25]: http://semver.org/ "Semantic Versioning"
381
+ [26]: https://www.gnu.org/software/shell/ "GNU Shell"
382
+ [27]: https://ubuntu.com/ "Ubuntu"
383
+ [28]: https://www.gnu.org/software/wget/ "GNU Wget"
384
+ [29]: https://zorinos.com/ "Zorin OS"
385
+ [30]: https://www.zsh.org/ "Zsh"
386
+
369
387
  [getting-started-url]: https://github.com/sebastienrousseau/dotfiles#getting-started
370
- [git-url]: https://git-scm.com/
371
- [github-url]: https://github.com/sebastienrousseau/dotfiles
372
- [gr-url]: https://github.com/gramtech
373
- [issues-url]: https://github.com/sebastienrousseau/dotfiles/issues
374
- [kali-url]: https://www.kali.org/
375
- [license-url]: https://opensource.org/licenses/MIT
376
- [make-url]: https://www.gnu.org/software/make/
377
- [package-url]:https://www.npmjs.com/package/@wwdseb/dotfiles
378
- [pnpm-url]: https://pnpm.io
379
- [pop-url]: https://pop.system76.com/
380
- [q4-url]: https://q4os.org/
381
- [releases-url]: https://github.com/sebastienrousseau/dotfiles/releases
382
- [semver-url]: http://semver.org/
383
- [shell-url]: https://www.gnu.org/software/shell/
384
- [sr-url]: https://github.com/sebastienrousseau
385
- [ubuntu-url]: https://ubuntu.com/
386
- [website-url]: https://dotfiles.io
387
- [wget-url]: https://www.gnu.org/software/wget/
388
- [zorin-url]: https://zorinos.com/
389
- [zsh-url]: https://www.zsh.org/
390
-
391
- [banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
388
+
389
+ [banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg "Banner of Dotfiles"
392
390
  [codacy-grade]: https://img.shields.io/codacy/grade/634cfc4de08e492ebcbb341631066241?style=for-the-badge "Codacy grade"
393
391
  [contributors-shield]: https://img.shields.io/github/contributors/sebastienrousseau/dotfiles.svg?style=for-the-badge "Contributors"
394
- [contributors-url]: https://github.com/sebastienrousseau/dotfiles/graphs/contributors "List of contributors"
395
- [divider]: https://raw.githubusercontent.com/sebastienrousseau/dotfiles/master/assets/divider.svg "Divider"
396
- [download_button]: https://github.com/sebastienrousseau/dotfiles/raw/master/assets/button-secondary.svg "Download"
392
+
393
+ [divider]: https://kura.pro/common/images/elements/divider.svg "Divider"
394
+ [download_button]: https://kura.pro/common/images/buttons/button-secondary.svg "Download"
397
395
  [forks-shield]: https://img.shields.io/github/forks/sebastienrousseau/dotfiles.svg?style=for-the-badge "Forks"
398
- [fossa]: https://app.fossa.io/api/projects/git%2Bgithub.com%2Freedia%2Fdotfiles.svg?type=large "FOSSA"
399
- [getting_started]: https://github.com/sebastienrousseau/dotfiles/raw/master/assets/button-primary.svg "Getting Started"
400
- [gr]: https://avatars0.githubusercontent.com/u/35816108?s=117 "Graham Colgate"
396
+ [getting_started]: https://kura.pro/common/images/buttons/button-primary.svg "Getting Started"
401
397
  [license]: https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge\&color=ff69b4 "License"
402
- [love]: https://github.com/sebastienrousseau/dotfiles/raw/master/assets/made-with-love.svg "Made with Love"
403
- [sr]: https://avatars0.githubusercontent.com/u/1394998?s=117 "Sebastien Rousseau"
398
+ [love]: https://kura.pro/common/images/shields/made-with-love.svg "Made with Love"
package/dist/Makefile CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env make -f
2
2
 
3
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.465) - <https://dotfiles.io>
3
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.468) - <https://dotfiles.io>
4
4
  # Made with ♥ in London, UK by @wwdseb
5
- # Copyright (c) 2015-2023. All rights reserved
5
+ # Copyright (c) 2015-2024. All rights reserved
6
6
  # License: MIT
7
7
 
8
8
  .DEFAULT_GOAL := help
@@ -1 +1 @@
1
- {"version":3,"file":"backup.js","sourceRoot":"","sources":["../../bin/backup.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAe,MAAM,CAAC,GAAG,EAAE,IAAI;;;;;;oBACzB,EAAE,GAAG,OAAO,CAAC,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,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,OAAO,EAAE,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC;oBAC5D,QAAQ,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC;oBAEhC,WAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAA;;oBAA7C,SAA6C,CAAC;;;;;CAE/C;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC"}
@@ -1,7 +1,7 @@
1
1
  export const aliases: string[];
2
2
  export const config: string[];
3
3
  export const copies: string[];
4
- export const dotfile: "https://registry.npmjs.org/@wwdseb/dotfiles/-/dotfiles-0.2.465.tgz";
4
+ export const dotfile: "https://registry.npmjs.org/@wwdseb/dotfiles/-/dotfiles-0.2.468.tgz";
5
5
  export const tmux: "$DOTFILES/configurations/tmux/";
6
- export const version: "dotfiles-0.2.465.tgz";
6
+ export const version: "dotfiles-0.2.468.tgz";
7
7
  //# sourceMappingURL=constants.d.ts.map
@@ -1,2 +1,2 @@
1
1
 
2
- const version="dotfiles-0.2.465.tgz";const dotfile="https://registry.npmjs.org/@wwdseb/dotfiles/-/dotfiles-0.2.465.tgz";const aliases=[".bashrc","cacert.pem",".curlrc",".gemrc",".inputrc",".jshintrc",".nanorc",".profile",".tmux.conf",".vimrc",".wgetrc",".zshrc"];const copies=["lib/configurations/bash/bashrc","lib/configurations/curl/cacert.pem","lib/configurations/curl/curlrc","lib/configurations/gem/gemrc","lib/configurations/input/inputrc","lib/configurations/jshint/jshintrc","lib/configurations/nano/nanorc","lib/configurations/profile/profile","lib/configurations/tmux/tmux","lib/configurations/vim/vimrc","lib/configurations/wget/wgetrc","lib/configurations/zsh/zshrc",];const config=["lib/configurations/tmux/default","lib/configurations/tmux/display","lib/configurations/tmux/linux","lib/configurations/tmux/navigation","lib/configurations/tmux/panes","lib/configurations/tmux/theme","lib/configurations/tmux/vi"];const tmux="$DOTFILES/configurations/tmux/";module.exports={aliases,config,copies,dotfile,tmux,version};
2
+ const version="dotfiles-0.2.468.tgz";const dotfile="https://registry.npmjs.org/@wwdseb/dotfiles/-/dotfiles-0.2.468.tgz";const aliases=[".bashrc","cacert.pem",".curlrc",".gemrc",".inputrc",".jshintrc",".nanorc",".profile",".tmux.conf",".vimrc",".wgetrc",".zshrc"];const copies=["lib/configurations/bash/bashrc","lib/configurations/curl/cacert.pem","lib/configurations/curl/curlrc","lib/configurations/gem/gemrc","lib/configurations/input/inputrc","lib/configurations/jshint/jshintrc","lib/configurations/nano/nanorc","lib/configurations/profile/profile","lib/configurations/tmux/tmux","lib/configurations/vim/vimrc","lib/configurations/wget/wgetrc","lib/configurations/zsh/zshrc",];const config=["lib/configurations/tmux/default","lib/configurations/tmux/display","lib/configurations/tmux/linux","lib/configurations/tmux/navigation","lib/configurations/tmux/panes","lib/configurations/tmux/theme","lib/configurations/tmux/vi"];const tmux="$DOTFILES/configurations/tmux/";module.exports={aliases,config,copies,dotfile,tmux,version};
@@ -1,3 +1,3 @@
1
- declare function _exports(): Promise<void>;
2
- export = _exports;
1
+ export default main;
2
+ declare function main(): Promise<void>;
3
3
  //# sourceMappingURL=dotfiles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dotfiles.d.ts","sourceRoot":"","sources":["../../bin/dotfiles.js"],"names":[],"mappings":"AAqBiB,2CAwBhB"}
1
+ {"version":3,"file":"dotfiles.d.ts","sourceRoot":"","sources":["../../bin/dotfiles.js"],"names":[],"mappings":";AAwFA,uCASC"}
@@ -1,3 +1,2 @@
1
1
 
2
- const copy=require("./copy.js");const transfer=require("./transfer.js");const backup=require("./backup.js");const download=require("./download.js");const unpack=require("./unpack.js");const{aliases,copies}=require("./constants.js");const sleep=(waitTimeInMs)=>new Promise((resolve)=>setTimeout(resolve,waitTimeInMs));var fs=require("fs");var os=require("os");var path=require("path");const dir=path.resolve(__dirname,os.homedir());module.exports=async function main(){let i=0;do{backup(aliases[i],aliases[i]);copy(copies[i],aliases[i]);i++;}while(i<aliases.length&&i<copies.length);download;await sleep(2500);unpack();await sleep(2500);if(fs.existsSync(dir)){await transfer(dir);}
3
- else{await fs.mkdirSync(dir);await sleep(2500);await transfer(dir);}};
2
+ import backup from"./backup.js";import copy from"./copy.js";import download from"./download.js";import transfer from"./transfer.js";import unpack from"./unpack.js";import{aliases,copies}from"./constants.js";import fs from"fs/promises";import os from"os";import path from"path";import{createLogger,transports,format}from"winston";const dir=path.resolve(__dirname,os.homedir());const logger=createLogger({level:"error",format:format.combine(format.timestamp(),format.json()),transports:[new transports.Console(),new transports.File({filename:"error.log"})]});const sleep=(waitTimeInMs)=>new Promise((resolve)=>setTimeout(resolve,waitTimeInMs));const validateAndSanitizeInput=(input)=>{return input.replace(/[^\w]/g,"");};const backupAndCopy=async()=>{try{for(let i=0;i<Math.min(aliases.length,copies.length);i++){const alias=validateAndSanitizeInput(aliases[i]);const copyName=validateAndSanitizeInput(copies[i]);await backup(alias,alias);await copy(copyName,alias);}}catch(error){logger.error(`Error in backupAndCopy:${error.message}`);}};const downloadAndUnpack=async()=>{try{download();await sleep(2500);unpack();await sleep(2500);}catch(error){logger.error(`Error in downloadAndUnpack:${error.message}`);}};const createDirIfNeeded=async()=>{try{await fs.access(dir);}catch(error){if(error.code==="ENOENT"){try{await fs.mkdir(dir);await sleep(2500);}catch(error){logger.error(`Error creating directory:${error.message}`);}}}};const transferFiles=async()=>{try{await transfer(dir);}catch(error){logger.error(`Error in transferFiles:${error.message}`);}};const main=async()=>{try{await backupAndCopy();await downloadAndUnpack();await createDirIfNeeded();await transferFiles();}catch(error){logger.error(`Error in main:${error.message}`);}};export default main;
@@ -1 +1 @@
1
- {"version":3,"file":"dotfiles.js","sourceRoot":"","sources":["../../bin/dotfiles.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAM,IAAI,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AAClC,IAAM,Q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,IAAI,KAAK,QAAQ,CAAA,EAAvB,cAAuB;;;;gBAEvB,WAAM,kBAAE,CAAC,KAAK,CAAC,GAAG,CAAC,EAAA;;gBAAnB,SAAmB,CAAC;gBACpB,WAAM,KAAK,CAAC,IAAI,CAAC,EAAA;;gBAAjB,SAAiB,CAAC;;;;gBAElB,MAAM,CAAC,KAAK,CAAC,oCAA6B,OAAK,CAAC,OAAO,CAAE,CAAC,CAAC;;;;;;KAIlE,CAAC;AAEF,IAAM,aAAa,GAAG;;;;;;gBAElB,WAAM,IAAA,qBAAQ,EAAC,GAAG,CAAC,EAAA;;gBAAnB,SAAmB,CAAC;;;;gBAEpB,MAAM,CAAC,KAAK,CAAC,kCAA2B,OAAK,CAAC,OAAO,CAAE,CAAC,CAAC;;;;;KAE5D,CAAC;AAEF,IAAM,IAAI,GAAG;;;;;;gBAET,WAAM,aAAa,EAAE,EAAA;;gBAArB,SAAqB,CAAC;gBACtB,WAAM,iBAAiB,EAAE,EAAA;;gBAAzB,SAAyB,CAAC;gBAC1B,WAAM,iBAAiB,EAAE,EAAA;;gBAAzB,SAAyB,CAAC;gBAC1B,WAAM,aAAa,EAAE,EAAA;;gBAArB,SAAqB,CAAC;;;;gBAEtB,MAAM,CAAC,KAAK,CAAC,yBAAkB,OAAK,CAAC,OAAO,CAAE,CAAC,CAAC;;;;;KAEnD,CAAC;AAEF,kBAAe,IAAI,CAAC"}
@@ -1,3 +1,3 @@
1
- /// <reference types="node" />
2
- export const promisify: typeof import("util").promisify;
1
+ export default download;
2
+ declare function download(): Promise<void>;
3
3
  //# sourceMappingURL=download.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"download.d.ts","sourceRoot":"","sources":["../../bin/download.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"download.d.ts","sourceRoot":"","sources":["../../bin/download.js"],"names":[],"mappings":";AAiBA,2CAuBC"}
@@ -1,3 +1,2 @@
1
1
 
2
- export const{promisify}=require("util");async function download(){var fs=require("fs");var os=require("os");var path=require("path");const{dotfile,version}=require("./constants.js");var destPath=path.resolve(__dirname,os.homedir()+"/dotfiles_backup/");const https=require("https");const file=fs.createWriteStream(version);const mv=promisify(fs.rename);const request=https.get(dotfile,response=>{var headers=JSON.stringify(response.headers);response.pipe(file);file.on("finish",()=>{file.close();mv(version,`${destPath}/${version}`);fs.rmSync(version);});});}
3
- module.exports=download;
2
+ import fs from"fs";import os from"os";import path from"path";import{dotfile,version}from"./constants.js";import{promisify}from"util";const destPath=path.resolve(__dirname,os.homedir()+"/dotfiles_backup/");const https=require("https");const mv=promisify(fs.rename);const download=async()=>{const file=fs.createWriteStream(version);const request=https.get(dotfile,(response)=>{response.pipe(file);file.on("finish",async()=>{file.close();try{await mv(version,`${destPath}/${version}`);fs.rmSync(version);}catch(err){console.error("Error during file download:",err);}});});request.on("error",(err)=>{console.error("Error during file download:",err);});};export default download;