@sebastienrousseau/dotfiles 0.2.458 β†’ 0.2.459

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/README.md +62 -11
  2. package/dist/Makefile +31 -53
  3. package/dist/bin/constants.d.ts +2 -2
  4. package/dist/bin/constants.d.ts.map +1 -1
  5. package/dist/bin/constants.js +1 -1
  6. package/dist/bin/constants.js.map +1 -1
  7. package/dist/bin/dotfiles.js +1 -1
  8. package/dist/bin/dotfiles.js.map +1 -1
  9. package/dist/filesizes.txt +74 -26
  10. package/dist/lib/aliases/default/default.aliases.sh +2 -8
  11. package/dist/lib/aliases/gcloud/gcloud.aliases.sh +1 -1
  12. package/dist/lib/aliases/git/git.aliases.sh +5 -5
  13. package/dist/lib/aliases/heroku/heroku.aliases.sh +1 -1
  14. package/dist/lib/aliases/jekyll/jekyll.aliases.sh +1 -1
  15. package/dist/lib/aliases/pnpm/pnpm.aliases.sh +1 -1
  16. package/dist/lib/aliases/subversion/subversion.aliases.sh +1 -1
  17. package/dist/lib/aliases/tmux/tmux.aliases.sh +1 -1
  18. package/dist/lib/aliases.sh +1 -1
  19. package/dist/lib/configurations/bash/bashrc +24 -24
  20. package/dist/lib/configurations/curl/curlrc +1 -1
  21. package/dist/lib/configurations/default/color.sh +1 -1
  22. package/dist/lib/configurations/default/constants.sh +39 -0
  23. package/dist/lib/configurations/default/editor.sh +1 -1
  24. package/dist/lib/configurations/default/prompt.sh +1 -1
  25. package/dist/lib/configurations/gem/gemrc +9 -0
  26. package/dist/lib/configurations/{inputrc β†’ input}/inputrc +1 -1
  27. package/dist/lib/configurations/nano/nanorc +34 -0
  28. package/dist/lib/configurations/profile/profile +1 -1
  29. package/dist/lib/configurations/tmux/default +1 -1
  30. package/dist/lib/configurations/tmux/display +1 -1
  31. package/dist/lib/configurations/tmux/linux +1 -1
  32. package/dist/lib/configurations/tmux/navigation +1 -1
  33. package/dist/lib/configurations/tmux/panes +1 -1
  34. package/dist/lib/configurations/tmux/theme +4 -4
  35. package/dist/lib/configurations/tmux/tmux +1 -1
  36. package/dist/lib/configurations/tmux/vi +1 -1
  37. package/dist/lib/configurations/vim/vimrc +1 -1
  38. package/dist/lib/configurations/wget/wgetrc +1 -1
  39. package/dist/lib/configurations/zsh/zshrc +15 -16
  40. package/dist/lib/configurations.sh +1 -1
  41. package/dist/lib/exit.sh +1 -1
  42. package/dist/lib/functions/cdls.sh +1 -1
  43. package/dist/lib/functions/changediskpwd.tmp +19 -0
  44. package/dist/lib/functions/code.tmp +18 -0
  45. package/dist/lib/functions/countdown.tmp +33 -0
  46. package/dist/lib/functions/curlheader.sh +1 -1
  47. package/dist/lib/functions/curltime.sh +1 -1
  48. package/dist/lib/functions/encode64.sh +1 -1
  49. package/dist/lib/functions/environment.sh +1 -1
  50. package/dist/lib/functions/extract.sh +1 -1
  51. package/dist/lib/functions/genpwd.sh +1 -1
  52. package/dist/lib/functions/goto.sh +1 -1
  53. package/dist/lib/functions/headers.tmp +4 -0
  54. package/dist/lib/functions/hidehiddenfiles.sh +1 -1
  55. package/dist/lib/functions/history-all.tmp +7 -0
  56. package/dist/lib/functions/hostinfo.sh +1 -1
  57. package/dist/lib/functions/hstats.sh +1 -1
  58. package/dist/lib/functions/httpdebug.sh +1 -1
  59. package/dist/lib/functions/keygen.sh +1 -1
  60. package/dist/lib/functions/last.sh +1 -1
  61. package/dist/lib/functions/logout.sh +1 -1
  62. package/dist/lib/functions/lowercase.sh +1 -1
  63. package/dist/lib/functions/macos.sh +1 -1
  64. package/dist/lib/functions/matrix.sh +7 -2
  65. package/dist/lib/functions/mcd.sh +1 -1
  66. package/dist/lib/functions/mount_read_only.sh +1 -1
  67. package/dist/lib/functions/myproc.sh +1 -1
  68. package/dist/lib/functions/prependpath.sh +1 -1
  69. package/dist/lib/functions/print.tmp +13 -0
  70. package/dist/lib/functions/ql.sh +1 -1
  71. package/dist/lib/functions/rd.sh +1 -1
  72. package/dist/lib/functions/remove_disk.sh +1 -1
  73. package/dist/lib/functions/ren.sh +1 -1
  74. package/dist/lib/functions/rm.tmp +13 -0
  75. package/dist/lib/functions/rps.tmp +103 -0
  76. package/dist/lib/functions/showhiddenfiles.sh +1 -1
  77. package/dist/lib/functions/size.sh +1 -1
  78. package/dist/lib/functions/stopwatch.sh +1 -1
  79. package/dist/lib/functions/trash.tmp +13 -0
  80. package/dist/lib/functions/tree.tmp +13 -0
  81. package/dist/lib/functions/uppercase.sh +1 -1
  82. package/dist/lib/functions/uuidgen.tmp +27 -0
  83. package/dist/lib/functions/view-source.sh +1 -1
  84. package/dist/lib/functions/vscode.sh +1 -1
  85. package/dist/lib/functions/whoisport.sh +1 -1
  86. package/dist/lib/functions/zipf.sh +1 -1
  87. package/dist/lib/functions.sh +1 -1
  88. package/dist/lib/history.sh +1 -1
  89. package/dist/lib/paths/ant/ant.paths.sh +1 -1
  90. package/dist/lib/paths/default/default.paths.sh +1 -1
  91. package/dist/lib/paths/homebrew/homebrew.paths.sh +1 -1
  92. package/dist/lib/paths/java/java.paths.sh +1 -1
  93. package/dist/lib/paths/maven/maven.paths.sh +1 -1
  94. package/dist/lib/paths/node/node.paths.sh +1 -1
  95. package/dist/lib/paths/nvm/nvm.paths.sh +1 -1
  96. package/dist/lib/paths/pnpm/pnpm.paths.sh +1 -1
  97. package/dist/lib/paths/python/python.paths.sh +1 -1
  98. package/dist/lib/paths/ruby/ruby.paths.sh +1 -1
  99. package/dist/lib/paths/tmux/tmux.paths.sh +1 -1
  100. package/dist/lib/paths.sh +1 -1
  101. package/dist/scripts/assemble.sh +32 -0
  102. package/dist/scripts/backup.sh +84 -0
  103. package/dist/scripts/banner.sh +18 -0
  104. package/dist/scripts/clean.sh +29 -0
  105. package/dist/scripts/compile.sh +52 -0
  106. package/dist/scripts/copy.sh +106 -0
  107. package/dist/scripts/dotfiles.sh +61 -0
  108. package/dist/scripts/download.sh +23 -0
  109. package/dist/scripts/help.sh +55 -0
  110. package/dist/scripts/unpack.sh +26 -0
  111. package/package.json +14 -37
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env bash
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
+ # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
+ # License: MIT
5
+
6
+ ## πŸ…±πŸ…°πŸ…½πŸ…½πŸ…΄πŸ† - Display banner.
7
+
8
+ # shellcheck disable=SC2154
9
+ clear
10
+ cat <<EOF
11
+
12
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
13
+ β”‚ $(echo -e "\033[1;96mDotfiles (v${DF_VERSION})\033[0m\n") β”‚
14
+ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
15
+ β”‚ $(echo -e "\033[0;93mSimply designed to fit your shell life\033[0m\n") β”‚
16
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
17
+
18
+ EOF
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env bash
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
+ # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
+ # License: MIT
5
+
6
+ ## πŸ…²πŸ…»πŸ…΄πŸ…°πŸ…½ - Clean up.
7
+ clean() {
8
+
9
+ # shellcheck disable=SC1091
10
+ . "./lib/configurations/default/constants.sh"
11
+
12
+ echo ""
13
+ # shellcheck disable=SC2154
14
+ echo "${RED}❭${NC} Starting Cleanup."
15
+ echo ""
16
+
17
+ # shellcheck disable=SC2154
18
+ echo "${GREEN} βœ”${NC} Cleaning up installation files."
19
+ rm -fr dist/
20
+ rm -f tsconfig.tsbuildinfo
21
+
22
+ }
23
+
24
+ args=$* # Arguments passed to script.
25
+ export args="${args}" # Exporting arguments.
26
+ if [[ ${args} = "clean" ]]; then
27
+ echo "$*"
28
+ clean
29
+ fi
@@ -0,0 +1,52 @@
1
+ #!/usr/bin/env bash
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
+ # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
+ # License: MIT
5
+
6
+ ## πŸ…²πŸ…ΎπŸ…ΌπŸ…ΏπŸ…ΈπŸ…»πŸ…΄ πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ - Compile dotfiles.
7
+
8
+ compile() {
9
+
10
+ # shellcheck disable=SC1091
11
+ . "./lib/configurations/default/constants.sh"
12
+
13
+ echo ""
14
+ # shellcheck disable=SC2154
15
+ echo "${RED}❭${NC} Starting Compilation."
16
+ echo ""
17
+
18
+ echo "${GREEN} βœ”${NC} Copying libraries."
19
+ # shellcheck disable=SC1091
20
+ cp -R ./lib ./dist/
21
+
22
+ echo "${GREEN} βœ”${NC} Copying scripts."
23
+ # shellcheck disable=SC1091
24
+ cp -R ./scripts ./dist/
25
+
26
+ echo "${GREEN} βœ”${NC} Removing temporary files."
27
+ # shellcheck disable=SC1091
28
+ rimraf \"./dist/lib/**/*.tmp\"
29
+
30
+ echo "${GREEN} βœ”${NC} Copying JavaScript binaries."
31
+ cp -f -R ./bin ./dist/
32
+
33
+ echo "${GREEN} βœ”${NC} Copying Makefile."
34
+ cp -f ./Makefile ./dist
35
+
36
+ echo "${GREEN} βœ”${NC} Compressing JavaScript files."
37
+ jsmin ./bin/backup.js >dist/bin/backup.js && jsmin ./bin/constants.js >dist/bin/constants.js && jsmin ./bin/copy.js >dist/bin/copy.js && jsmin ./bin/dotfiles.js >dist/bin/dotfiles.js && jsmin ./bin/download.js >dist/bin/download.js && jsmin ./bin/index.js >dist/bin/index.js && jsmin ./bin/transfer.js >dist/bin/transfer.js && jsmin ./bin/unpack.js >dist/bin/unpack.js
38
+
39
+ echo "${GREEN} βœ”${NC} Determining the file sizes."
40
+ filesizes ./dist/ >./dist/filesizes.txt
41
+
42
+ # shellcheck disable=SC2154
43
+ echo "${GREEN} βœ”${NC} Compilation completed."
44
+ echo ""
45
+ }
46
+
47
+ args=$* # Arguments passed to script.
48
+ export args="${args}" # Exporting arguments.
49
+ if [[ ${args} = "compile" ]]; then
50
+ echo "$*"
51
+ compile
52
+ fi
@@ -0,0 +1,106 @@
1
+ #!/usr/bin/env bash
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
+ # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
+ # License: MIT
5
+
6
+ ## πŸ…²πŸ…ΎπŸ…ΏπŸ†ˆ - Copy the dotfiles on your system.
7
+ copy() {
8
+
9
+ # shellcheck disable=SC1091
10
+ . "./lib/configurations/default/constants.sh"
11
+
12
+ echo ""
13
+ # shellcheck disable=SC2154
14
+ echo "${RED}❭${NC} Starting Copying Procedure."
15
+ echo ""
16
+
17
+ # shellcheck disable=SC2154
18
+ # if [[ -d "${DF_DIR}" ]]; then
19
+ # echo "${RED}❭${NC} Copying Binaries to ${DF_DIR}."
20
+ # cp -f -R ./bin/ "${DF_DIR}"bin/
21
+ # else
22
+ # echo "${RED}❭${NC} Copying Binaries to ${DF_DIR}."
23
+ # mkdir -p "${DF_DIR}"
24
+ # cp -f -R ./bin/ "${DF_DIR}"bin/
25
+ # fi
26
+
27
+ # shellcheck disable=SC2154
28
+ if [[ -d "${DF_DIR}" ]]; then
29
+ echo "${RED}❭${NC} Copying ${GREEN}Dotfiles v${DF_VERSION}${NC} to ${CYAN}${DF_DIR}${NC}"
30
+ cp -f -R ./lib/ "${DF_DIR}"lib/
31
+ else
32
+ echo "${RED}❭${NC} Copying ${GREEN}Dotfiles v${DF_VERSION}${NC} to ${CYAN}${DF_DIR}${NC}"
33
+ mkdir -p "${DF_DIR}"
34
+ cp -f -R ./lib/ "${DF_DIR}"lib/
35
+ fi
36
+
37
+ # shellcheck disable=SC2154
38
+ # if [[ -d "${DF_DIR}" ]]; then
39
+ # echo "${RED}❭${NC} Copying Scripts to ${CYAN}${DF_DIR}${NC}"
40
+ # cp -f -R ./scripts/ "${DF_DIR}"scripts/
41
+ # else
42
+ # echo "${RED}❭${NC} Copying Scripts to ${CYAN}${DF_DIR}${NC}"
43
+ # mkdir -p "${DF_DIR}"
44
+ # cp -f -R ./scripts/ "${DF_DIR}"scripts/
45
+ # fi
46
+
47
+ # cacert -- Copying cacert.pem file.
48
+ # shellcheck disable=SC2154
49
+ cp -f "${PWD}"/lib/configurations/curl/cacert.pem "${HOME}"/.cacert.pem &&
50
+ echo "${GREEN} βœ”${NC} Copying '${YELLOW}cacert.pem${NC}'" &&
51
+
52
+ # bashrc -- Copying .bashrc file.
53
+ cp -f "${PWD}"/lib/configurations/bash/bashrc "${HOME}"/.bashrc &&
54
+ echo "${GREEN} βœ”${NC} Copying '${YELLOW}.bashrc${NC}'" &&
55
+
56
+ # curlrc -- Copying .curlrc file.
57
+ cp -f "${PWD}"/lib/configurations/curl/curlrc "${HOME}"/.curlrc &&
58
+ echo "${GREEN} βœ”${NC} Copying '${YELLOW}.curlrc${NC}'" &&
59
+
60
+ # gemrc -- Copying .gemrc file.
61
+ cp -f "${PWD}"/lib/configurations/gem/gemrc "${HOME}"/.gemrc &&
62
+ echo "${GREEN} βœ”${NC} Copying '${YELLOW}.gemrc${NC}'" &&
63
+
64
+ # inputrc -- Copying .inputrc file.
65
+ cp -f "${PWD}"/lib/configurations/inputrc/inputrc "${HOME}"/.inputrc &&
66
+ echo "${GREEN} βœ”${NC} Copying '${YELLOW}.inputrc${NC}'" &&
67
+
68
+ # jshintrc -- Copying .jshintrc file.
69
+ cp -f "${PWD}"/lib/configurations/jshint/jshintrc "${HOME}"/.jshintrc &&
70
+ echo "${GREEN} βœ”${NC} Copying '${YELLOW}.jshintrc${NC}'" &&
71
+
72
+ # nanorc -- Copying .nanorc file.
73
+ cp -f "${PWD}"/lib/configurations/nano/nanorc "${HOME}"/.nanorc &&
74
+ echo "${GREEN} βœ”${NC} Copying '${YELLOW}.nanorc${NC}'" &&
75
+
76
+ # profile -- Copying .profile file.
77
+ cp -f "${PWD}"/lib/configurations/profile/profile "${HOME}"/.profile &&
78
+ echo "${GREEN} βœ”${NC} Copying '${YELLOW}.profile${NC}'" &&
79
+
80
+ # tmux -- Copying .tmux.conf file.
81
+ cp -f "${PWD}"/lib/configurations/tmux/tmux "${HOME}"/.tmux.conf &&
82
+ echo "${GREEN} βœ”${NC} Copying '${YELLOW}.tmux.conf${NC}'" &&
83
+
84
+ # vimrc -- Copying .vimrc file.
85
+ cp -f "${PWD}"/lib/configurations/vim/vimrc "${HOME}"/.vimrc &&
86
+ echo "${GREEN} βœ”${NC} Copying '${YELLOW}.vimrc${NC}'" &&
87
+
88
+ # wgetrc -- Copying .wgetrc file.
89
+ cp -f "${PWD}"/lib/configurations/wget/wgetrc "${HOME}"/.wgetrc &&
90
+ echo "${GREEN} βœ”${NC} Copying '${YELLOW}.wgetrc${NC}'" &&
91
+
92
+ # zshrc -- Copying .zshrc file.
93
+ cp -f "${PWD}"/lib/configurations/zsh/zshrc "${HOME}"/.zshrc &&
94
+ echo "${GREEN} βœ”${NC} Copying '${YELLOW}.zshrc${NC}'"
95
+
96
+ # shellcheck disable=SC2154
97
+ echo "${GREEN} βœ”${NC} All files have been copied up'"
98
+ echo ""
99
+ }
100
+
101
+ args=$* # Arguments passed to script.
102
+ export args="${args}" # Exporting arguments.
103
+ if [[ ${args} = "copy" ]]; then
104
+ echo "$*"
105
+ copy
106
+ fi
@@ -0,0 +1,61 @@
1
+ #!/usr/bin/env bash
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
+ # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
+ # License: MIT
5
+
6
+ ## πŸ…ΈπŸ…ΌπŸ…ΏπŸ…ΎπŸ†πŸ†ƒπŸ†‚ - Importing constants and functions.
7
+
8
+ # shellcheck disable=SC1091
9
+ . "./lib/configurations/default/constants.sh"
10
+
11
+ ## πŸ…ΌπŸ…°πŸ…ΈπŸ…½ - Main function.
12
+
13
+ if [[ "$1" = "backup" ]]; then
14
+ # shellcheck disable=SC2154
15
+ echo "${RED}❭${NC} Backing up.${NC}"
16
+ . "./scripts/backup.sh" &&
17
+ echo "${RED}❭${NC} Backup completed.${NC}"
18
+
19
+ elif [[ "$1" = "clean" ]]; then
20
+
21
+ # shellcheck disable=SC2154
22
+ echo "${RED}❭${NC} Removes any previous setup directories.${NC}"
23
+ . "./scripts/clean.sh" &&
24
+ clean
25
+
26
+ elif [[ "$1" = "copy" ]]; then
27
+
28
+ # shellcheck disable=SC2154
29
+ echo "${RED}❭${NC} Copying dotfiles.${NC}"
30
+ . "./scripts/copy.sh" &&
31
+ echo "${RED}❭${NC} Copying completed.${NC}"
32
+
33
+ elif [[ "$1" = "download" ]]; then
34
+
35
+ # shellcheck disable=SC2154
36
+ echo "${RED}❭${NC} Downloading ${GREEN}Dotfiles v${DF_VERSION}${NC}."
37
+ . "./scripts/download.sh" &&
38
+ echo "${RED}❭${NC} Download completed.${NC}"
39
+
40
+ elif [[ "$1" = "help" ]]; then
41
+ . "./scripts/help.sh" &&
42
+ echo "${RED}❭${NC} Help menu.${NC}"
43
+
44
+ elif [[ "$1" = "assemble" ]]; then
45
+
46
+ # shellcheck disable=SC2154
47
+ echo "${RED}❭${NC} Installing ${GREEN}Dotfiles v${VERSION}${NC}."
48
+ . "./scripts/assemble.sh" &&
49
+ echo "${RED}❭${NC} Installation completed.${NC}"
50
+
51
+ elif [[ "$1" = "unpack" ]]; then
52
+
53
+ # shellcheck disable=SC2154
54
+ echo "${RED}❭${NC} Unpacking ${GREEN}Dotfiles v${DF_VERSION}${NC}."
55
+ . "./scripts/unpack.sh" &&
56
+ echo "${RED}❭${NC} Unpacking completed.${NC}"
57
+
58
+ else
59
+ . "./scripts/help.sh" &&
60
+ echo "${RED}❭${NC} Help menu.${NC}"
61
+ fi
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env bash
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
+ # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
+ # License: MIT
5
+
6
+ ## πŸ†…πŸ…°πŸ†πŸ…ΈπŸ…°πŸ…±πŸ…»πŸ…΄πŸ†‚ - Set Dotfiles variable.
7
+ DF_DOTFILESDIR="${HOME}/.dotfiles" # Location of dotfiles.
8
+ export DF_DOTFILESDIR # Exporting Location of dotfiles.
9
+
10
+ # shellcheck disable=SC1091
11
+ . "./lib/configurations/default/constants.sh"
12
+
13
+ ## πŸ…³πŸ…ΎπŸ††πŸ…½πŸ…»πŸ…ΎπŸ…°πŸ…³ - Download the dotfiles on your system.
14
+ download() {
15
+ # shellcheck disable=SC2154
16
+ echo "${RED}❭${NC} Downloading ${GREEN}Dotfiles v${DF_VERSION}${NC} on your system."
17
+
18
+ # shellcheck disable=SC2154
19
+ # wget https://github.com/sebastienrousseau/dotfiles/archive/refs/tags/v"${DF_VERSION}".zip -N -O "${DF_DOWNLOADDIR}/v${DF_VERSION}.zip"
20
+
21
+ # shellcheck disable=SC2154
22
+ curl https://github.com/sebastienrousseau/dotfiles/archive/refs/tags/v"${DF_VERSION}".zip -o "${DF_DOWNLOADDIR}"/v"${DF_VERSION}".zip
23
+ }
@@ -0,0 +1,55 @@
1
+ #!/usr/bin/env bash
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
+ # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
+ # License: MIT
5
+
6
+ ## πŸ†…πŸ…°πŸ†πŸ…ΈπŸ…°πŸ…±πŸ…»πŸ…΄πŸ†‚ - Set Dotfiles variable.
7
+ DF_DOTFILESDIR="${HOME}/.dotfiles" # Location of dotfiles.
8
+ export DF_DOTFILESDIR # Exporting Location of dotfiles.
9
+
10
+ # shellcheck disable=SC1091
11
+ . "./lib/configurations/default/constants.sh"
12
+
13
+ echo ""
14
+ # shellcheck disable=SC2154
15
+ echo "${RED}❭${NC} Starting help menu."
16
+ echo ""
17
+
18
+ ## πŸ…·πŸ…΄πŸ…»πŸ…Ώ πŸ…ΌπŸ…΄πŸ…½πŸ†„ - Display help menu.
19
+ help() {
20
+
21
+ # shellcheck disable=SC1091
22
+ . "./scripts/banner.sh"
23
+
24
+ cat <<EOF
25
+ USAGE:
26
+
27
+ pnpm run $(echo -e "\033[1;96m[COMMAND]\033[0m\n")
28
+
29
+ COMMANDS:
30
+
31
+ $(echo -e "\033[1;96mbackup\033[0m\n") - Backup your current dotfiles.
32
+ $(echo -e "\033[1;96mclean\033[0m\n") - Removes any previous setup directories.
33
+ $(echo -e "\033[1;96mcopy\033[0m\n") - Copy the dotfiles on your system.
34
+ $(echo -e "\033[1;96mdownload\033[0m\n") - Download the dotfiles on your system.
35
+ $(echo -e "\033[1;96massemble\033[0m\n") - Run the full installation process.
36
+ $(echo -e "\033[1;96munpack\033[0m\n") - Extract the dotfiles to your system.
37
+ $(echo -e "\033[1;96mhelp\033[0m\n") - Display the help menu.
38
+
39
+ DOCUMENTATION:
40
+
41
+ $(echo -e "\033[4;36mhttps://dotfiles.io\033[0m\n")
42
+
43
+ LICENSE:
44
+
45
+ This project is licensed under the MIT License.
46
+
47
+ EOF
48
+ }
49
+
50
+ args=$* # Arguments passed to script.
51
+ export args="${args}" # Exporting arguments.
52
+ if [[ ${args} = "help" ]]; then
53
+ echo "$*"
54
+ help
55
+ fi
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env bash
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
+ # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
+ # License: MIT
5
+
6
+ ## πŸ†…πŸ…°πŸ†πŸ…ΈπŸ…°πŸ…±πŸ…»πŸ…΄πŸ†‚ - Set Dotfiles variable.
7
+ DF_DOTFILESDIR="${HOME}/.dotfiles" # Location of dotfiles.
8
+ export DF_DOTFILESDIR # Exporting Location of dotfiles.
9
+
10
+ # shellcheck disable=SC1091
11
+ . "./lib/configurations/default/constants.sh"
12
+
13
+ ## πŸ†„πŸ…½πŸ…ΏπŸ…°πŸ…²πŸ…Ί - Unpack the dotfiles on your system.
14
+ unpack() {
15
+ # shellcheck disable=SC2154
16
+ echo "${RED}❭${NC} Unpacking ${GREEN}Dotfiles v${VERSION}${NC}."
17
+
18
+ # shellcheck disable=SC2154
19
+ unzip -qq -u "${DF_DOWNLOADDIR}"/v"${DF_VERSION}".zip -d "${DF_DOWNLOADDIR}"
20
+
21
+ # shellcheck disable=SC2154
22
+ mv "${DF_DOWNLOADDIR}/dotfiles-${DF_VERSION}/lib/" "${DF_DOTFILESDIR}"
23
+
24
+ # shellcheck disable=SC2154
25
+ rm "${DF_DOWNLOADDIR}/v${DF_VERSION}.zip"
26
+ }
package/package.json CHANGED
@@ -26,22 +26,19 @@
26
26
  ],
27
27
  "description": "Dotfiles - A set of macOS / Linux and Windows configuration files - Simply designed to fit your shell life.",
28
28
  "devDependencies": {
29
- "@types/node": "^16.11.65",
30
- "@types/shelljs": "0.8.11",
29
+ "@types/node": "^16.11.66",
31
30
  "compressing": "^1.6.2",
32
31
  "filesizes": "^0.1.2",
33
32
  "fs-extra": "10.1.0",
33
+ "husky": "^8.0.1",
34
34
  "jsmin": "^1.0.1",
35
- "pnpm": "^7.13.4",
36
35
  "rimraf": "^3.0.2",
37
- "shelljs": "^0.8.5",
38
- "shelljs-nodecli": "^0.1.1",
39
- "tsd": "0.24.1",
40
36
  "typescript": "^4.8.4"
41
37
  },
42
38
  "directories": {
43
39
  "bin": "./bin",
44
- "shell": "./lib"
40
+ "lib": "./lib",
41
+ "scripts": "./scripts"
45
42
  },
46
43
  "engines": {
47
44
  "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
@@ -74,38 +71,18 @@
74
71
  "url": "git@github.com:sebastienrousseau/dotfiles.git"
75
72
  },
76
73
  "types": "./dist/bin/index.d.ts",
77
- "version": "0.2.458",
74
+ "version": "0.2.459",
78
75
  "scripts": {
79
- "assemble": "pnpm run backup && pnpm run directory && pnpm run copy",
80
- "backup": "pnpm run bk:dir && pnpm run bk:bsh && pnpm run bk:zsh",
81
- "bk:bsh": "if [ -z $HOME/.bashrc ]; then mv -f $HOME/.bashrc $HOME/.dotfiles_backup/bashrc.bk; fi ",
82
- "bk:dir": "if [ -d $HOME/.dotfiles ]; then mv -f $HOME/.dotfiles $HOME/dotfiles_backup; fi ",
83
- "bk:zsh": "if [ -z $HOME/.zshrc ]; then mv -f $HOME/.zshrc $HOME/.dotfiles_backup/zshrc.bk; fi ",
84
- "build": "pnpm run clean && tsc --build tsconfig.json && pnpm run compile",
85
- "cl:tmp": "rimraf \"./dist/lib/**/*.tmp\"",
86
- "clean": "rimraf \"dist/\" && tsc --build --clean",
87
- "compile": "chmod 755 \"./scripts/compile.sh\" && ./scripts/compile.sh",
88
- "copy": "chmod 755 \"./scripts/copy.sh\" && ./scripts/copy.sh",
89
- "cp:bash": "cp -vf ./lib/configurations/bash/bashrc $HOME/.bashrc",
90
- "cp:bin": "cp -vf -R ./bin ./dist/",
91
- "cp:cert": "cp -vf ./lib/configurations/curl/cacert.pem $HOME/cacert.pem",
92
- "cp:curl": "cp -vf ./lib/configurations/curl/curlrc $HOME/.curlrc",
93
- "cp:dirs": "cp -vf -R ./lib $HOME/.dotfiles/lib/",
94
- "cp:inpt": "cp -vf ./lib/configurations/inputrc/inputrc $HOME/.inputrc",
95
- "cp:jsht": "cp -vf ./lib/configurations/jshint/jshintrc $HOME/.jshintrc",
96
- "cp:make": "cp -vf ./Makefile ./dist",
97
- "cp:prof": "cp -vf ./lib/configurations/profile/profile $HOME/.profile",
98
- "cp:lib": "cp -vR ./lib ./dist/",
99
- "cp:tmux": "cp -vf ./lib/configurations/tmux/tmux.conf $HOME/.tmux.conf && cp -vR ./lib/configurations/tmux/ $HOME/.dotfiles/lib/configurations/tmux/",
100
- "cp:vimr": "cp -vf ./lib/configurations/vim/vimrc $HOME/.vimrc",
101
- "cp:wget": "cp -vf ./lib/configurations/wget/wgetrc $HOME/.wgetrc",
102
- "cp:zshr": "cp -vf ./lib/configurations/zsh/zshrc $HOME/.zshrc",
103
- "directory": "mkdir $HOME/.dotfiles",
104
- "filesizes": "filesizes ./dist/ > ./dist/filesizes.txt",
105
- "help": "chmod 755 \"./scripts/dotfiles.sh\" && ./scripts/dotfiles.sh",
106
- "minify": "jsmin ./bin/backup.js > dist/bin/backup.js && jsmin ./bin/constants.js > dist/bin/constants.js && jsmin ./bin/copy.js > dist/bin/copy.js && jsmin ./bin/dotfiles.js > dist/bin/dotfiles.js && jsmin ./bin/download.js > dist/bin/download.js && jsmin ./bin/index.js > dist/bin/index.js && jsmin ./bin/transfer.js > dist/bin/transfer.js && jsmin ./bin/unpack.js > dist/bin/unpack.js",
76
+ "build": "pnpm run backup && pnpm run copy && pnpm run assemble",
77
+ "backup": "chmod 755 \"./scripts/backup.sh\" && sh ./scripts/backup.sh backup",
78
+ "assemble": "pnpm run clean && npx tsc --build tsconfig.json && pnpm run compile",
79
+ "clean": "chmod 755 \"./scripts/clean.sh\" && sh ./scripts/clean.sh clean",
80
+ "compile": "chmod 755 \"./scripts/compile.sh\" && ./scripts/compile.sh compile",
81
+ "copy": "chmod 755 \"./scripts/copy.sh\" && ./scripts/copy.sh copy",
82
+ "help": "chmod 755 \"./scripts/help.sh\" && ./scripts/help.sh help",
107
83
  "pack": "pnpm pack",
108
- "start": "node ./bin/index.js",
84
+ "preinstall": "npx only-allow pnpm",
85
+ "start": "node ./dist/bin/index.js",
109
86
  "test": "echo \"Error: no test specified\" && exit 1"
110
87
  }
111
88
  }