@sebastienrousseau/dotfiles 0.2.455 → 0.2.456
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 +4 -4
- package/dist/Makefile +78 -0
- package/dist/bin/compile.sh +16 -0
- package/dist/bin/copy.sh +21 -0
- package/dist/bin/dotfiles.sh +185 -0
- package/dist/filesizes.txt +176 -0
- package/dist/shell/README.md +3 -0
- package/dist/shell/aliases/default/default.aliases.sh +199 -0
- package/dist/shell/aliases/gcloud/gcloud.aliases.sh +121 -0
- package/dist/shell/aliases/heroku/heroku.aliases.sh +1031 -0
- package/dist/shell/aliases/jekyll/jekyll.aliases.sh +50 -0
- package/dist/shell/aliases/pnpm/pnpm.aliases.sh +42 -0
- package/dist/shell/aliases/subversion/subversion.aliases.sh +123 -0
- package/dist/shell/aliases/tmux/tmux.aliases.sh +14 -0
- package/dist/shell/aliases.sh +12 -0
- package/dist/shell/configurations/README.md +3 -0
- package/dist/shell/configurations/bash/bashrc +36 -0
- package/dist/shell/configurations/curl/cacert.pem +3460 -0
- package/dist/shell/configurations/curl/curlrc +55 -0
- package/dist/shell/configurations/default/color.sh +22 -0
- package/dist/shell/configurations/default/editor.sh +16 -0
- package/dist/shell/configurations/default/prompt.sh +37 -0
- package/dist/shell/configurations/inputrc/inputrc +22 -0
- package/dist/shell/configurations/jshint/jshintrc +37 -0
- package/dist/shell/configurations/profile/profile +36 -0
- package/dist/shell/configurations/tmux/tmux +95 -0
- package/dist/shell/configurations/vim/vimrc +73 -0
- package/dist/shell/configurations/wget/wgetrc +39 -0
- package/dist/shell/configurations/zsh/zshrc +50 -0
- package/dist/shell/configurations.sh +10 -0
- package/dist/shell/exit.sh +9 -0
- package/dist/shell/functions/README.md +3 -0
- package/dist/shell/functions/cdls.sh +19 -0
- package/dist/shell/functions/curlheader.sh +20 -0
- package/dist/shell/functions/curltime.sh +31 -0
- package/dist/shell/functions/encode64.sh +25 -0
- package/dist/shell/functions/environment.sh +37 -0
- package/dist/shell/functions/extract.sh +32 -0
- package/dist/shell/functions/filehead.sh +4 -0
- package/dist/shell/functions/genpwd.sh +14 -0
- package/dist/shell/functions/goto.sh +14 -0
- package/dist/shell/functions/hidehiddenfiles.sh +12 -0
- package/dist/shell/functions/hostinfo.sh +25 -0
- package/dist/shell/functions/hstats.sh +9 -0
- package/dist/shell/functions/httpdebug.sh +7 -0
- package/dist/shell/functions/keygen.sh +23 -0
- package/dist/shell/functions/last.sh +9 -0
- package/dist/shell/functions/logout.sh +10 -0
- package/dist/shell/functions/lowercase.sh +28 -0
- package/dist/shell/functions/macos.sh +47 -0
- package/dist/shell/functions/matrix.sh +9 -0
- package/dist/shell/functions/mcd.sh +18 -0
- package/dist/shell/functions/mount_read_only.sh +9 -0
- package/dist/shell/functions/myproc.sh +7 -0
- package/dist/shell/functions/prependpath.sh +19 -0
- package/dist/shell/functions/ql.sh +7 -0
- package/dist/shell/functions/rd.sh +15 -0
- package/dist/shell/functions/remove_disk.sh +9 -0
- package/dist/shell/functions/ren.sh +11 -0
- package/dist/shell/functions/showhiddenfiles.sh +12 -0
- package/dist/shell/functions/size.sh +13 -0
- package/dist/shell/functions/stopwatch.sh +13 -0
- package/dist/shell/functions/uppercase.sh +28 -0
- package/dist/shell/functions/view-source.sh +8 -0
- package/dist/shell/functions/vscode.sh +31 -0
- package/dist/shell/functions/whoisport.sh +12 -0
- package/dist/shell/functions/zipf.sh +14 -0
- package/dist/shell/functions.sh +10 -0
- package/dist/shell/history.sh +107 -0
- 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/dist/shell/paths/ant/ant.paths.sh +15 -0
- package/dist/shell/paths/default/default.paths.sh +17 -0
- package/dist/shell/paths/homebrew/homebrew.paths.sh +25 -0
- package/dist/shell/paths/java/java.paths.sh +16 -0
- package/dist/shell/paths/maven/maven.paths.sh +17 -0
- package/dist/shell/paths/node/node.paths.sh +13 -0
- package/dist/shell/paths/nvm/nvm.paths.sh +21 -0
- package/dist/shell/paths/pnpm/pnpm.paths.sh +13 -0
- package/dist/shell/paths/python/python.paths.sh +29 -0
- package/dist/shell/paths/ruby/ruby.paths.sh +23 -0
- package/dist/shell/paths/tmux/tmux.paths.sh +15 -0
- package/dist/shell/paths.sh +12 -0
- package/package.json +2 -5
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
• [Request Feature][issues]
|
|
14
14
|
• [Contributing Guidelines][contributing]**
|
|
15
15
|
|
|
16
|
-
## 👋 Welcome to Dotfiles (v0.2.
|
|
16
|
+
## 👋 Welcome to Dotfiles (v0.2.456)
|
|
17
17
|
|
|
18
18
|
### Simply designed to fit your shell life
|
|
19
19
|
|
|
@@ -22,7 +22,7 @@ aimed at making your life easier by providing a set of scripts and configuration
|
|
|
22
22
|
files with new ways to get things done.
|
|
23
23
|
|
|
24
24
|
[![Getting Started][getting_started]][getting-started]
|
|
25
|
-
[![Download Dotfiles v0.2.
|
|
25
|
+
[![Download Dotfiles v0.2.456][download_button]][download]
|
|
26
26
|
|
|
27
27
|
Dotfiles aggregates a collection of standalone configuration files (dotfiles)
|
|
28
28
|
combined into a `shell` directory that can be used to customize your development
|
|
@@ -101,7 +101,7 @@ The following programs must be installed on your system to install Dotfiles:
|
|
|
101
101
|
|
|
102
102
|
### 1️⃣ Download Dotfiles
|
|
103
103
|
|
|
104
|
-
You can download the latest version (v0.2.
|
|
104
|
+
You can download the latest version (v0.2.456) with the following options:
|
|
105
105
|
|
|
106
106
|
- [**Manual download**][releases] - **The easiest way to install Dotfiles.**
|
|
107
107
|
- [**Install with PnPM**](https://www.npmjs.com/package/@sebastienrousseau/dotfiles)
|
|
@@ -413,7 +413,7 @@ bunch of awesome [contributors](https://github.com/sebastienrousseau/dotfiles/gr
|
|
|
413
413
|
[contributing]: https://github.com/sebastienrousseau/dotfiles/blob/master/.github/CONTRIBUTING.md
|
|
414
414
|
[curl]: https://curl.se/
|
|
415
415
|
[docs]: https://github.com/sebastienrousseau/dotfiles/docs
|
|
416
|
-
[download]: https://github.com/sebastienrousseau/dotfiles/archive/refs/tags/v0.2.
|
|
416
|
+
[download]: https://github.com/sebastienrousseau/dotfiles/archive/refs/tags/v0.2.456.tar.gz
|
|
417
417
|
[getting-started]: https://github.com/sebastienrousseau/dotfiles#getting-started
|
|
418
418
|
[git]: https://git-scm.com/
|
|
419
419
|
[github]: https://github.com/sebastienrousseau/dotfiles
|
package/dist/Makefile
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
#!/usr/bin/env make -f
|
|
2
|
+
|
|
3
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.456) - https://dotfiles.io
|
|
4
|
+
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
5
|
+
# License: MIT
|
|
6
|
+
|
|
7
|
+
.DEFAULT_GOAL := help
|
|
8
|
+
|
|
9
|
+
language := en
|
|
10
|
+
PNPM := $(shell command -v pnpm 2> /dev/null)
|
|
11
|
+
HOMEDIR:= $(shell pwd)
|
|
12
|
+
|
|
13
|
+
.PHONY: backup
|
|
14
|
+
backup: # @HELP Backup your current dotfiles.
|
|
15
|
+
backup: ## Backup your current dotfiles.
|
|
16
|
+
ifdef PNPM
|
|
17
|
+
pnpm run backup
|
|
18
|
+
else
|
|
19
|
+
sh $(HOMEDIR)/bin/dotfiles.sh backup
|
|
20
|
+
endif
|
|
21
|
+
|
|
22
|
+
.PHONY: assemble
|
|
23
|
+
assemble: # @HELP Assemble the dotfiles on your system.
|
|
24
|
+
assemble: ## Prepare the dotfiles on your system.
|
|
25
|
+
ifdef PNPM
|
|
26
|
+
pnpm run assemble
|
|
27
|
+
else
|
|
28
|
+
sh $(HOMEDIR)/bin/dotfiles assemble
|
|
29
|
+
endif
|
|
30
|
+
|
|
31
|
+
.PHONY: copy
|
|
32
|
+
copy: # @HELP Copy the dotfiles on your system.
|
|
33
|
+
copy: ## Copy the dotfiles on your system.
|
|
34
|
+
ifdef PNPM
|
|
35
|
+
pnpm run copy
|
|
36
|
+
else
|
|
37
|
+
sh $(HOMEDIR)/bin/dotfiles copy
|
|
38
|
+
endif
|
|
39
|
+
|
|
40
|
+
.PHONY: download
|
|
41
|
+
download: # @HELP Download the dotfiles on your system.
|
|
42
|
+
download: ## Download the dotfiles on your system.
|
|
43
|
+
ifdef PNPM
|
|
44
|
+
pnpm run download
|
|
45
|
+
else
|
|
46
|
+
sh $(HOMEDIR)/bin/dotfiles download
|
|
47
|
+
endif
|
|
48
|
+
|
|
49
|
+
.PHONY: unpack
|
|
50
|
+
unpack: # @HELP Unpack the dotfiles on your system.
|
|
51
|
+
unpack: ## Unpack the dotfiles on your system.
|
|
52
|
+
ifdef PNPM
|
|
53
|
+
pnpm run unpack
|
|
54
|
+
else
|
|
55
|
+
sh $(HOMEDIR)/bin/dotfiles unpack
|
|
56
|
+
endif
|
|
57
|
+
|
|
58
|
+
.PHONY: clean
|
|
59
|
+
clean: # @HELP Removes any previous setup directories.
|
|
60
|
+
clean:
|
|
61
|
+
ifdef PNPM
|
|
62
|
+
pnpm run clean
|
|
63
|
+
else
|
|
64
|
+
sh $(HOMEDIR)/bin/dotfiles clean
|
|
65
|
+
endif
|
|
66
|
+
|
|
67
|
+
.PHONY: help
|
|
68
|
+
help: # @HELP Display the help menu.
|
|
69
|
+
help:
|
|
70
|
+
ifdef PNPM
|
|
71
|
+
pnpm run help
|
|
72
|
+
else
|
|
73
|
+
@grep -E '^.*: *# *@HELP' $(MAKEFILE_LIST) \
|
|
74
|
+
| awk ' \
|
|
75
|
+
BEGIN {FS = ": *# *@HELP"}; \
|
|
76
|
+
{ printf " %-30s %s\n"$$1$$2 }; \
|
|
77
|
+
'
|
|
78
|
+
endif
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.456) - https://dotfiles.io
|
|
3
|
+
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
|
+
# License: MIT
|
|
5
|
+
|
|
6
|
+
## 🅲🅾🅼🅿🅸🅻🅴 🅳🅾🆃🅵🅸🅻🅴🆂 - Compile dotfiles.
|
|
7
|
+
|
|
8
|
+
compile() {
|
|
9
|
+
pnpm run cp:shell &&
|
|
10
|
+
pnpm run cl:tmp &&
|
|
11
|
+
pnpm run cp:bin &&
|
|
12
|
+
pnpm run cp:make &&
|
|
13
|
+
pnpm run minify &&
|
|
14
|
+
pnpm run filesizes
|
|
15
|
+
}
|
|
16
|
+
compile
|
package/dist/bin/copy.sh
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.456) - https://dotfiles.io
|
|
3
|
+
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
|
+
# License: MIT
|
|
5
|
+
|
|
6
|
+
## 🅲🅾🅿🆈 🅳🅾🆃🅵🅸🅻🅴🆂 - Copy dotfiles.
|
|
7
|
+
|
|
8
|
+
copy() {
|
|
9
|
+
pnpm run cp:bash &&
|
|
10
|
+
pnpm run cp:cert &&
|
|
11
|
+
pnpm run cp:curl &&
|
|
12
|
+
pnpm run cp:dirs &&
|
|
13
|
+
pnpm run cp:inpt &&
|
|
14
|
+
pnpm run cp:jsht &&
|
|
15
|
+
pnpm run cp:prof &&
|
|
16
|
+
pnpm run cp:tmux &&
|
|
17
|
+
pnpm run cp:vimr &&
|
|
18
|
+
pnpm run cp:wget &&
|
|
19
|
+
pnpm run cp:zshr
|
|
20
|
+
}
|
|
21
|
+
copy
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.456) - https://dotfiles.io
|
|
3
|
+
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
|
+
# License: MIT
|
|
5
|
+
|
|
6
|
+
## 🆅🅰🆁🅸🅰🅱🅻🅴🆂 - Set variables.
|
|
7
|
+
BACKUPDIR="${HOME}/.dotfiles_backup" # Backup directory.
|
|
8
|
+
BIGreen='\033[1;92m' # Green color.
|
|
9
|
+
BIRed='\033[1;91m' # Red color.
|
|
10
|
+
DOTFILESDIR="${HOME}/.dotfiles" # Location of dotfiles.
|
|
11
|
+
DOWNLOADDIR="${HOME}/Downloads" # Download directory.
|
|
12
|
+
NC='\033[0m' # Reset/No Color
|
|
13
|
+
VERSION="0.2.456" # Dotfiles Version number.
|
|
14
|
+
|
|
15
|
+
## 🅱🅰🅲🅺🆄🅿 - Backup existing files.
|
|
16
|
+
backup() {
|
|
17
|
+
echo "${BIRed}❭${NC} Creating a backup directory '${BIGreen}${BACKUPDIR}${NC}'."
|
|
18
|
+
mkdir -p "${BACKUPDIR}"
|
|
19
|
+
|
|
20
|
+
echo "${BIRed}❭${NC} Backing up existing dotfiles in '${BIGreen}${BACKUPDIR}${NC}'..."
|
|
21
|
+
# File list (use trailing slash for directories)
|
|
22
|
+
FILES="
|
|
23
|
+
.alias
|
|
24
|
+
.bash_aliases
|
|
25
|
+
.bash_profile
|
|
26
|
+
.bash_prompt
|
|
27
|
+
.bashrc
|
|
28
|
+
.curlrc
|
|
29
|
+
.dir_colors
|
|
30
|
+
.exports
|
|
31
|
+
.functions
|
|
32
|
+
.gitattributes
|
|
33
|
+
.gitconfig
|
|
34
|
+
.gitignore
|
|
35
|
+
.gitmessage
|
|
36
|
+
.inputrc
|
|
37
|
+
.npmrc
|
|
38
|
+
.path
|
|
39
|
+
.profile
|
|
40
|
+
.tmux.conf
|
|
41
|
+
.vimrc
|
|
42
|
+
.wgetrc
|
|
43
|
+
.yarnrc
|
|
44
|
+
.zshenv
|
|
45
|
+
.zshrc
|
|
46
|
+
cacert.pem
|
|
47
|
+
"
|
|
48
|
+
|
|
49
|
+
for file in ${FILES}; do
|
|
50
|
+
# shellcheck disable=SC2292
|
|
51
|
+
if [ -e "${HOME}/${file}" ]; then
|
|
52
|
+
echo "${BIRed}❭${NC} Backing up ${BIGreen}${file}${NC}..."
|
|
53
|
+
cp -f "${HOME}"/"${file}" "${BACKUPDIR}"/"${file}"
|
|
54
|
+
fi
|
|
55
|
+
done
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
## 🅲🅻🅴🅰🅽 - Clean up.
|
|
59
|
+
clean() {
|
|
60
|
+
echo "${BIRed}❭${NC} Cleaning up..."
|
|
61
|
+
rm -rfi "${DOTFILESDIR}"
|
|
62
|
+
rm -rfi "${BACKUPDIR}"
|
|
63
|
+
rm -rfi "${DOWNLOADDIR}"/dotfiles*
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
## 🅳🅾🆆🅽🅻🅾🅰🅳 - Download the dotfiles on your system.
|
|
67
|
+
download() {
|
|
68
|
+
echo "${BIRed}❭${NC} Downloading ${BIGreen}Dotfiles v${VERSION}${NC} on your system."
|
|
69
|
+
# wget https://github.com/sebastienrousseau/dotfiles/archive/refs/tags/v"${VERSION}".zip -N -O "${DOWNLOADDIR}/v${VERSION}.zip"
|
|
70
|
+
curl https://github.com/sebastienrousseau/dotfiles/archive/refs/tags/v"${VERSION}".zip -o "${DOWNLOADDIR}"/v"${VERSION}".zip
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
## 🆄🅽🅿🅰🅲🅺 - Unpack the dotfiles on your system.
|
|
74
|
+
unpack() {
|
|
75
|
+
echo "${BIRed}❭${NC} Unpacking ${BIGreen}Dotfiles v${VERSION}${NC}."
|
|
76
|
+
unzip -qq -u "${DOWNLOADDIR}"/v"${VERSION}".zip -d "${DOWNLOADDIR}"
|
|
77
|
+
mv "${DOWNLOADDIR}/dotfiles-${VERSION}/shell/" "${DOTFILESDIR}"
|
|
78
|
+
rm "${DOWNLOADDIR}/v${VERSION}.zip"
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
## 🅰🆂🆂🅴🅼🅱🅻🅴 - Assemble the dotfiles on your system.
|
|
82
|
+
assemble() {
|
|
83
|
+
echo "${BIRed}❭${NC} Preparing the dotfiles on your system."
|
|
84
|
+
backup &&
|
|
85
|
+
download &&
|
|
86
|
+
unpack &&
|
|
87
|
+
copy
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
## 🅲🅾🅿🆈 - Copy the dotfiles on your system.
|
|
91
|
+
copy() {
|
|
92
|
+
# echo "${BIRed}❭${NC} Copying the Dotfiles on your system."
|
|
93
|
+
# cd "${DOTFILESDIR}" &&
|
|
94
|
+
|
|
95
|
+
echo "${BIRed}❭${NC} Copying the Dotfiles on your system."
|
|
96
|
+
echo "${BIRed}❭${NC} Copying ${BIGreen}.bashrc${NC}"
|
|
97
|
+
cp -f "${DOTFILESDIR}"/shell/configurations/bash/bashrc "${HOME}"/.bashrc &&
|
|
98
|
+
echo "${BIRed}❭${NC} Copying ${BIGreen}cacert.pem${NC}"
|
|
99
|
+
cp -f "${DOTFILESDIR}"/shell/configurations/curl/cacert.pem "${HOME}"/cacert.pem &&
|
|
100
|
+
echo "${BIRed}❭${NC} Copying ${BIGreen}.curlrc${NC}"
|
|
101
|
+
cp -f "${DOTFILESDIR}"/shell/configurations/curl/curlrc "${HOME}"/.curlrc &&
|
|
102
|
+
echo "${BIRed}❭${NC} Copying ${BIGreen}.jshintrc${NC}"
|
|
103
|
+
cp -f "${DOTFILESDIR}"/shell/configurations/jshint/jshintrc "${HOME}"/.jshintrc &&
|
|
104
|
+
echo "${BIRed}❭${NC} Copying ${BIGreen}.profile${NC}"
|
|
105
|
+
cp -f "${DOTFILESDIR}"/shell/configurations/profile/profile "${HOME}"/.profile &&
|
|
106
|
+
echo "${BIRed}❭${NC} Copying ${BIGreen}.tmux.conf${NC}"
|
|
107
|
+
cp -f "${DOTFILESDIR}"/shell/configurations/tmux/tmux "${HOME}"/.tmux.conf &&
|
|
108
|
+
echo "${BIRed}❭${NC} Copying ${BIGreen}.vimrc${NC}"
|
|
109
|
+
cp -f "${DOTFILESDIR}"/shell/configurations/vim/vimrc "${HOME}"/.vimrc &&
|
|
110
|
+
echo "${BIRed}❭${NC} Copying ${BIGreen}.wgetrc${NC}"
|
|
111
|
+
cp -f "${DOTFILESDIR}"/shell/configurations/wget/wgetrc "${HOME}"/.wgetrc &&
|
|
112
|
+
echo "${BIRed}❭${NC} Copying ${BIGreen}.zshrc${NC}"
|
|
113
|
+
cp -f "${DOTFILESDIR}"/shell/configurations/zsh/zshrc "${HOME}"/.zshrc
|
|
114
|
+
|
|
115
|
+
echo "${BIRed}❭${NC} Cleaning up installation files."
|
|
116
|
+
rm -Rf "${DOTFILESDIR}"/shell/configurations/bash &&
|
|
117
|
+
rm -Rf "${DOTFILESDIR}"/shell/configurations/curl &&
|
|
118
|
+
rm -Rf "${DOTFILESDIR}"/shell/configurations/jshint &&
|
|
119
|
+
rm -Rf "${DOTFILESDIR}"/shell/configurations/profile &&
|
|
120
|
+
rm -Rf "${DOTFILESDIR}"/shell/configurations/tmux &&
|
|
121
|
+
rm -Rf "${DOTFILESDIR}"/shell/configurations/vim &&
|
|
122
|
+
rm -Rf "${DOTFILESDIR}"/shell/configurations/wget &&
|
|
123
|
+
rm -Rf "${DOTFILESDIR}"/shell/configurations/zsh &&
|
|
124
|
+
|
|
125
|
+
echo "${BIRed}❭${NC} ${BIGreen}Dotfiles v${VERSION}${NC} has been installed on your system."
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
## 🅷🅴🅻🅿 🅼🅴🅽🆄 - Display help menu.
|
|
129
|
+
help() {
|
|
130
|
+
clear
|
|
131
|
+
cat <<EOF
|
|
132
|
+
|
|
133
|
+
┌───────────────────────────────────────────┐
|
|
134
|
+
│ Dotfiles (v${VERSION}) │
|
|
135
|
+
├───────────────────────────────────────────┤
|
|
136
|
+
│ Simply designed to fit your shell life. │
|
|
137
|
+
└───────────────────────────────────────────┘
|
|
138
|
+
|
|
139
|
+
USAGE:
|
|
140
|
+
|
|
141
|
+
dotfiles [COMMAND]
|
|
142
|
+
|
|
143
|
+
COMMANDS:
|
|
144
|
+
|
|
145
|
+
backup - Backup existing dotfiles from the '${HOME}' directory
|
|
146
|
+
clean - Removes any previous setup directories
|
|
147
|
+
copy - Copy the new dotfiles files to your '${HOME}' directory
|
|
148
|
+
download - Download the latest Dotfiles (v${VERSION})
|
|
149
|
+
assemble - Run the full installation process
|
|
150
|
+
unpack - Unpack the Dotfiles
|
|
151
|
+
help - Show the help menu
|
|
152
|
+
|
|
153
|
+
DOCUMENTATION:
|
|
154
|
+
website - https://dotfiles.io
|
|
155
|
+
|
|
156
|
+
LICENSE:
|
|
157
|
+
This project is licensed under the MIT License.
|
|
158
|
+
|
|
159
|
+
EOF
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
# shellcheck disable=SC2292
|
|
163
|
+
if [ "$1" = "backup" ]; then
|
|
164
|
+
echo "${BIRed}❭${NC} Backing up.${NC}"
|
|
165
|
+
backup
|
|
166
|
+
elif [ "$1" = "clean" ]; then
|
|
167
|
+
echo "${BIRed}❭${NC} Removes any previous setup directories.${NC}"
|
|
168
|
+
clean
|
|
169
|
+
elif [ "$1" = "copy" ]; then
|
|
170
|
+
echo "${BIRed}❭${NC} Copying dotfiles.${NC}"
|
|
171
|
+
copy
|
|
172
|
+
elif [ "$1" = "download" ]; then
|
|
173
|
+
echo "${BIRed}❭${NC} Downloading ${BIGreen}Dotfiles v${VERSION}${NC}."
|
|
174
|
+
download
|
|
175
|
+
elif [ "$1" = "help" ]; then
|
|
176
|
+
help
|
|
177
|
+
elif [ "$1" = "assemble" ]; then
|
|
178
|
+
echo "${BIRed}❭${NC} Installing ${BIGreen}Dotfiles v${VERSION}${NC}."
|
|
179
|
+
assemble
|
|
180
|
+
elif [ "$1" = "unpack" ]; then
|
|
181
|
+
echo "${BIRed}❭${NC} Unpacking ${BIGreen}Dotfiles v${VERSION}${NC}."
|
|
182
|
+
unpack
|
|
183
|
+
else
|
|
184
|
+
help
|
|
185
|
+
fi
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
┌────────────────────────────────────────────────┬───────────┬────────────────┐
|
|
2
|
+
│ File │ Size │ Size (gzipped) │
|
|
3
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
4
|
+
│ Makefile │ 1.65 kB │ 656 B │
|
|
5
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
6
|
+
│ filesizes.txt │ 0 B │ 20 B │
|
|
7
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
8
|
+
│ bin/compile.sh │ 402 B │ 260 B │
|
|
9
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
10
|
+
│ bin/copy.sh │ 491 B │ 272 B │
|
|
11
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
12
|
+
│ bin/dotfiles.sh │ 6.52 kB │ 1.8 kB │
|
|
13
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
14
|
+
│ shell/README.md │ 86 B │ 93 B │
|
|
15
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
16
|
+
│ shell/aliases.sh │ 349 B │ 288 B │
|
|
17
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
18
|
+
│ shell/configurations.sh │ 354 B │ 289 B │
|
|
19
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
20
|
+
│ shell/exit.sh │ 288 B │ 260 B │
|
|
21
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
22
|
+
│ shell/functions.sh │ 326 B │ 273 B │
|
|
23
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
24
|
+
│ shell/history.sh │ 6.2 kB │ 2.42 kB │
|
|
25
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
26
|
+
│ shell/index.d.ts │ 46 B │ 66 B │
|
|
27
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
28
|
+
│ shell/index.d.ts.map │ 109 B │ 109 B │
|
|
29
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
30
|
+
│ shell/index.js │ 99 B │ 104 B │
|
|
31
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
32
|
+
│ shell/index.js.map │ 255 B │ 179 B │
|
|
33
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
34
|
+
│ shell/paths.sh │ 333 B │ 284 B │
|
|
35
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
36
|
+
│ shell/aliases/default/default.aliases.sh │ 15.2 kB │ 4.38 kB │
|
|
37
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
38
|
+
│ shell/aliases/gcloud/gcloud.aliases.sh │ 8.32 kB │ 2.01 kB │
|
|
39
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
40
|
+
│ shell/aliases/heroku/heroku.aliases.sh │ 32.6 kB │ 7.05 kB │
|
|
41
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
42
|
+
│ shell/aliases/jekyll/jekyll.aliases.sh │ 1.95 kB │ 587 B │
|
|
43
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
44
|
+
│ shell/aliases/pnpm/pnpm.aliases.sh │ 1.21 kB │ 477 B │
|
|
45
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
46
|
+
│ shell/aliases/subversion/subversion.aliases.sh │ 3.83 kB │ 1.39 kB │
|
|
47
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
48
|
+
│ shell/aliases/tmux/tmux.aliases.sh │ 765 B │ 363 B │
|
|
49
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
50
|
+
│ shell/configurations/README.md │ 86 B │ 93 B │
|
|
51
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
52
|
+
│ shell/configurations/bash/bashrc │ 2.01 kB │ 786 B │
|
|
53
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
54
|
+
│ shell/configurations/curl/cacert.pem │ 222 kB │ 127 kB │
|
|
55
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
56
|
+
│ shell/configurations/curl/curlrc │ 1.79 kB │ 1.03 kB │
|
|
57
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
58
|
+
│ shell/configurations/default/color.sh │ 659 B │ 473 B │
|
|
59
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
60
|
+
│ shell/configurations/default/editor.sh │ 381 B │ 278 B │
|
|
61
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
62
|
+
│ shell/configurations/default/prompt.sh │ 1.12 kB │ 595 B │
|
|
63
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
64
|
+
│ shell/configurations/inputrc/inputrc │ 1.25 kB │ 573 B │
|
|
65
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
66
|
+
│ shell/configurations/jshint/jshintrc │ 642 B │ 263 B │
|
|
67
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
68
|
+
│ shell/configurations/profile/profile │ 1.11 kB │ 581 B │
|
|
69
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
70
|
+
│ shell/configurations/tmux/tmux │ 7.7 kB │ 2.09 kB │
|
|
71
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
72
|
+
│ shell/configurations/vim/vimrc │ 4.26 kB │ 1.14 kB │
|
|
73
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
74
|
+
│ shell/configurations/wget/wgetrc │ 1.31 kB │ 797 B │
|
|
75
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
76
|
+
│ shell/configurations/zsh/zshrc │ 2.2 kB │ 935 B │
|
|
77
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
78
|
+
│ shell/functions/README.md │ 86 B │ 93 B │
|
|
79
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
80
|
+
│ shell/functions/cdls.sh │ 520 B │ 394 B │
|
|
81
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
82
|
+
│ shell/functions/curlheader.sh │ 668 B │ 375 B │
|
|
83
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
84
|
+
│ shell/functions/curltime.sh │ 1.19 kB │ 525 B │
|
|
85
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
86
|
+
│ shell/functions/encode64.sh │ 584 B │ 336 B │
|
|
87
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
88
|
+
│ shell/functions/environment.sh │ 877 B │ 413 B │
|
|
89
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
90
|
+
│ shell/functions/extract.sh │ 796 B │ 462 B │
|
|
91
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
92
|
+
│ shell/functions/filehead.sh │ 139 B │ 127 B │
|
|
93
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
94
|
+
│ shell/functions/genpwd.sh │ 537 B │ 356 B │
|
|
95
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
96
|
+
│ shell/functions/goto.sh │ 342 B │ 288 B │
|
|
97
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
98
|
+
│ shell/functions/hidehiddenfiles.sh │ 400 B │ 296 B │
|
|
99
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
100
|
+
│ shell/functions/hostinfo.sh │ 551 B │ 378 B │
|
|
101
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
102
|
+
│ shell/functions/hstats.sh │ 410 B │ 331 B │
|
|
103
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
104
|
+
│ shell/functions/httpdebug.sh │ 439 B │ 316 B │
|
|
105
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
106
|
+
│ shell/functions/keygen.sh │ 553 B │ 381 B │
|
|
107
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
108
|
+
│ shell/functions/last.sh │ 254 B │ 231 B │
|
|
109
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
110
|
+
│ shell/functions/logout.sh │ 310 B │ 265 B │
|
|
111
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
112
|
+
│ shell/functions/lowercase.sh │ 860 B │ 491 B │
|
|
113
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
114
|
+
│ shell/functions/macos.sh │ 2.42 kB │ 1.2 kB │
|
|
115
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
116
|
+
│ shell/functions/matrix.sh │ 659 B │ 508 B │
|
|
117
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
118
|
+
│ shell/functions/mcd.sh │ 451 B │ 352 B │
|
|
119
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
120
|
+
│ shell/functions/mount_read_only.sh │ 318 B │ 265 B │
|
|
121
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
122
|
+
│ shell/functions/myproc.sh │ 298 B │ 264 B │
|
|
123
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
124
|
+
│ shell/functions/prependpath.sh │ 728 B │ 322 B │
|
|
125
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
126
|
+
│ shell/functions/ql.sh │ 263 B │ 247 B │
|
|
127
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
128
|
+
│ shell/functions/rd.sh │ 429 B │ 348 B │
|
|
129
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
130
|
+
│ shell/functions/remove_disk.sh │ 245 B │ 225 B │
|
|
131
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
132
|
+
│ shell/functions/ren.sh │ 277 B │ 247 B │
|
|
133
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
134
|
+
│ shell/functions/showhiddenfiles.sh │ 401 B │ 296 B │
|
|
135
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
136
|
+
│ shell/functions/size.sh │ 366 B │ 309 B │
|
|
137
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
138
|
+
│ shell/functions/stopwatch.sh │ 350 B │ 286 B │
|
|
139
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
140
|
+
│ shell/functions/uppercase.sh │ 848 B │ 481 B │
|
|
141
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
142
|
+
│ shell/functions/view-source.sh │ 352 B │ 296 B │
|
|
143
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
144
|
+
│ shell/functions/vscode.sh │ 653 B │ 405 B │
|
|
145
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
146
|
+
│ shell/functions/whoisport.sh │ 368 B │ 299 B │
|
|
147
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
148
|
+
│ shell/functions/zipf.sh │ 409 B │ 324 B │
|
|
149
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
150
|
+
│ shell/paths/ant/ant.paths.sh │ 461 B │ 334 B │
|
|
151
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
152
|
+
│ shell/paths/default/default.paths.sh │ 867 B │ 328 B │
|
|
153
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
154
|
+
│ shell/paths/homebrew/homebrew.paths.sh │ 879 B │ 523 B │
|
|
155
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
156
|
+
│ shell/paths/java/java.paths.sh │ 661 B │ 454 B │
|
|
157
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
158
|
+
│ shell/paths/maven/maven.paths.sh │ 556 B │ 371 B │
|
|
159
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
160
|
+
│ shell/paths/node/node.paths.sh │ 448 B │ 336 B │
|
|
161
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
162
|
+
│ shell/paths/nvm/nvm.paths.sh │ 863 B │ 401 B │
|
|
163
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
164
|
+
│ shell/paths/pnpm/pnpm.paths.sh │ 439 B │ 316 B │
|
|
165
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
166
|
+
│ shell/paths/python/python.paths.sh │ 811 B │ 456 B │
|
|
167
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
168
|
+
│ shell/paths/ruby/ruby.paths.sh │ 664 B │ 396 B │
|
|
169
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
170
|
+
│ shell/paths/tmux/tmux.paths.sh │ 407 B │ 319 B │
|
|
171
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
172
|
+
├────────────────────────────────────────────────┼───────────┼────────────────┤
|
|
173
|
+
│ Total files: 84 │ 355 kB │ 177 kB │
|
|
174
|
+
└────────────────────────────────────────────────┴───────────┴────────────────┘
|
|
175
|
+
|
|
176
|
+
|