@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.
- package/LICENSE +20 -17
- package/README.md +150 -155
- package/dist/Makefile +2 -2
- package/dist/bin/backup.js.map +1 -1
- package/dist/bin/constants.d.ts +2 -2
- package/dist/bin/constants.js +1 -1
- package/dist/bin/dotfiles.d.ts +2 -2
- package/dist/bin/dotfiles.d.ts.map +1 -1
- package/dist/bin/dotfiles.js +1 -2
- package/dist/bin/dotfiles.js.map +1 -1
- package/dist/bin/download.d.ts +2 -2
- package/dist/bin/download.d.ts.map +1 -1
- package/dist/bin/download.js +1 -2
- package/dist/bin/download.js.map +1 -1
- package/dist/bin/index.js +1 -1
- package/dist/bin/index.js.map +1 -1
- package/dist/filesizes.txt +92 -94
- package/dist/lib/README.md +9 -5
- package/dist/lib/aliases/README.md +16 -8
- package/dist/lib/aliases/archives/README.md +29 -26
- package/dist/lib/aliases/archives/archives.aliases.sh +148 -145
- package/dist/lib/aliases/cd/README.md +46 -44
- package/dist/lib/aliases/cd/cd.aliases.sh +63 -29
- package/dist/lib/aliases/chmod/README.md +8 -4
- package/dist/lib/aliases/chmod/chmod.aliases.sh +60 -42
- package/dist/lib/aliases/clear/README.md +8 -4
- package/dist/lib/aliases/clear/clear.aliases.sh +57 -28
- package/dist/lib/aliases/configuration/README.md +8 -4
- package/dist/lib/aliases/configuration/configuration.aliases.sh +56 -30
- package/dist/lib/aliases/default/README.md +8 -4
- package/dist/lib/aliases/default/default.aliases.sh +99 -86
- package/dist/lib/aliases/dig/README.md +8 -4
- package/dist/lib/aliases/dig/dig.aliases.sh +3 -3
- package/dist/lib/aliases/disk-usage/README.md +8 -4
- package/dist/lib/aliases/disk-usage/du.aliases.sh +2 -2
- package/dist/lib/aliases/editor/README.md +8 -4
- package/dist/lib/aliases/editor/editor.aliases.sh +3 -3
- package/dist/lib/aliases/find/README.md +8 -4
- package/dist/lib/aliases/find/find.aliases.sh +3 -3
- package/dist/lib/aliases/gcloud/README.md +8 -4
- package/dist/lib/aliases/gcloud/gcloud.aliases.sh +3 -3
- package/dist/lib/aliases/git/README.md +8 -4
- package/dist/lib/aliases/git/git.aliases.sh +2 -2
- package/dist/lib/aliases/gnu/README.md +8 -4
- package/dist/lib/aliases/gnu/gnucoreutils-aliases.sh +1 -1
- package/dist/lib/aliases/heroku/README.md +8 -4
- package/dist/lib/aliases/heroku/heroku.aliases.sh +2 -2
- package/dist/lib/aliases/interactive/README.md +29 -17
- package/dist/lib/aliases/interactive/interactive.aliases.sh +14 -17
- package/dist/lib/aliases/jekyll/README.md +8 -4
- package/dist/lib/aliases/jekyll/jekyll.aliases.sh +3 -3
- package/dist/lib/aliases/list/README.md +8 -4
- package/dist/lib/aliases/list/list.aliases.sh +2 -2
- package/dist/lib/aliases/{macos → macOS}/README.md +8 -4
- package/dist/lib/aliases/{macos → macOS}/macos.aliases.sh +2 -2
- package/dist/lib/aliases/make/README.md +8 -4
- package/dist/lib/aliases/make/make.aliases.sh +2 -2
- package/dist/lib/aliases/mkdir/README.md +8 -4
- package/dist/lib/aliases/mkdir/mkdir.aliases.sh +2 -2
- package/dist/lib/aliases/npm/README.md +8 -4
- package/dist/lib/aliases/npm/npm.aliases.sh +2 -2
- package/dist/lib/aliases/permission/README.md +8 -4
- package/dist/lib/aliases/permission/permission.aliases.sh +2 -2
- package/dist/lib/aliases/pnpm/README.md +8 -4
- package/dist/lib/aliases/pnpm/pnpm.aliases.sh +2 -2
- package/dist/lib/aliases/ps/README.md +8 -4
- package/dist/lib/aliases/ps/ps.aliases.sh +2 -2
- package/dist/lib/aliases/rsync/README.md +8 -4
- package/dist/lib/aliases/rsync/rsync.aliases.sh +2 -2
- package/dist/lib/aliases/rust/README.md +8 -4
- package/dist/lib/aliases/rust/rust.aliases.sh +23 -23
- package/dist/lib/aliases/subversion/README.md +8 -4
- package/dist/lib/aliases/subversion/subversion.aliases.sh +2 -2
- package/dist/lib/aliases/sudo/README.md +8 -4
- package/dist/lib/aliases/sudo/sudo.aliases.sh +2 -2
- package/dist/lib/aliases/tmux/README.md +8 -4
- package/dist/lib/aliases/tmux/tmux.aliases.sh +2 -2
- package/dist/lib/aliases/update/README.md +8 -4
- package/dist/lib/aliases/update/update.aliases.sh +2 -2
- package/dist/lib/aliases/uuid/README.md +8 -4
- package/dist/lib/aliases/uuid/uuid.aliases.sh +2 -2
- package/dist/lib/aliases/wget/README.md +8 -4
- package/dist/lib/aliases/wget/wget.aliases.sh +2 -2
- package/dist/lib/aliases.sh +42 -12
- package/dist/lib/configurations/README.md +8 -4
- package/dist/lib/configurations/bash/bashrc +3 -3
- package/dist/lib/configurations/curl/curlrc +2 -2
- package/dist/lib/configurations/default/color.sh +2 -2
- package/dist/lib/configurations/default/constants.sh +3 -3
- package/dist/lib/configurations/default/editor.sh +2 -2
- package/dist/lib/configurations/default/prompt.sh +2 -2
- package/dist/lib/configurations/input/inputrc +2 -2
- package/dist/lib/configurations/nano/nanorc +2 -2
- package/dist/lib/configurations/profile/profile +2 -2
- package/dist/lib/configurations/tmux/default +2 -2
- package/dist/lib/configurations/tmux/display +2 -2
- package/dist/lib/configurations/tmux/linux +2 -2
- package/dist/lib/configurations/tmux/navigation +2 -2
- package/dist/lib/configurations/tmux/panes +2 -2
- package/dist/lib/configurations/tmux/theme +3 -3
- package/dist/lib/configurations/tmux/tmux +2 -2
- package/dist/lib/configurations/vim/vimrc +1 -1
- package/dist/lib/configurations/wget/wgetrc +2 -2
- package/dist/lib/configurations/zsh/zshrc +11 -11
- package/dist/lib/configurations.sh +27 -9
- package/dist/lib/functions/README.md +12 -4
- package/dist/lib/functions/cdls.sh +2 -2
- package/dist/lib/functions/curlheader.sh +2 -2
- package/dist/lib/functions/curlstatus.sh +2 -2
- package/dist/lib/functions/curltime.sh +3 -3
- package/dist/lib/functions/encode64.sh +2 -2
- package/dist/lib/functions/environment.sh +2 -2
- package/dist/lib/functions/extract.sh +2 -2
- package/dist/lib/functions/freespace.sh +2 -2
- package/dist/lib/functions/genpwd.sh +4 -4
- package/dist/lib/functions/goto.sh +2 -2
- package/dist/lib/functions/hidehiddenfiles.sh +2 -2
- package/dist/lib/functions/hostinfo.sh +2 -2
- package/dist/lib/functions/hstats.sh +2 -2
- package/dist/lib/functions/httpdebug.sh +2 -2
- package/dist/lib/functions/keygen.sh +2 -2
- package/dist/lib/functions/last.sh +2 -2
- package/dist/lib/functions/logout.sh +2 -2
- package/dist/lib/functions/lowercase.sh +2 -2
- package/dist/lib/functions/matrix.sh +2 -2
- package/dist/lib/functions/mount_read_only.sh +2 -2
- package/dist/lib/functions/myproc.sh +2 -2
- package/dist/lib/functions/prependpath.sh +2 -2
- package/dist/lib/functions/ql.sh +2 -2
- package/dist/lib/functions/rd.sh +2 -2
- package/dist/lib/functions/remove_disk.sh +2 -2
- package/dist/lib/functions/ren.sh +2 -2
- package/dist/lib/functions/showhiddenfiles.sh +2 -2
- package/dist/lib/functions/size.sh +2 -2
- package/dist/lib/functions/stopwatch.sh +2 -2
- package/dist/lib/functions/uppercase.sh +2 -2
- package/dist/lib/functions/view-source.sh +2 -2
- package/dist/lib/functions/vscode.sh +2 -2
- package/dist/lib/functions/whoisport.sh +2 -2
- package/dist/lib/functions/zipf.sh +2 -2
- package/dist/lib/functions.sh +27 -10
- package/dist/lib/history.sh +58 -21
- package/dist/lib/paths/ant/ant.paths.sh +2 -2
- package/dist/lib/paths/default/default.paths.sh +2 -2
- package/dist/lib/paths/homebrew/homebrew.paths.sh +2 -2
- package/dist/lib/paths/java/java.paths.sh +2 -2
- package/dist/lib/paths/maven/maven.paths.sh +2 -2
- package/dist/lib/paths/node/node.paths.sh +2 -2
- package/dist/lib/paths/nvm/nvm.paths.sh +2 -2
- package/dist/lib/paths/pnpm/pnpm.paths.sh +2 -2
- package/dist/lib/paths/python/python.paths.sh +2 -2
- package/dist/lib/paths/ruby/ruby.paths.sh +2 -2
- package/dist/lib/paths/tmux/tmux.paths.sh +2 -2
- package/dist/lib/paths.sh +28 -12
- package/dist/scripts/backup.sh +2 -2
- package/dist/scripts/banner.sh +2 -2
- package/dist/scripts/build.sh +2 -2
- package/dist/scripts/clean.sh +2 -2
- package/dist/scripts/compile.sh +2 -2
- package/dist/scripts/copy.sh +2 -2
- package/dist/scripts/dotfiles.sh +2 -2
- package/dist/scripts/download.sh +2 -2
- package/dist/scripts/help.sh +2 -2
- package/dist/scripts/ssh.sh +2 -2
- package/dist/scripts/unpack.sh +2 -2
- package/package.json +6 -5
- 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)
|
|
7
|
+
Copyright (c) 2023 Sebastien Rousseau
|
|
6
8
|
|
|
7
|
-
Permission is hereby granted, free of charge, to any person obtaining a
|
|
8
|
-
of this software and associated documentation files (the "Software
|
|
9
|
-
in the Software without restriction, including without
|
|
10
|
-
to use, copy, modify, merge, publish, distribute,
|
|
11
|
-
copies of the Software, and to permit persons to
|
|
12
|
-
furnished to do so, subject to the following
|
|
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
|
|
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
|
|
18
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
19
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
|
20
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
21
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
22
|
-
|
|
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
|
-
|
|
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
|
|
4
|
-
|
|
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.
|
|
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]][
|
|
15
|
-
[![Contributors][contributors-shield]][
|
|
16
|
-
[![Forks][forks-shield]][
|
|
17
|
-
[![License][license]][
|
|
18
|
-
[![Love][love]][
|
|
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][
|
|
21
|
-
• [Report Bug][
|
|
22
|
-
• [Contributing Guidelines][
|
|
28
|
+
• [Website][00] • [Documentation][16]
|
|
29
|
+
• [Report Bug][17] • [Request Feature][17]
|
|
30
|
+
• [Contributing Guidelines][05]
|
|
23
31
|
|
|
24
|
-
|
|
32
|
+
<!-- markdownlint-disable MD033 MD041 MD043 -->
|
|
33
|
+
</center>
|
|
34
|
+
<!-- markdownlint-enable MD033 MD041 -->
|
|
25
35
|
|
|
26
|
-
|
|
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.
|
|
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][
|
|
100
|
-
[
|
|
101
|
-
[
|
|
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**][
|
|
110
|
-
|
|
111
|
-
- Or [**Zsh**][
|
|
112
|
-
|
|
113
|
-
- [**Git**][
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
- [**Curl**][
|
|
117
|
-
|
|
118
|
-
- [**Wget**][
|
|
119
|
-
|
|
120
|
-
- [**Make**][
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
- [**Shell**][
|
|
124
|
-
|
|
125
|
-
- [**PnPM**][
|
|
126
|
-
|
|
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][
|
|
154
|
-
- [Dotfiles Docs GitHub repository][
|
|
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.
|
|
171
|
+
You can download the latest version (v0.2.468) with the following
|
|
172
|
+
options:
|
|
163
173
|
|
|
164
|
-
- [**Manual download**][
|
|
165
|
-
- [**Install with PnPM**][
|
|
166
|
-
|
|
167
|
-
- [**Install with
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
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
|
|
178
|
-
data. The Dotfiles installer will try to automatically backup
|
|
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
|
|
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
|
|
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
|
|
221
|
-
install the latest version of the dotfiles and will automatically
|
|
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
|
|
226
|
-
installation method. If not, it will fallback to equivalent shell
|
|
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
|
|
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/@
|
|
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
|
|
251
|
-
backup any existing dotfiles you may have into a backup
|
|
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
|
|
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
|
|
266
|
-
backup any existing dotfiles you may have into a backup
|
|
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
|
|
275
|
-
should be able to see a new interface of your terminal
|
|
276
|
-
using the dotfiles aliases and other
|
|
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][
|
|
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][
|
|
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
|
|
291
|
-
compatibility, `Dotfiles` follows
|
|
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][
|
|
309
|
+
- See [Dotfiles Release][24] for a list of changes.
|
|
298
310
|
|
|
299
|
-
## ✅
|
|
311
|
+
## Changelog ✅
|
|
300
312
|
|
|
301
|
-
- [GitHub Releases][
|
|
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
|
|
308
|
-
Please read our [Code of Conduct][
|
|
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
|
|
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
|
-
|
|
323
|
-
|
|
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
|
-
|
|
329
|
-
|
|
330
|
-
-
|
|
331
|
-
|
|
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
|
-
|
|
347
|
+
The project is licensed under the terms of both the MIT license and the
|
|
348
|
+
Apache License (Version 2.0).
|
|
343
349
|
|
|
344
|
-
[
|
|
350
|
+
- [Apache License, Version 2.0][01]
|
|
351
|
+
- [MIT license][02]
|
|
345
352
|
|
|
346
353
|
![divider][divider]
|
|
347
354
|
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
[
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
[
|
|
358
|
-
[
|
|
359
|
-
[
|
|
360
|
-
[
|
|
361
|
-
[
|
|
362
|
-
[
|
|
363
|
-
[
|
|
364
|
-
[
|
|
365
|
-
[
|
|
366
|
-
[
|
|
367
|
-
[
|
|
368
|
-
[
|
|
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
|
-
|
|
371
|
-
[
|
|
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
|
-
|
|
395
|
-
[divider]: https://
|
|
396
|
-
[download_button]: https://
|
|
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
|
-
[
|
|
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://
|
|
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.
|
|
3
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.468) - <https://dotfiles.io>
|
|
4
4
|
# Made with ♥ in London, UK by @wwdseb
|
|
5
|
-
# Copyright (c) 2015-
|
|
5
|
+
# Copyright (c) 2015-2024. All rights reserved
|
|
6
6
|
# License: MIT
|
|
7
7
|
|
|
8
8
|
.DEFAULT_GOAL := help
|
package/dist/bin/backup.js.map
CHANGED
|
@@ -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,IAAI,CAAC,CAAC;oBACnB,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;oBACnB,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;oBACvB,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,OAAO,EAAE,GAAG,kBAAkB,CAAC,CAAC;oBAErE,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,oBAAoB,CAAC,EAAE;
|
|
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,IAAI,CAAC,CAAC;oBACnB,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;oBACnB,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;oBACvB,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,OAAO,EAAE,GAAG,kBAAkB,CAAC,CAAC;oBAErE,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,oBAAoB,CAAC,EAAE,CAAC;wBACzC,EAAE,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;oBACrC,CAAC;oBAEG,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"}
|
package/dist/bin/constants.d.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
6
|
+
export const version: "dotfiles-0.2.468.tgz";
|
|
7
7
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/bin/constants.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
const version="dotfiles-0.2.
|
|
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};
|
package/dist/bin/dotfiles.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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":"
|
|
1
|
+
{"version":3,"file":"dotfiles.d.ts","sourceRoot":"","sources":["../../bin/dotfiles.js"],"names":[],"mappings":";AAwFA,uCASC"}
|
package/dist/bin/dotfiles.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
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;
|
package/dist/bin/dotfiles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dotfiles.js","sourceRoot":"","sources":["../../bin/dotfiles.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dotfiles.js","sourceRoot":"","sources":["../../bin/dotfiles.js"],"names":[],"mappings":"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"}
|
package/dist/bin/download.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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"}
|
package/dist/bin/download.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
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;
|