@sebastienrousseau/dotfiles 0.2.453 → 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.
- package/README.md +172 -156
- package/{Makefile → dist/Makefile} +7 -8
- package/dist/bin/compile.sh +16 -0
- package/dist/bin/copy.sh +21 -0
- package/{bin → dist/bin}/dotfiles.sh +56 -28
- package/dist/filesizes.txt +176 -0
- package/{shell → dist/shell}/README.md +0 -0
- package/{shell → dist/shell}/aliases/default/default.aliases.sh +1 -1
- package/{shell → dist/shell}/aliases/gcloud/gcloud.aliases.sh +1 -1
- package/{shell → dist/shell}/aliases/heroku/heroku.aliases.sh +1 -1
- package/{shell → dist/shell}/aliases/jekyll/jekyll.aliases.sh +1 -1
- package/{shell → dist/shell}/aliases/pnpm/pnpm.aliases.sh +1 -1
- package/{shell → dist/shell}/aliases/subversion/subversion.aliases.sh +1 -1
- package/{shell → dist/shell}/aliases/tmux/tmux.aliases.sh +1 -1
- package/{shell → dist/shell}/aliases.sh +1 -1
- package/{shell → dist/shell}/configurations/README.md +0 -0
- package/{shell → dist/shell}/configurations/bash/bashrc +2 -2
- package/{shell → dist/shell}/configurations/curl/cacert.pem +0 -0
- package/{shell → dist/shell}/configurations/curl/curlrc +1 -1
- package/{shell → dist/shell}/configurations/default/color.sh +1 -1
- package/{shell → dist/shell}/configurations/default/editor.sh +1 -1
- package/{shell → dist/shell}/configurations/default/prompt.sh +1 -1
- package/{shell → dist/shell}/configurations/inputrc/inputrc +1 -1
- package/{shell → dist/shell}/configurations/jshint/jshintrc +0 -0
- package/{shell → dist/shell}/configurations/profile/profile +1 -1
- package/{shell → dist/shell}/configurations/tmux/tmux +1 -1
- package/{shell → dist/shell}/configurations/vim/vimrc +1 -1
- package/{shell → dist/shell}/configurations/wget/wgetrc +1 -1
- package/{shell → dist/shell}/configurations/zsh/zshrc +2 -2
- package/{shell → dist/shell}/configurations.sh +1 -1
- package/{shell → dist/shell}/exit.sh +1 -1
- package/{shell → dist/shell}/functions/README.md +0 -0
- package/{shell → dist/shell}/functions/cdls.sh +1 -1
- package/{shell → dist/shell}/functions/curlheader.sh +1 -1
- package/{shell → dist/shell}/functions/curltime.sh +1 -1
- package/{shell → dist/shell}/functions/encode64.sh +1 -1
- package/{shell → dist/shell}/functions/environment.sh +1 -1
- package/{shell → dist/shell}/functions/extract.sh +1 -1
- package/{shell → dist/shell}/functions/filehead.sh +0 -0
- package/{shell → dist/shell}/functions/genpwd.sh +1 -1
- package/{shell → dist/shell}/functions/goto.sh +1 -1
- package/{shell → dist/shell}/functions/hidehiddenfiles.sh +1 -1
- package/{shell → dist/shell}/functions/hostinfo.sh +1 -1
- package/{shell → dist/shell}/functions/hstats.sh +1 -1
- package/{shell → dist/shell}/functions/httpdebug.sh +1 -1
- package/{shell → dist/shell}/functions/keygen.sh +1 -1
- package/{shell → dist/shell}/functions/last.sh +1 -1
- package/{shell → dist/shell}/functions/logout.sh +1 -1
- package/{shell → dist/shell}/functions/lowercase.sh +1 -1
- package/{shell → dist/shell}/functions/macos.sh +1 -1
- package/{shell → dist/shell}/functions/matrix.sh +1 -1
- package/{shell → dist/shell}/functions/mcd.sh +1 -1
- package/{shell → dist/shell}/functions/mount_read_only.sh +1 -1
- package/{shell → dist/shell}/functions/myproc.sh +1 -1
- package/{shell → dist/shell}/functions/prependpath.sh +1 -1
- package/{shell → dist/shell}/functions/ql.sh +1 -1
- package/{shell → dist/shell}/functions/rd.sh +1 -1
- package/{shell → dist/shell}/functions/remove_disk.sh +1 -1
- package/{shell → dist/shell}/functions/ren.sh +1 -1
- package/{shell → dist/shell}/functions/showhiddenfiles.sh +1 -1
- package/{shell → dist/shell}/functions/size.sh +1 -1
- package/{shell → dist/shell}/functions/stopwatch.sh +1 -1
- package/{shell → dist/shell}/functions/uppercase.sh +1 -1
- package/{shell → dist/shell}/functions/view-source.sh +1 -1
- package/{shell → dist/shell}/functions/vscode.sh +1 -1
- package/{shell → dist/shell}/functions/whoisport.sh +1 -1
- package/{shell → dist/shell}/functions/zipf.sh +1 -1
- package/{shell → dist/shell}/functions.sh +1 -1
- package/{shell → dist/shell}/history.sh +1 -1
- package/dist/shell/index.d.ts +2 -0
- package/dist/shell/index.d.ts.map +1 -0
- package/dist/shell/index.js +2 -0
- package/dist/shell/index.js.map +1 -0
- package/{shell → dist/shell}/paths/ant/ant.paths.sh +1 -1
- package/{shell → dist/shell}/paths/default/default.paths.sh +1 -1
- package/{shell → dist/shell}/paths/homebrew/homebrew.paths.sh +1 -1
- package/{shell → dist/shell}/paths/java/java.paths.sh +1 -1
- package/{shell → dist/shell}/paths/maven/maven.paths.sh +1 -1
- package/{shell → dist/shell}/paths/node/node.paths.sh +1 -1
- package/{shell → dist/shell}/paths/nvm/nvm.paths.sh +1 -1
- package/{shell → dist/shell}/paths/pnpm/pnpm.paths.sh +1 -1
- package/{shell → dist/shell}/paths/python/python.paths.sh +13 -3
- package/{shell → dist/shell}/paths/ruby/ruby.paths.sh +1 -1
- package/{shell → dist/shell}/paths/tmux/tmux.paths.sh +3 -2
- package/{shell → dist/shell}/paths.sh +1 -1
- package/package.json +33 -27
- package/COPYRIGHT +0 -5
- package/index.js +0 -24
- package/pnpm-lock.yaml +0 -232
- package/pnpm-workspace.yaml +0 -2
- package/shell/aliases/default/README.md +0 -0
- package/shell/aliases/git/git.aliases.wip +0 -586
- package/shell/functions/changediskpwd.wip +0 -19
- package/shell/functions/code.wip +0 -18
- package/shell/functions/countdown.wip +0 -33
- package/shell/functions/headers.wip +0 -4
- package/shell/functions/history-all.wip +0 -7
- package/shell/functions/print.wip +0 -13
- package/shell/functions/rm.wip +0 -13
- package/shell/functions/rps.wip +0 -103
- package/shell/functions/trash.wip +0 -13
- package/shell/functions/tree.wip +0 -13
- package/shell/functions/uuidgen.wip +0 -27
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../shell/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../shell/index.js"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,IAAI,KAAK,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AAE/B,SAAS,IAAI;IACX,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;AACjC,CAAC;AAED,IAAI,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.
|
|
2
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.454) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -9,11 +9,21 @@ if [[ "${OSTYPE}" == "darwin"* ]]; then
|
|
|
9
9
|
PYTHONHOME="/opt/homebrew/opt/python/bin"
|
|
10
10
|
fi
|
|
11
11
|
elif [[ "${OSTYPE}" == "linux-gnu"* ]]; then
|
|
12
|
-
|
|
12
|
+
if [[ -d "/usr/bin/python3.9" ]]; then
|
|
13
|
+
PYTHONHOME="/usr/lib/python3.9"
|
|
14
|
+
fi
|
|
13
15
|
fi
|
|
14
16
|
|
|
15
|
-
#
|
|
17
|
+
# Encoding[:errors] used for stdin/stdout/stderr.
|
|
16
18
|
export PYTHONIOENCODING='UTF-8';
|
|
17
19
|
|
|
20
|
+
# If set to 1, enables the UTF-8 mode.
|
|
21
|
+
export PYTHONUTF8=1;
|
|
22
|
+
|
|
23
|
+
# Export PYTHONHOME variable
|
|
18
24
|
export PYTHONHOME
|
|
19
25
|
export PATH="${PYTHONHOME}:${PATH}"
|
|
26
|
+
|
|
27
|
+
# Export PYTHONPATH variable
|
|
28
|
+
export PYTHONPATH="${PYTHONHOME}"
|
|
29
|
+
export PATH="${PYTHONPATH}:${PATH}"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.
|
|
2
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.454) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -10,5 +10,6 @@ if command -v 'tmux' >/dev/null; then
|
|
|
10
10
|
fi
|
|
11
11
|
|
|
12
12
|
if [[ -z "${TMUX}" ]] && [[ ${UID} != 0 ]]; then
|
|
13
|
-
tmux
|
|
13
|
+
tmux kill-session -t "Dotfiles (v0.2.454)" 2>/dev/null
|
|
14
|
+
tmux new-session -t "Dotfiles (v0.2.454)"
|
|
14
15
|
fi
|
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.
|
|
28
|
-
"
|
|
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
|
-
"
|
|
37
|
-
"/
|
|
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
|
-
"
|
|
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
|
-
"
|
|
71
|
-
"version": "0.2.
|
|
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
|
-
"
|
|
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
|
|
98
|
-
"
|
|
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
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();
|