@sebastienrousseau/dotfiles 0.2.458 β 0.2.460
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 +62 -11
- package/dist/Makefile +35 -57
- package/dist/bin/backup.js.map +1 -1
- package/dist/bin/constants.d.ts +2 -2
- package/dist/bin/constants.d.ts.map +1 -1
- package/dist/bin/constants.js +1 -1
- package/dist/bin/constants.js.map +1 -1
- package/dist/bin/dotfiles.js +1 -1
- package/dist/bin/dotfiles.js.map +1 -1
- package/dist/bin/download.js.map +1 -1
- package/dist/bin/transfer.js.map +1 -1
- package/dist/bin/unpack.js.map +1 -1
- package/dist/filesizes.txt +107 -59
- package/dist/lib/aliases/default/default.aliases.sh +2 -8
- package/dist/lib/aliases/gcloud/gcloud.aliases.sh +116 -117
- package/dist/lib/aliases/git/git.aliases.sh +6 -47
- package/dist/lib/aliases/heroku/heroku.aliases.sh +673 -673
- package/dist/lib/aliases/jekyll/jekyll.aliases.sh +26 -26
- package/dist/lib/aliases/pnpm/pnpm.aliases.sh +36 -36
- package/dist/lib/aliases/subversion/subversion.aliases.sh +80 -80
- package/dist/lib/aliases/tmux/tmux.aliases.sh +1 -1
- package/dist/lib/aliases.sh +1 -1
- package/dist/lib/configurations/bash/bashrc +24 -24
- package/dist/lib/configurations/curl/curlrc +1 -1
- package/dist/lib/configurations/default/color.sh +1 -1
- package/dist/lib/configurations/default/constants.sh +41 -0
- package/dist/lib/configurations/default/editor.sh +1 -1
- package/dist/lib/configurations/default/prompt.sh +1 -1
- package/dist/lib/configurations/gem/gemrc +9 -0
- package/dist/lib/configurations/{inputrc β input}/inputrc +1 -1
- package/dist/lib/configurations/nano/nanorc +34 -0
- package/dist/lib/configurations/profile/profile +1 -1
- package/dist/lib/configurations/tmux/default +1 -1
- package/dist/lib/configurations/tmux/display +1 -1
- package/dist/lib/configurations/tmux/linux +1 -1
- package/dist/lib/configurations/tmux/navigation +1 -1
- package/dist/lib/configurations/tmux/panes +1 -1
- package/dist/lib/configurations/tmux/theme +4 -4
- package/dist/lib/configurations/tmux/tmux +1 -1
- package/dist/lib/configurations/tmux/vi +1 -1
- package/dist/lib/configurations/vim/vimrc +1 -1
- package/dist/lib/configurations/wget/wgetrc +1 -1
- package/dist/lib/configurations/zsh/zshrc +15 -16
- package/dist/lib/configurations.sh +1 -1
- package/dist/lib/exit.sh +1 -1
- package/dist/lib/functions/cdls.sh +1 -1
- package/dist/lib/functions/changediskpwd.tmp +17 -0
- package/dist/lib/functions/code.tmp +16 -0
- package/dist/lib/functions/countdown.tmp +33 -0
- package/dist/lib/functions/curlheader.sh +2 -2
- package/dist/lib/functions/curltime.sh +3 -4
- package/dist/lib/functions/encode64.sh +1 -1
- package/dist/lib/functions/environment.sh +2 -3
- package/dist/lib/functions/extract.sh +1 -1
- package/dist/lib/functions/genpwd.sh +6 -6
- package/dist/lib/functions/goto.sh +1 -1
- package/dist/lib/functions/headers.tmp +4 -0
- package/dist/lib/functions/hidehiddenfiles.sh +1 -1
- package/dist/lib/functions/history-all.tmp +7 -0
- package/dist/lib/functions/hostinfo.sh +1 -1
- package/dist/lib/functions/hstats.sh +2 -2
- package/dist/lib/functions/httpdebug.sh +1 -1
- package/dist/lib/functions/keygen.sh +1 -1
- package/dist/lib/functions/last.sh +1 -1
- package/dist/lib/functions/logout.sh +1 -1
- package/dist/lib/functions/lowercase.sh +16 -17
- package/dist/lib/functions/macos.sh +14 -15
- package/dist/lib/functions/matrix.sh +7 -2
- package/dist/lib/functions/mcd.sh +1 -1
- package/dist/lib/functions/mount_read_only.sh +1 -1
- package/dist/lib/functions/myproc.sh +1 -1
- package/dist/lib/functions/prependpath.sh +2 -2
- package/dist/lib/functions/print.tmp +13 -0
- package/dist/lib/functions/ql.sh +1 -1
- package/dist/lib/functions/rd.sh +3 -3
- package/dist/lib/functions/remove_disk.sh +2 -2
- package/dist/lib/functions/ren.sh +1 -1
- package/dist/lib/functions/rm.tmp +13 -0
- package/dist/lib/functions/rps.tmp +103 -0
- package/dist/lib/functions/showhiddenfiles.sh +1 -1
- package/dist/lib/functions/size.sh +1 -1
- package/dist/lib/functions/stopwatch.sh +1 -1
- package/dist/lib/functions/trash.tmp +13 -0
- package/dist/lib/functions/tree.tmp +13 -0
- package/dist/lib/functions/uppercase.sh +16 -17
- package/dist/lib/functions/uuidgen.tmp +27 -0
- package/dist/lib/functions/view-source.sh +2 -3
- package/dist/lib/functions/vscode.sh +1 -2
- package/dist/lib/functions/whoisport.sh +1 -1
- package/dist/lib/functions/zipf.sh +2 -2
- package/dist/lib/functions.sh +1 -1
- package/dist/lib/history.sh +22 -22
- package/dist/lib/paths/ant/ant.paths.sh +1 -1
- package/dist/lib/paths/default/default.paths.sh +10 -10
- package/dist/lib/paths/homebrew/homebrew.paths.sh +1 -1
- package/dist/lib/paths/java/java.paths.sh +1 -1
- package/dist/lib/paths/maven/maven.paths.sh +1 -1
- package/dist/lib/paths/node/node.paths.sh +1 -1
- package/dist/lib/paths/nvm/nvm.paths.sh +1 -1
- package/dist/lib/paths/pnpm/pnpm.paths.sh +1 -1
- package/dist/lib/paths/python/python.paths.sh +3 -3
- package/dist/lib/paths/ruby/ruby.paths.sh +1 -1
- package/dist/lib/paths/tmux/tmux.paths.sh +1 -1
- package/dist/lib/paths.sh +1 -1
- package/dist/scripts/backup.sh +89 -0
- package/dist/scripts/banner.sh +18 -0
- package/dist/scripts/build.sh +39 -0
- package/dist/scripts/clean.sh +29 -0
- package/dist/scripts/compile.sh +52 -0
- package/dist/scripts/copy.sh +106 -0
- package/dist/scripts/dotfiles.sh +61 -0
- package/dist/scripts/download.sh +33 -0
- package/dist/scripts/help.sh +55 -0
- package/dist/scripts/unpack.sh +26 -0
- package/package.json +14 -37
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.460) - 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.460) - 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/input/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.460) - 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,33 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.460) - 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 at ${GREEN}${DF_DOWNLOADDIR}${NC}..."
|
|
17
|
+
|
|
18
|
+
# Download the dotfiles with curl.
|
|
19
|
+
# shellcheck disable=SC2154
|
|
20
|
+
# curl -0 https://github.com/sebastienrousseau/dotfiles/archive/refs/tags/v"${DF_VERSION}".tar.gz -o "${DF_DOWNLOADDIR}"/dotfiles-"${DF_VERSION}".tar.gz
|
|
21
|
+
|
|
22
|
+
# Download the dotfiles with wget.
|
|
23
|
+
# shellcheck disable=SC2154
|
|
24
|
+
wget --no-check-certificate --content-disposition https://github.com/sebastienrousseau/dotfiles/archive/refs/tags/v"${DF_VERSION}".zip -O "${DF_DOWNLOADDIR}/v${DF_VERSION}.zip"
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
args=$* # Arguments passed to script.
|
|
29
|
+
export args="${args}" # Exporting arguments.
|
|
30
|
+
if [[ ${args} = "download" ]]; then
|
|
31
|
+
echo "$*"
|
|
32
|
+
download
|
|
33
|
+
fi
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.460) - 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.
|
|
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;96mbuild\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.460) - 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.
|
|
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
|
-
"
|
|
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.
|
|
74
|
+
"version": "0.2.460",
|
|
78
75
|
"scripts": {
|
|
79
|
-
"
|
|
80
|
-
"backup": "
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
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
|
-
"
|
|
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
|
}
|