@sebastienrousseau/dotfiles 0.2.440 → 0.2.452
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/COPYRIGHT +5 -0
- package/LICENSE +1260 -2
- package/Makefile +79 -0
- package/README.md +328 -71
- package/bin/dotfiles.sh +150 -0
- package/index.js +24 -0
- package/package.json +99 -25
- package/pnpm-lock.yaml +178 -0
- package/pnpm-workspace.yaml +2 -0
- package/shell/README.md +3 -0
- package/shell/aliases/README.md +327 -0
- package/{Icon/r → shell/aliases/default/README.md} +0 -0
- package/shell/aliases/default/default.aliases.sh +199 -0
- package/shell/aliases/gcloud/README.md +117 -0
- package/shell/aliases/gcloud/gcloud.aliases.sh +121 -0
- package/shell/aliases/git/README.md +279 -0
- package/shell/aliases/git/git.aliases.wip +586 -0
- package/shell/aliases/heroku/README.md +457 -0
- package/shell/aliases/heroku/heroku.aliases.sh +1031 -0
- package/shell/aliases/jekyll/README.md +32 -0
- package/shell/aliases/jekyll/jekyll.aliases.sh +50 -0
- package/shell/aliases/pnpm/README.md +3 -0
- package/shell/aliases/pnpm/pnpm.aliases.sh +42 -0
- package/shell/aliases/subversion/README.md +54 -0
- package/shell/aliases/subversion/subversion.aliases.sh +123 -0
- package/shell/aliases/tmux/README.md +0 -0
- package/shell/aliases/tmux/tmux.aliases.sh +14 -0
- package/shell/aliases.sh +12 -0
- package/shell/configurations/README.md +3 -0
- package/shell/configurations/bash/bashrc +36 -0
- package/shell/configurations/curl/cacert.pem +3460 -0
- package/shell/configurations/curl/curlrc +55 -0
- package/shell/configurations/default/color.sh +17 -0
- package/shell/configurations/default/editor.sh +16 -0
- package/shell/configurations/default/prompt.sh +37 -0
- package/shell/configurations/inputrc/inputrc +22 -0
- package/shell/configurations/jshint/jshintrc +37 -0
- package/shell/configurations/profile/profile +36 -0
- package/shell/configurations/tmux/tmux +95 -0
- package/shell/configurations/vim/vimrc +73 -0
- package/{.wgetrc → shell/configurations/wget/wgetrc} +4 -0
- package/shell/configurations/zsh/zshrc +40 -0
- package/shell/configurations.sh +10 -0
- package/shell/exit.sh +9 -0
- package/shell/functions/README.md +3 -0
- package/shell/functions/cdls.sh +19 -0
- package/shell/functions/changediskpwd.sh +19 -0
- package/shell/functions/code.sh +18 -0
- package/shell/functions/countdown.sh +33 -0
- package/shell/functions/curlheader.sh +20 -0
- package/shell/functions/curltime.sh +31 -0
- package/shell/functions/encode64.sh +25 -0
- package/shell/functions/environment.sh +37 -0
- package/shell/functions/extract.sh +32 -0
- package/shell/functions/filehead.sh +4 -0
- package/{zsh/zsh/functions/genpwd.zsh → shell/functions/genpwd.sh} +8 -3
- package/shell/functions/goto.sh +14 -0
- package/shell/functions/headers.sh +4 -0
- package/{zsh/zsh/functions/hidehiddenfiles.zsh → shell/functions/hidehiddenfiles.sh} +7 -2
- package/shell/functions/history-all.sh +7 -0
- package/shell/functions/hostinfo.sh +25 -0
- package/{zsh/zsh/functions/hstats.zsh → shell/functions/hstats.sh} +6 -1
- package/shell/functions/httpdebug.sh +7 -0
- package/shell/functions/keygen.sh +23 -0
- package/shell/functions/last.sh +9 -0
- package/shell/functions/logout.sh +10 -0
- package/shell/functions/lowercase.sh +28 -0
- package/shell/functions/macos.sh +47 -0
- package/shell/functions/matrix.sh +9 -0
- package/shell/functions/mcd.sh +18 -0
- package/shell/functions/mount_read_only.sh +9 -0
- package/shell/functions/myproc.sh +7 -0
- package/shell/functions/prependpath.sh +19 -0
- package/shell/functions/print.sh +13 -0
- package/shell/functions/ql.sh +7 -0
- package/shell/functions/rd.sh +15 -0
- package/shell/functions/remove_disk.sh +9 -0
- package/shell/functions/ren.sh +11 -0
- package/shell/functions/rm.sh +13 -0
- package/shell/functions/rps.sh +103 -0
- package/{zsh/zsh/functions/showhiddenfiles.zsh → shell/functions/showhiddenfiles.sh} +7 -2
- package/{zsh/zsh/functions/size.zsh → shell/functions/size.sh} +6 -1
- package/shell/functions/stopwatch.sh +13 -0
- package/shell/functions/trash.sh +13 -0
- package/shell/functions/tree.sh +13 -0
- package/shell/functions/uppercase.sh +28 -0
- package/shell/functions/uuidgen.sh +27 -0
- package/shell/functions/view-source.sh +8 -0
- package/shell/functions/vscode.sh +31 -0
- package/shell/functions/whoisport.sh +12 -0
- package/shell/functions/zipf.sh +14 -0
- package/shell/functions.sh +10 -0
- package/shell/history.sh +110 -0
- package/shell/paths/ant/ant.paths.sh +15 -0
- package/shell/paths/default/default.paths.sh +17 -0
- package/shell/paths/homebrew/homebrew.paths.sh +22 -0
- package/shell/paths/java/java.paths.sh +16 -0
- package/shell/paths/maven/maven.paths.sh +16 -0
- package/shell/paths/node/node.paths.sh +13 -0
- package/shell/paths/nvm/nvm.paths.sh +21 -0
- package/shell/paths/pnpm/pnpm.paths.sh +13 -0
- package/shell/paths/ruby/ruby.paths.sh +23 -0
- package/shell/paths/tmux/tmux.paths.sh +15 -0
- package/shell/paths.sh +12 -0
- package/.curlrc +0 -17
- package/.eslintrc +0 -44
- package/.jshintrc +0 -22
- package/.travis.yml +0 -21
- package/CODE_OF_CONDUCT.md +0 -46
- package/CONTRIBUTING.md +0 -60
- package/Dotfiles.png +0 -0
- package/ISSUE_TEMPLATE.md +0 -43
- package/bash/.bash_aliases +0 -409
- package/bash/.bash_exit +0 -25
- package/bash/.bash_functions +0 -312
- package/bash/.bash_load_completion +0 -62
- package/bash/.bash_profile +0 -295
- package/bash/.bashrc +0 -47
- package/homebrew/brew-cask.sh +0 -165
- package/homebrew/brew-package.sh +0 -256
- package/homebrew/brew-tap.sh +0 -35
- package/homebrew/install.sh +0 -29
- package/zsh/.zshrc +0 -64
- package/zsh/aliases.zsh +0 -427
- package/zsh/configurations.zsh +0 -19
- package/zsh/exit.zsh +0 -21
- package/zsh/functions.zsh +0 -42
- package/zsh/history.zsh +0 -53
- package/zsh/profile.zsh +0 -17
- package/zsh/zsh/configurations/color.zsh +0 -21
- package/zsh/zsh/configurations/editor.zsh +0 -21
- package/zsh/zsh/configurations/history.zsh +0 -53
- package/zsh/zsh/configurations/path.zsh +0 -123
- package/zsh/zsh/configurations/prompt.zsh +0 -24
- package/zsh/zsh/functions/cd.zsh +0 -51
- package/zsh/zsh/functions/cdls.zsh +0 -11
- package/zsh/zsh/functions/changediskpwd.zsh +0 -4
- package/zsh/zsh/functions/code.zsh +0 -2
- package/zsh/zsh/functions/countdown.zsh +0 -33
- package/zsh/zsh/functions/curlheader.zsh +0 -12
- package/zsh/zsh/functions/curltime.zsh +0 -12
- package/zsh/zsh/functions/extract.zsh +0 -27
- package/zsh/zsh/functions/goto.zsh +0 -8
- package/zsh/zsh/functions/history-all.zsh +0 -2
- package/zsh/zsh/functions/hostinfo.zsh +0 -19
- package/zsh/zsh/functions/httpdebug.zsh +0 -2
- package/zsh/zsh/functions/keygen.zsh +0 -18
- package/zsh/zsh/functions/logout.zsh +0 -5
- package/zsh/zsh/functions/lowercase.zsh +0 -23
- package/zsh/zsh/functions/matrix.zsh +0 -4
- package/zsh/zsh/functions/mcd.zsh +0 -11
- package/zsh/zsh/functions/mount_read_only.zsh +0 -4
- package/zsh/zsh/functions/myproc.zsh +0 -2
- package/zsh/zsh/functions/print.zsh +0 -8
- package/zsh/zsh/functions/ql.zsh +0 -2
- package/zsh/zsh/functions/rd.zsh +0 -8
- package/zsh/zsh/functions/remove_disk.zsh +0 -4
- package/zsh/zsh/functions/rm.zsh +0 -10
- package/zsh/zsh/functions/stopwatch.zsh +0 -8
- package/zsh/zsh/functions/trash.zsh +0 -8
- package/zsh/zsh/functions/tree.zsh +0 -8
- package/zsh/zsh/functions/uppercase.zsh +0 -23
- package/zsh/zsh/functions/zipf.zsh +0 -9
package/Makefile
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
#!/usr/bin/env make -f
|
|
2
|
+
|
|
3
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - https://dotfiles.io
|
|
4
|
+
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
5
|
+
# License: MIT
|
|
6
|
+
|
|
7
|
+
.DEFAULT_GOAL := help
|
|
8
|
+
|
|
9
|
+
homedir := ./installer
|
|
10
|
+
language := en
|
|
11
|
+
PNPM := $(shell command -v pnpm 2> /dev/null)
|
|
12
|
+
HOMEDIR:= $(shell pwd)
|
|
13
|
+
|
|
14
|
+
.PHONY: backup
|
|
15
|
+
backup: # @HELP Backup your current dotfiles.
|
|
16
|
+
backup: ## Backup your current dotfiles.
|
|
17
|
+
ifdef PNPM
|
|
18
|
+
pnpm run backup
|
|
19
|
+
else
|
|
20
|
+
sh $(HOMEDIR)/bin/dotfiles.sh backup
|
|
21
|
+
endif
|
|
22
|
+
|
|
23
|
+
.PHONY: installer
|
|
24
|
+
installer: # @HELP Install the dotfiles on your system.
|
|
25
|
+
installer: ## Install the dotfiles on your system.
|
|
26
|
+
ifdef PNPM
|
|
27
|
+
pnpm run installer
|
|
28
|
+
else
|
|
29
|
+
sh $(HOMEDIR)/bin/dotfiles installer
|
|
30
|
+
endif
|
|
31
|
+
|
|
32
|
+
.PHONY: copy
|
|
33
|
+
copy: # @HELP Copy the dotfiles on your system.
|
|
34
|
+
copy: ## Copy the dotfiles on your system.
|
|
35
|
+
ifdef PNPM
|
|
36
|
+
pnpm run copy
|
|
37
|
+
else
|
|
38
|
+
sh $(HOMEDIR)/bin/dotfiles copy
|
|
39
|
+
endif
|
|
40
|
+
|
|
41
|
+
.PHONY: download
|
|
42
|
+
download: # @HELP Download the dotfiles on your system.
|
|
43
|
+
download: ## Download the dotfiles on your system.
|
|
44
|
+
ifdef PNPM
|
|
45
|
+
pnpm run download
|
|
46
|
+
else
|
|
47
|
+
sh $(HOMEDIR)/bin/dotfiles download
|
|
48
|
+
endif
|
|
49
|
+
|
|
50
|
+
.PHONY: unpack
|
|
51
|
+
unpack: # @HELP Unpack the dotfiles on your system.
|
|
52
|
+
unpack: ## Unpack the dotfiles on your system.
|
|
53
|
+
ifdef PNPM
|
|
54
|
+
pnpm run unpack
|
|
55
|
+
else
|
|
56
|
+
sh $(HOMEDIR)/bin/dotfiles unpack
|
|
57
|
+
endif
|
|
58
|
+
|
|
59
|
+
.PHONY: clean
|
|
60
|
+
clean: # @HELP Removes any previous setup directories. (site, theme source and theme folders)
|
|
61
|
+
clean:
|
|
62
|
+
ifdef PNPM
|
|
63
|
+
pnpm run clean
|
|
64
|
+
else
|
|
65
|
+
sh $(HOMEDIR)/bin/dotfiles clean
|
|
66
|
+
endif
|
|
67
|
+
|
|
68
|
+
.PHONY: help
|
|
69
|
+
help: # @HELP Display the help menu.
|
|
70
|
+
help:
|
|
71
|
+
ifdef PNPM
|
|
72
|
+
pnpm run help
|
|
73
|
+
else
|
|
74
|
+
@grep -E '^.*: *# *@HELP' $(MAKEFILE_LIST) \
|
|
75
|
+
| awk ' \
|
|
76
|
+
BEGIN {FS = ": *# *@HELP"}; \
|
|
77
|
+
{ printf " %-30s %s\n"$$1$$2 }; \
|
|
78
|
+
'
|
|
79
|
+
endif
|
package/README.md
CHANGED
|
@@ -1,109 +1,366 @@
|
|
|
1
|
-
|
|
2
|
-
<img src="Dotfiles.png" alt="Dotfiles Logo" title="Dotfiles Logo">
|
|
3
|
-
</p>
|
|
1
|
+
# Dotfiles
|
|
4
2
|
|
|
5
|
-
|
|
3
|
+

|
|
6
4
|
|
|
7
|
-
[![
|
|
8
|
-
[![
|
|
9
|
-
[![
|
|
5
|
+
[![Codacy][codacy-grade]][codacy-url]
|
|
6
|
+
[![Contributors][contributors-shield]][contributors-url]
|
|
7
|
+
[![Forks][forks-shield]][forks-url]
|
|
8
|
+
[![License][license]][license-url]
|
|
9
|
+
[![Love][love]][project-url]
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
## 👋 Welcome to Dotfiles
|
|
12
|
+
|
|
13
|
+
Dotfiles - A set of macOS / Linux and Windows configuration files.
|
|
14
|
+
|
|
15
|
+
### Simply designed to fit your shell life
|
|
16
|
+
|
|
17
|
+
Dotfiles aggregates a collection of standalone configuration files (dotfiles)
|
|
18
|
+
combined into a `shell` directory that can be used to customize your development
|
|
19
|
+
environment across numerous computers and operating systems (macOS, Windows,
|
|
20
|
+
Linux).
|
|
21
|
+
|
|
22
|
+
The Dotfiles provides modular configuration files (aliases, functions and paths)
|
|
23
|
+
built for speed, higher performance, with the aim of helping you have an easy
|
|
24
|
+
and centralized way to configure your environment and applications.
|
|
25
|
+
|
|
26
|
+
![divider][divider]
|
|
27
|
+
|
|
28
|
+
## 💼 Documentation
|
|
29
|
+
|
|
30
|
+
To read the documentation for Dotfiles, please visit:
|
|
31
|
+
|
|
32
|
+
- [Dotfiles website][project-url]
|
|
33
|
+
- [Dotfiles Docs GitHub repository](https://github.com/sebastienrousseau/dotfiles/docs)
|
|
34
|
+
|
|
35
|
+
![divider][divider]
|
|
36
|
+
|
|
37
|
+
## 🔧 Installation
|
|
38
|
+
|
|
39
|
+
We are so delighted that you have decided to try Dotfiles, and are sure that you
|
|
40
|
+
will find Dotfiles unique and helpful.
|
|
41
|
+
|
|
42
|
+
Dotfiles seeks to bring you high quality and easy to use standalone and modular configuration files that can be used to customize your development environment
|
|
43
|
+
across numerous computers and operating systems (macOS, Windows, Linux).
|
|
44
|
+
|
|
45
|
+
We understand that you may want to install Dotfiles without reading long manuals
|
|
46
|
+
and lengthy documentation. So we have tried to make the installation process as
|
|
47
|
+
easy as possible.
|
|
48
|
+
|
|
49
|
+
### 📦 Prerequisites
|
|
50
|
+
|
|
51
|
+
However, we recommend that you read the below guidelines before installing
|
|
52
|
+
Dotfiles. A range of installation methods are available, and we recommend that
|
|
53
|
+
you choose the one that best suits your needs.
|
|
54
|
+
|
|
55
|
+
![divider][divider]
|
|
56
|
+
|
|
57
|
+
### ✔️ Requirements
|
|
58
|
+
|
|
59
|
+
The following requirements are needed to install Dotfiles:
|
|
60
|
+
|
|
61
|
+
- [**Bash**](https://www.gnu.org/software/bash/) - a shell, or command language
|
|
62
|
+
interpreter, for the GNU operating system.
|
|
63
|
+
- Or [**Zsh**](https://www.zsh.org/) - a shell designed for interactive use,
|
|
64
|
+
although it is also a powerful scripting language.
|
|
65
|
+
- [**Git**](https://git-scm.com) - a free and open source distributed version
|
|
66
|
+
control system designed to handle everything from small to very large projects
|
|
67
|
+
with speed and efficiency.
|
|
68
|
+
- [**Curl**](https://curl.se) - a command line tool for transferring data with
|
|
69
|
+
URL syntax.
|
|
70
|
+
- [**Wget**](https://www.gnu.org/software/wget/) - a free software package for
|
|
71
|
+
retrieving files using HTTP, HTTPS and FTP, the most widely-used Internet
|
|
72
|
+
protocols.
|
|
73
|
+
- [**Make**](https://www.gnu.org/software/make/) - a tool which controls the
|
|
74
|
+
generation of executables and other non-source files of a program from the
|
|
75
|
+
program's source files.
|
|
76
|
+
- [**Shell**](https://www.gnu.org/software/shell/) - a shell command line
|
|
77
|
+
interpreter program for Unix-like operating systems.
|
|
78
|
+
- [**PnPM**](https://pnpm.io) - a package manager for JavaScript and Node.js. It
|
|
79
|
+
is fast, disk space efficient and reliable.
|
|
80
|
+
|
|
81
|
+
### 1️⃣ Download Dotfiles
|
|
82
|
+
|
|
83
|
+
You can download the latest version (v0.2.452) with any of the following
|
|
84
|
+
options:
|
|
85
|
+
|
|
86
|
+
- [**Manual download**](https://github.com/sebastienrousseau/dotfiles/archive/refs/tags/v0.2.450.zip) Download the latest release and extract the archive in your home
|
|
87
|
+
directory. **This is the easiest way to install Dotfiles.**
|
|
88
|
+
- [**Install with PnPM**](https://www.npmjs.com/package/@sebastienrousseau/dotfiles)
|
|
89
|
+
`pnpm i -g @sebastienrousseau/dotfiles`.
|
|
90
|
+
- [**Install with Npm**](https://www.npmjs.com/package/@sebastienrousseau/dotfiles)
|
|
91
|
+
`npm install -g @sebastienrousseau/dotfiles`.
|
|
92
|
+
- [**Install with Yarn**](https://yarnpkg.com/package/@sebastienrousseau/dotfiles)
|
|
93
|
+
`yarn global add @sebastienrousseau/dotfiles`.
|
|
94
|
+
- **Clone the main repository** to get all source files including build scripts:
|
|
95
|
+
`git clone https://github.com/sebastienrousseau/dotfiles.git`. This will clone
|
|
96
|
+
the latest version of the Dotfiles repository.
|
|
97
|
+
|
|
98
|
+
### 2️⃣ Back Up Your Existing Data
|
|
12
99
|
|
|
13
|
-
|
|
100
|
+
Before installing Dotfiles, we strongly recommend that you back up your existing
|
|
101
|
+
data. The Dotfiles installer will try to automatically backup any previous
|
|
102
|
+
installation of known dotfiles.
|
|
14
103
|
|
|
15
|
-
|
|
104
|
+
After installation, you will find the backup files in the `~/dotfiles_backup`
|
|
105
|
+
directory.
|
|
16
106
|
|
|
17
|
-
|
|
107
|
+
It is always a good idea to backup as there might be situations in which you
|
|
108
|
+
could be required to restore your previous installation.
|
|
18
109
|
|
|
19
|
-
|
|
110
|
+
### 3️⃣ Try it out and let us know what you think
|
|
20
111
|
|
|
21
|
-
|
|
22
|
-
- [Mac OS X Dotfiles](#mac-os-x-dotfiles)
|
|
23
|
-
- [Table of contents](#table-of-contents)
|
|
24
|
-
- [Getting Started](#getting-started)
|
|
25
|
-
- [What's in the box](#whats-in-the-box)
|
|
26
|
-
- [Contributing](#contributing)
|
|
27
|
-
- [Code of Conduct](#code-of-conduct)
|
|
28
|
-
- [Our Values](#our-values)
|
|
29
|
-
- [History](#history)
|
|
30
|
-
- [License](#license)
|
|
31
|
-
- [Acknowledgements](#acknowledgements)
|
|
112
|
+
To install the latest version of the dotfiles, run the following command:
|
|
32
113
|
|
|
33
|
-
|
|
114
|
+
#### Using make (recommended if you have make installed)
|
|
34
115
|
|
|
35
|
-
|
|
116
|
+
```bash
|
|
117
|
+
make install
|
|
118
|
+
```
|
|
36
119
|
|
|
37
|
-
|
|
38
|
-
- Or simply clone the main repository: `git clone https://github.com/sebastienrousseau/dotfiles.git`
|
|
120
|
+
or if you want to check the options available:
|
|
39
121
|
|
|
40
|
-
|
|
122
|
+
```bash
|
|
123
|
+
make help
|
|
124
|
+
```
|
|
41
125
|
|
|
42
|
-
|
|
126
|
+
#### Using PnPM (recommended if you have PnPM installed)
|
|
43
127
|
|
|
128
|
+
```bash
|
|
129
|
+
pnpm install
|
|
44
130
|
```
|
|
131
|
+
|
|
132
|
+
![divider][divider]
|
|
133
|
+
|
|
134
|
+
### 4️⃣ What's included
|
|
135
|
+
|
|
136
|
+
Dotfiles contains core elements that are used to configure your terminal, shell,
|
|
137
|
+
and other components catered for your development environment setup.
|
|
138
|
+
|
|
139
|
+
Within the download you'll find all the Dotfiles source files grouped into the
|
|
140
|
+
`shell` folder.
|
|
141
|
+
|
|
142
|
+
You'll see something like this:
|
|
143
|
+
|
|
144
|
+
```bash
|
|
45
145
|
.
|
|
46
|
-
├──
|
|
47
|
-
├──
|
|
48
|
-
├── .
|
|
49
|
-
|
|
50
|
-
├──
|
|
51
|
-
├── .
|
|
52
|
-
|
|
53
|
-
├──
|
|
54
|
-
├──
|
|
55
|
-
|
|
56
|
-
├──
|
|
57
|
-
├──
|
|
146
|
+
├── aliases
|
|
147
|
+
│ ├── default
|
|
148
|
+
│ │ ├── README.md
|
|
149
|
+
│ │ └── default.aliases.sh # Default aliases
|
|
150
|
+
│ ├── gcloud
|
|
151
|
+
│ │ ├── README.md
|
|
152
|
+
│ │ └── gcloud.aliases.sh # GCloud aliases
|
|
153
|
+
│ ├── git
|
|
154
|
+
│ │ ├── README.md
|
|
155
|
+
│ │ └── git.aliases.wip # Git aliases (WIP)
|
|
156
|
+
│ ├── heroku
|
|
157
|
+
│ │ ├── README.md
|
|
158
|
+
│ │ └── heroku.aliases.sh # Heroku aliases
|
|
159
|
+
│ ├── jekyll
|
|
160
|
+
│ │ ├── README.md
|
|
161
|
+
│ │ └── jekyll.aliases.sh # Jekyll aliases
|
|
162
|
+
│ ├── pnpm
|
|
163
|
+
│ │ ├── README.md
|
|
164
|
+
│ │ └── pnpm.aliases.sh # PnPM aliases
|
|
165
|
+
│ ├── subversion
|
|
166
|
+
│ │ ├── README.md
|
|
167
|
+
│ │ └── subversion.aliases.sh # Subversion aliases
|
|
168
|
+
│ ├── tmux
|
|
169
|
+
│ │ ├── README.md
|
|
170
|
+
│ │ └── tmux.aliases.sh # Tmux aliases
|
|
171
|
+
│ └── README.md
|
|
172
|
+
├── configurations
|
|
173
|
+
│ ├── bash
|
|
174
|
+
│ │ └── bashrc # Bash configurations
|
|
175
|
+
│ ├── curl
|
|
176
|
+
│ │ ├── cacert.pem # CA Certificates
|
|
177
|
+
│ │ └── curlrc # Curl configurations
|
|
178
|
+
│ ├── default
|
|
179
|
+
│ │ ├── color.sh # Color definitions
|
|
180
|
+
│ │ ├── editor.sh # Editor definitions
|
|
181
|
+
│ │ └── prompt.sh # Prompt definitions
|
|
182
|
+
│ ├── inputrc
|
|
183
|
+
│ │ └── inputrc # Inputrc configurations
|
|
184
|
+
│ ├── jshint
|
|
185
|
+
│ │ └── jshintrc # JSHint configurations
|
|
186
|
+
│ ├── profile
|
|
187
|
+
│ │ └── profile # Profile configurations
|
|
188
|
+
│ ├── tmux
|
|
189
|
+
│ │ └── tmux # Tmux configurations
|
|
190
|
+
│ ├── vim
|
|
191
|
+
│ │ └── vimrc # Vim configurations
|
|
192
|
+
│ ├── wget
|
|
193
|
+
│ │ └── wgetrc # Wget configurations
|
|
194
|
+
│ ├── zsh
|
|
195
|
+
│ │ └── zshrc # Zsh configurations
|
|
196
|
+
│ └── README.md
|
|
197
|
+
├── functions
|
|
198
|
+
│ ├── README.md
|
|
199
|
+
│ ├── cdls.sh # cdls function
|
|
200
|
+
│ ├── changediskpwd.sh # changediskpwd function
|
|
201
|
+
│ ├── code.sh # code function
|
|
202
|
+
│ ├── countdown.sh # countdown function
|
|
203
|
+
│ ├── curlheader.sh # curlheader function
|
|
204
|
+
│ ├── curltime.sh # curltime function
|
|
205
|
+
│ ├── encode64.sh # encode64 function
|
|
206
|
+
│ ├── environment.sh # environment function
|
|
207
|
+
│ ├── extract.sh # extract function
|
|
208
|
+
│ ├── filehead.sh # filehead function
|
|
209
|
+
│ ├── genpwd.sh # genpwd function
|
|
210
|
+
│ ├── goto.sh # goto function
|
|
211
|
+
│ ├── headers.sh # headers function
|
|
212
|
+
│ ├── hidehiddenfiles.sh # hidehiddenfiles function
|
|
213
|
+
│ ├── history-all.sh # history-all function
|
|
214
|
+
│ ├── hostinfo.sh # hostinfo function
|
|
215
|
+
│ ├── hstats.sh # hstats function
|
|
216
|
+
│ ├── httpdebug.sh # httpdebug function
|
|
217
|
+
│ ├── keygen.sh # keygen function
|
|
218
|
+
│ ├── last.sh # last function
|
|
219
|
+
│ ├── logout.sh # logout function
|
|
220
|
+
│ ├── lowercase.sh # lowercase function
|
|
221
|
+
│ ├── macos.sh # macos function
|
|
222
|
+
│ ├── matrix.sh # matrix function
|
|
223
|
+
│ ├── mcd.sh # mcd function
|
|
224
|
+
│ ├── mount_read_only.sh # mount_read_only function
|
|
225
|
+
│ ├── myproc.sh # myproc function
|
|
226
|
+
│ ├── prependpath.sh # prependpath function
|
|
227
|
+
│ ├── print.sh # print function
|
|
228
|
+
│ ├── ql.sh # ql function
|
|
229
|
+
│ ├── rd.sh # rd function
|
|
230
|
+
│ ├── remove_disk.sh # remove_disk function
|
|
231
|
+
│ ├── ren.sh # ren function
|
|
232
|
+
│ ├── rm.sh # rm function
|
|
233
|
+
│ ├── rps.sh # rps function
|
|
234
|
+
│ ├── showhiddenfiles.sh # showhiddenfiles function
|
|
235
|
+
│ ├── size.sh # size function
|
|
236
|
+
│ ├── stopwatch.sh # stopwatch function
|
|
237
|
+
│ ├── trash.sh # trash function
|
|
238
|
+
│ ├── tree.sh # tree function
|
|
239
|
+
│ ├── uppercase.sh # uppercase function
|
|
240
|
+
│ ├── uuidgen.sh # uuidgen function
|
|
241
|
+
│ ├── view-source.sh # view-source function
|
|
242
|
+
│ ├── vscode.sh # vscode function
|
|
243
|
+
│ ├── whoisport.sh # whoisport function
|
|
244
|
+
│ └── zipf.sh # zipf function
|
|
245
|
+
├── paths
|
|
246
|
+
│ ├── ant
|
|
247
|
+
│ │ └── ant.paths.sh # Ant paths
|
|
248
|
+
│ ├── default
|
|
249
|
+
│ │ └── default.paths.sh # Default paths
|
|
250
|
+
│ ├── homebrew
|
|
251
|
+
│ │ └── homebrew.paths.sh # Homebrew paths
|
|
252
|
+
│ ├── java
|
|
253
|
+
│ │ └── java.paths.sh # Java paths
|
|
254
|
+
│ ├── maven
|
|
255
|
+
│ │ └── maven.paths.sh # Maven paths
|
|
256
|
+
│ ├── node
|
|
257
|
+
│ │ └── node.paths.sh # Node paths
|
|
258
|
+
│ ├── nvm
|
|
259
|
+
│ │ └── nvm.paths.sh # Nvm paths
|
|
260
|
+
│ ├── pnpm
|
|
261
|
+
│ │ └── pnpm.paths.sh # Pnpm paths
|
|
262
|
+
│ ├── ruby
|
|
263
|
+
│ │ └── ruby.paths.sh # Ruby paths
|
|
264
|
+
│ └── tmux
|
|
265
|
+
│ └── tmux.paths.sh # Tmux paths
|
|
58
266
|
├── README.md
|
|
59
|
-
├──
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
│ └── .bashrc
|
|
66
|
-
├── homebrew
|
|
67
|
-
│ ├── brew-cask.sh
|
|
68
|
-
│ ├── brew-package.sh
|
|
69
|
-
│ ├── brew-tap.sh
|
|
70
|
-
│ └── install.sh
|
|
71
|
-
├── zsh
|
|
72
|
-
│ ├── configurations
|
|
73
|
-
│ ├── functions
|
|
74
|
-
├── installers
|
|
75
|
-
└── package.json
|
|
267
|
+
├── aliases.sh # aliases loader
|
|
268
|
+
├── configurations.sh # configurations loader
|
|
269
|
+
├── exit.sh # exit loader
|
|
270
|
+
├── functions.sh # functions loader
|
|
271
|
+
├── history.sh # history loader
|
|
272
|
+
└── paths.sh # paths loader
|
|
76
273
|
|
|
274
|
+
32 directories, 95 files
|
|
77
275
|
```
|
|
78
276
|
|
|
79
|
-
##
|
|
277
|
+
## 🔗 Releases
|
|
80
278
|
|
|
81
|
-
|
|
279
|
+
Releases are available on the [GitHub releases page][releases-url].
|
|
82
280
|
|
|
83
|
-
|
|
281
|
+
![divider][divider]
|
|
84
282
|
|
|
85
|
-
|
|
283
|
+
## 🚥 Semantic versioning policy
|
|
86
284
|
|
|
87
|
-
|
|
285
|
+
For transparency into our release cycle and in striving to maintain backward
|
|
286
|
+
compatibility, `Dotfiles` follows [Semantic Versioning][semver-url]
|
|
287
|
+
(SemVer) and [ESLint's Semantic Versioning Policy][eslint-semantic-url].
|
|
88
288
|
|
|
89
|
-
|
|
90
|
-
2. We take our passion beyond Code into our daily practices.
|
|
91
|
-
3. We are just obsessed about creating and delivering exceptional solutions.
|
|
289
|
+
![divider][divider]
|
|
92
290
|
|
|
93
291
|
## History
|
|
94
292
|
|
|
95
|
-
- See [Dotfiles Release](https://github.com/sebastienrousseau/dotfiles/releases)
|
|
293
|
+
- See [Dotfiles Release](https://github.com/sebastienrousseau/dotfiles/releases)
|
|
294
|
+
list.
|
|
295
|
+
|
|
296
|
+
## ✅ Changelog
|
|
297
|
+
|
|
298
|
+
- [GitHub Releases](https://github.com/sebastienrousseau/dotfiles/releases)
|
|
299
|
+
|
|
300
|
+
![divider][divider]
|
|
301
|
+
|
|
302
|
+
## 📖 Code of Conduct
|
|
303
|
+
|
|
304
|
+
We are committed to preserving and fostering a diverse, welcoming community.
|
|
305
|
+
Please read our [Code of Conduct](https://github.com/sebastienrousseau/dotfiles/blob/master/.github/CODE-OF-CONDUCT.md).
|
|
96
306
|
|
|
97
|
-
|
|
307
|
+
![divider][divider]
|
|
98
308
|
|
|
99
|
-
|
|
309
|
+
## ⭐️ Our Values
|
|
310
|
+
|
|
311
|
+
- We believe perfection must consider everything.
|
|
312
|
+
- We take our passion beyond code into our daily practices.
|
|
313
|
+
- We are just obsessed about creating and delivering exceptional solutions.
|
|
314
|
+
|
|
315
|
+
![divider][divider]
|
|
316
|
+
|
|
317
|
+
## ❤️ Contributing
|
|
318
|
+
|
|
319
|
+
Thank you for using Dotfiles! If you like the library, it would be
|
|
320
|
+
great if you can give it a star ⭐ on [GitHub][01].
|
|
321
|
+
|
|
322
|
+
There are also many ways in which you can participate in this project, for
|
|
323
|
+
example:
|
|
324
|
+
|
|
325
|
+
- [Submit bugs and feature requests](https://github.com/sebastienrousseau/dotfiles/issues/new), and help us verify as they are checked in,
|
|
326
|
+
- Review [source code changes](https://github.com/sebastienrousseau/dotfiles/pulls), and help us improve our code quality,
|
|
327
|
+
- Review the [documentation](https://github.com/sebastienrousseau/dotfiles/docs) and make pull requests for anything from typos to additional and new content.
|
|
328
|
+
|
|
329
|
+
Please read carefully through our
|
|
330
|
+
[Contributing Guidelines](https://github.com/sebastienrousseau/dotfiles/blob/master/.github/CONTRIBUTING.md)
|
|
331
|
+
for further details on the process for submitting pull requests to us.
|
|
332
|
+
|
|
333
|
+
![divider][divider]
|
|
334
|
+
|
|
335
|
+
## 🥂 License
|
|
336
|
+
|
|
337
|
+
This project is licensed under the MIT License - see the [LICENSE](https://github.com/sebastienrousseau/dotfiles/blob/master/LICENSE) file for details.
|
|
100
338
|
|
|
101
339
|
[](https://app.fossa.io/projects/git%2Bgithub.com%2Freedia%2Fdotfiles?ref=badge_large)
|
|
102
340
|
|
|
103
|
-
|
|
341
|
+
![divider][divider]
|
|
342
|
+
|
|
343
|
+
## 🏢 Acknowledgements
|
|
104
344
|
|
|
105
|
-
[Dotfiles]
|
|
345
|
+
[Dotfiles][project-url] is beautifully crafted by these people and a
|
|
346
|
+
bunch of awesome [contributors](https://github.com/sebastienrousseau/dotfiles/graphs/contributors)
|
|
106
347
|
|
|
107
348
|
| [](http://sebastienrousseau.co.uk) | [](https://github.com/gramtech) |
|
|
108
349
|
| :-------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------: |
|
|
109
350
|
| [Sebastien Rousseau](https://github.com/sebastienrousseau) | [Graham Colgate](https://github.com/gramtech) |
|
|
351
|
+
|
|
352
|
+
[01]: https://github.com/sebastienrousseau/dotfiles
|
|
353
|
+
[codacy-grade]: https://img.shields.io/codacy/grade/634cfc4de08e492ebcbb341631066241?style=for-the-badge
|
|
354
|
+
[codacy-url]:https://www.codacy.com/gh/sebastienrousseau/dotfiles/dashboard
|
|
355
|
+
[contributors-shield]: https://img.shields.io/github/contributors/sebastienrousseau/dotfiles.svg?style=for-the-badge
|
|
356
|
+
[contributors-url]: https://github.com/sebastienrousseau/dotfiles/graphs/contributors
|
|
357
|
+
[divider]: https://raw.githubusercontent.com/sebastienrousseau/dotfiles/master/assets/divider.svg "divider"
|
|
358
|
+
[forks-shield]: https://img.shields.io/github/forks/sebastienrousseau/dotfiles.svg?style=for-the-badge
|
|
359
|
+
[forks-url]: https://github.com/sebastienrousseau/dotfiles/network/members
|
|
360
|
+
[license-url]: https://opensource.org/licenses/MIT
|
|
361
|
+
[license]: https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge\&color=ff69b4
|
|
362
|
+
[love]: https://github.com/sebastienrousseau/dotfiles/raw/master/assets/made-with-love.svg
|
|
363
|
+
[project-url]: https://dotfiles.io/
|
|
364
|
+
[releases-url]: https://github.com/sebastienrousseau/dotfiles/releases
|
|
365
|
+
[semver-url]: http://semver.org/
|
|
366
|
+
[eslint-semantic-url]: https://github.com/eslint/eslint#semantic-versioning-policy
|
package/bin/dotfiles.sh
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - 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.452" # Dotfiles Version number.
|
|
14
|
+
|
|
15
|
+
## 🅱🅰🅲🅺🆄🅿 - Backup existing files.
|
|
16
|
+
backup() {
|
|
17
|
+
echo "${BIRed}❭${NC} Creating a backup directory '${BIGreen}${DOTFILESDIR}${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
|
+
.bashrc
|
|
24
|
+
.curlrc
|
|
25
|
+
.gitattributes
|
|
26
|
+
.gitconfig
|
|
27
|
+
.gitignore
|
|
28
|
+
.gitmessage
|
|
29
|
+
.inputrc
|
|
30
|
+
.npmrc
|
|
31
|
+
.profile
|
|
32
|
+
.tmux.conf
|
|
33
|
+
.vimrc
|
|
34
|
+
.wgetrc
|
|
35
|
+
.yarnrc
|
|
36
|
+
.zshrc
|
|
37
|
+
cacert.pem
|
|
38
|
+
"
|
|
39
|
+
|
|
40
|
+
for file in ${FILES}; do
|
|
41
|
+
# shellcheck disable=SC2292
|
|
42
|
+
if [ -e "${HOME}/${file}" ]; then
|
|
43
|
+
echo "${BIRed}❭${NC} Backing up ${BIGreen}${file}${NC}..."
|
|
44
|
+
cp -f "${HOME}"/"${file}" "${BACKUPDIR}"/"${file}"
|
|
45
|
+
fi
|
|
46
|
+
done
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
## 🅸🅽🆂🆃🅰🅻🅻🅴🆁 - Install dotfiles.
|
|
50
|
+
download() {
|
|
51
|
+
echo "${BIRed}❭${NC} Installing ${BIGreen}Dotfiles v${VERSION}${NC}"
|
|
52
|
+
# wget https://github.com/sebastienrousseau/dotfiles/archive/refs/tags/v"${VERSION}".zip -N -O "${DOWNLOADDIR}/v${VERSION}.zip"
|
|
53
|
+
curl https://github.com/sebastienrousseau/dotfiles/archive/refs/tags/v"${VERSION}".zip -o "${DOWNLOADDIR}"/v"${VERSION}".zip
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
## 🆄🅽🅿🅰🅲🅺 - Unpack installer.
|
|
57
|
+
unpack() {
|
|
58
|
+
echo "${BIRed}❭${NC} Unpacking ${BIGreen}Dotfiles v${VERSION}${NC}"
|
|
59
|
+
unzip -qq -u "${DOWNLOADDIR}"/v"${VERSION}".zip -d "${DOWNLOADDIR}"
|
|
60
|
+
mv "${DOWNLOADDIR}/dotfiles-${VERSION}/shell/" "${DOTFILESDIR}"
|
|
61
|
+
rm "${DOWNLOADDIR}/v${VERSION}.zip"
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
## 🅸🅽🆂🆃🅰🅻🅻 - Install dotfiles.
|
|
65
|
+
installer() {
|
|
66
|
+
echo "${BIRed}❭${NC} Installing dotfiles..."
|
|
67
|
+
backup &&
|
|
68
|
+
download &&
|
|
69
|
+
unpack &&
|
|
70
|
+
copy
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
## 🅲🅾🅿🆈 - Copy dotfiles.
|
|
74
|
+
copy() {
|
|
75
|
+
# echo "${BIRed}❭${NC} Switching to the Dotfiles directory"
|
|
76
|
+
# cd "${DOTFILESDIR}" &&
|
|
77
|
+
|
|
78
|
+
echo "${BIRed}❭${NC} Launching the installation script..."
|
|
79
|
+
cp -f "${DOTFILESDIR}"/shell/configurations/bash/bashrc "${HOME}"/.bashrc &&
|
|
80
|
+
cp -f "${DOTFILESDIR}"/shell/configurations/curl/cacert.pem "${HOME}"/cacert.pem &&
|
|
81
|
+
cp -f "${DOTFILESDIR}"/shell/configurations/curl/curlrc "${HOME}"/.curlrc &&
|
|
82
|
+
cp -f "${DOTFILESDIR}"/shell/configurations/jshint/jshintrc "${HOME}"/.jshintrc &&
|
|
83
|
+
cp -f "${DOTFILESDIR}"/shell/configurations/profile/profile "${HOME}"/.profile &&
|
|
84
|
+
cp -f "${DOTFILESDIR}"/shell/configurations/tmux/tmux "${HOME}"/.tmux.conf &&
|
|
85
|
+
cp -f "${DOTFILESDIR}"/shell/configurations/vim/vimrc "${HOME}"/.vimrc &&
|
|
86
|
+
cp -f "${DOTFILESDIR}"/shell/configurations/wget/wgetrc "${HOME}"/.wgetrc &&
|
|
87
|
+
cp -f "${DOTFILESDIR}"/shell/configurations/zsh/zshrc "${HOME}"/.zshrc
|
|
88
|
+
|
|
89
|
+
echo "${BIRed}❭${NC} Cleaning up..."
|
|
90
|
+
rm -Rf "${DOTFILESDIR}"/shell/configurations/bash &&
|
|
91
|
+
rm -Rf "${DOTFILESDIR}"/shell/configurations/curl &&
|
|
92
|
+
rm -Rf "${DOTFILESDIR}"/shell/configurations/jshint &&
|
|
93
|
+
rm -Rf "${DOTFILESDIR}"/shell/configurations/profile &&
|
|
94
|
+
rm -Rf "${DOTFILESDIR}"/shell/configurations/tmux &&
|
|
95
|
+
rm -Rf "${DOTFILESDIR}"/shell/configurations/vim &&
|
|
96
|
+
rm -Rf "${DOTFILESDIR}"/shell/configurations/wget &&
|
|
97
|
+
rm -Rf "${DOTFILESDIR}"/shell/configurations/zsh &&
|
|
98
|
+
|
|
99
|
+
echo "${BIRed}❭${NC} ${BIGreen}Dotfiles v${VERSION}${NC} installed."
|
|
100
|
+
${SHELL}
|
|
101
|
+
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
## 🅷🅴🅻🅿 🅼🅴🅽🆄 - Display help menu.
|
|
105
|
+
help() {
|
|
106
|
+
cat <<EOF
|
|
107
|
+
|
|
108
|
+
┌───────────────────────────────────────────┐
|
|
109
|
+
│ Dotfiles (v${VERSION}) │
|
|
110
|
+
├───────────────────────────────────────────┤
|
|
111
|
+
│ Simply designed to fit your shell life. │
|
|
112
|
+
└───────────────────────────────────────────┘
|
|
113
|
+
|
|
114
|
+
USAGE:
|
|
115
|
+
|
|
116
|
+
dotfiles.sh [COMMAND]
|
|
117
|
+
|
|
118
|
+
COMMANDS:
|
|
119
|
+
|
|
120
|
+
backup - Backup previous dotfiles from your '${HOME}' directory.
|
|
121
|
+
copy - Copy dotfiles (v${VERSION}) to your '${HOME}' directory.
|
|
122
|
+
download - Download the latest dotfiles package (v${VERSION}.zip).
|
|
123
|
+
installer - Run the full installation process.
|
|
124
|
+
unpack - Unpack Dotfiles (v${VERSION}.zip) package.
|
|
125
|
+
help - Show the help menu.
|
|
126
|
+
|
|
127
|
+
EOF
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
# shellcheck disable=SC2292
|
|
131
|
+
if [ "$1" = "backup" ]; then
|
|
132
|
+
echo "${BIRed}❭${NC} Backing up.${NC}"
|
|
133
|
+
backup
|
|
134
|
+
elif [ "$1" = "copy" ]; then
|
|
135
|
+
echo "${BIRed}❭${NC} Copying dotfiles.${NC}"
|
|
136
|
+
copy
|
|
137
|
+
elif [ "$1" = "download" ]; then
|
|
138
|
+
echo "${BIRed}❭${NC} Downloading ${BIGreen}Dotfiles v${VERSION}${NC}."
|
|
139
|
+
download
|
|
140
|
+
elif [ "$1" = "help" ]; then
|
|
141
|
+
help
|
|
142
|
+
elif [ "$1" = "installer" ]; then
|
|
143
|
+
echo "${BIRed}❭${NC} Installing ${BIGreen}Dotfiles v${VERSION}${NC}."
|
|
144
|
+
installer
|
|
145
|
+
elif [ "$1" = "unpack" ]; then
|
|
146
|
+
echo "${BIRed}❭${NC} Unpacking ${BIGreen}Dotfiles v${VERSION}${NC}."
|
|
147
|
+
unpack
|
|
148
|
+
else
|
|
149
|
+
help
|
|
150
|
+
fi
|