@sebastienrousseau/dotfiles 0.2.460 β 0.2.462
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 +115 -91
- package/dist/Makefile +4 -3
- package/dist/bin/backup.d.ts.map +1 -1
- package/dist/bin/backup.js +3 -2
- 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/copy.d.ts.map +1 -1
- package/dist/bin/copy.js +2 -1
- package/dist/bin/copy.js.map +1 -1
- package/dist/bin/dotfiles.d.ts.map +1 -1
- package/dist/bin/dotfiles.js +1 -1
- package/dist/bin/dotfiles.js.map +1 -1
- package/dist/bin/download.d.ts +2 -2
- package/dist/bin/download.d.ts.map +1 -1
- package/dist/bin/download.js +2 -1
- package/dist/bin/download.js.map +1 -1
- package/dist/bin/index.js +1 -1
- package/dist/bin/index.js.map +1 -1
- package/dist/bin/transfer.d.ts.map +1 -1
- package/dist/bin/transfer.js +1 -1
- package/dist/bin/transfer.js.map +1 -1
- package/dist/bin/unpack.d.ts.map +1 -1
- package/dist/bin/unpack.js +1 -1
- package/dist/bin/unpack.js.map +1 -1
- package/dist/filesizes.txt +332 -288
- package/dist/lib/aliases/archives/archives.aliases.sh +42 -0
- package/dist/lib/aliases/clear/clear.aliases.sh +23 -0
- package/dist/lib/aliases/configuration/configuration.aliases.sh +12 -0
- package/dist/lib/aliases/default/default.aliases.sh +37 -173
- package/dist/lib/aliases/dig/dig.aliases.sh +19 -0
- package/dist/lib/aliases/diskusage/diskusage.aliases.sh +16 -0
- package/dist/lib/aliases/editor/editor.aliases.sh +19 -0
- package/dist/lib/aliases/find/find.aliases.sh +24 -0
- package/dist/lib/aliases/gcloud/gcloud.aliases.sh +120 -116
- package/dist/lib/aliases/git/git.aliases.sh +341 -335
- package/dist/lib/aliases/gnu/gnucoreutls-aliases.sh +111 -0
- package/dist/lib/aliases/heroku/heroku.aliases.sh +713 -710
- package/dist/lib/aliases/interactive/interactive.aliases.sh +14 -0
- package/dist/lib/aliases/jekyll/jekyll.aliases.sh +49 -46
- package/dist/lib/aliases/list/list.aliases.sh +33 -0
- package/dist/lib/aliases/make/make.aliases.sh +15 -0
- package/dist/lib/aliases/mkdir/mkdir.aliases.sh +13 -0
- package/dist/lib/aliases/navigation/navigation.aliases.sh +23 -0
- package/dist/lib/aliases/npm/npm.aliases.sh +24 -0
- package/dist/lib/aliases/permission/permission.aliases.sh +28 -0
- package/dist/lib/aliases/pnpm/pnpm.aliases.sh +38 -38
- package/dist/lib/aliases/ps/ps.aliases.sh +12 -0
- package/dist/lib/aliases/rsync/rsync.aliases.sh +9 -0
- package/dist/lib/aliases/rust/rust.aliases.sh +50 -0
- package/dist/lib/aliases/subversion/subversion.aliases.sh +42 -119
- package/dist/lib/aliases/sudo/sudo.aliases.sh +11 -0
- package/dist/lib/aliases/tmux/tmux.aliases.sh +13 -10
- package/dist/lib/aliases/update/update.aliases.sh +38 -0
- package/dist/lib/aliases/uuid/uuid.aliases.sh +10 -0
- package/dist/lib/aliases/wget/wget.aliases.sh +13 -0
- package/dist/lib/aliases.sh +7 -3
- package/dist/lib/configurations/bash/bashrc +4 -3
- package/dist/lib/configurations/curl/curlrc +3 -2
- package/dist/lib/configurations/default/color.sh +3 -2
- package/dist/lib/configurations/default/constants.sh +10 -9
- package/dist/lib/configurations/default/editor.sh +3 -2
- package/dist/lib/configurations/default/prompt.sh +3 -2
- package/dist/lib/configurations/input/inputrc +3 -2
- package/dist/lib/configurations/nano/nanorc +3 -2
- package/dist/lib/configurations/profile/profile +3 -2
- package/dist/lib/configurations/tmux/default +3 -2
- package/dist/lib/configurations/tmux/display +3 -2
- package/dist/lib/configurations/tmux/linux +3 -2
- package/dist/lib/configurations/tmux/navigation +3 -2
- package/dist/lib/configurations/tmux/panes +3 -2
- package/dist/lib/configurations/tmux/theme +4 -3
- package/dist/lib/configurations/tmux/tmux +3 -2
- package/dist/lib/configurations/tmux/vi +3 -2
- package/dist/lib/configurations/vim/vimrc +1 -1
- package/dist/lib/configurations/wget/wgetrc +3 -2
- package/dist/lib/configurations/zsh/zshrc +6 -5
- package/dist/lib/configurations.sh +3 -2
- package/dist/lib/functions/cdls.sh +4 -10
- package/dist/lib/functions/changediskpwd.tmp +5 -3
- package/dist/lib/functions/code.tmp +5 -3
- package/dist/lib/functions/countdown.tmp +3 -2
- package/dist/lib/functions/curlheader.sh +6 -5
- package/dist/lib/functions/curltime.sh +8 -6
- package/dist/lib/functions/encode64.sh +3 -2
- package/dist/lib/functions/environment.sh +3 -2
- package/dist/lib/functions/extract.sh +3 -2
- package/dist/lib/functions/genpwd.sh +3 -2
- package/dist/lib/functions/goto.sh +3 -2
- package/dist/lib/functions/hidehiddenfiles.sh +3 -2
- package/dist/lib/functions/history-all.tmp +3 -2
- package/dist/lib/functions/hostinfo.sh +3 -2
- package/dist/lib/functions/hstats.sh +3 -2
- package/dist/lib/functions/httpdebug.sh +3 -2
- package/dist/lib/functions/keygen.sh +3 -2
- package/dist/lib/functions/last.sh +3 -2
- package/dist/lib/functions/logout.sh +3 -2
- package/dist/lib/functions/lowercase.sh +3 -2
- package/dist/lib/functions/macos.sh +3 -2
- package/dist/lib/functions/matrix.sh +3 -2
- package/dist/lib/functions/{mcd.sh β mcd.tmp} +3 -2
- package/dist/lib/functions/mount_read_only.sh +3 -2
- package/dist/lib/functions/myproc.sh +3 -2
- package/dist/lib/functions/prependpath.sh +3 -2
- package/dist/lib/functions/print.tmp +3 -2
- package/dist/lib/functions/ql.sh +3 -2
- package/dist/lib/functions/rd.sh +3 -2
- package/dist/lib/functions/remove_disk.sh +3 -2
- package/dist/lib/functions/ren.sh +3 -2
- package/dist/lib/functions/rm.tmp +3 -2
- package/dist/lib/functions/rps.tmp +3 -2
- package/dist/lib/functions/showhiddenfiles.sh +3 -2
- package/dist/lib/functions/size.sh +3 -2
- package/dist/lib/functions/stopwatch.sh +3 -2
- package/dist/lib/functions/trash.tmp +3 -2
- package/dist/lib/functions/tree.tmp +3 -2
- package/dist/lib/functions/uppercase.sh +3 -2
- package/dist/lib/functions/uuidgen.tmp +2 -1
- package/dist/lib/functions/view-source.sh +3 -2
- package/dist/lib/functions/vscode.sh +3 -2
- package/dist/lib/functions/whoisport.sh +3 -2
- package/dist/lib/functions/zipf.sh +3 -2
- package/dist/lib/functions.sh +3 -2
- package/dist/lib/history.sh +3 -2
- package/dist/lib/paths/ant/ant.paths.sh +3 -2
- package/dist/lib/paths/default/default.paths.sh +3 -2
- package/dist/lib/paths/homebrew/homebrew.paths.sh +3 -2
- package/dist/lib/paths/java/java.paths.sh +4 -3
- package/dist/lib/paths/maven/maven.paths.sh +3 -2
- package/dist/lib/paths/node/node.paths.sh +3 -2
- package/dist/lib/paths/nvm/nvm.paths.sh +3 -2
- package/dist/lib/paths/pnpm/pnpm.paths.sh +3 -2
- package/dist/lib/paths/python/python.paths.sh +3 -2
- package/dist/lib/paths/ruby/ruby.paths.sh +3 -2
- package/dist/lib/paths/tmux/tmux.paths.sh +3 -2
- package/dist/lib/paths.sh +3 -2
- package/dist/scripts/backup.sh +8 -3
- package/dist/scripts/banner.sh +3 -2
- package/dist/scripts/build.sh +3 -2
- package/dist/scripts/clean.sh +3 -2
- package/dist/scripts/compile.sh +3 -2
- package/dist/scripts/copy.sh +3 -2
- package/dist/scripts/dotfiles.sh +3 -2
- package/dist/scripts/download.sh +3 -2
- package/dist/scripts/help.sh +3 -2
- package/dist/scripts/ssh.sh +54 -0
- package/dist/scripts/unpack.sh +3 -2
- package/package.json +3 -2
- package/dist/lib/exit.sh +0 -9
package/dist/scripts/dotfiles.sh
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
3
|
-
#
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.462) - https://dotfiles.io
|
|
3
|
+
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
+
# Copyright (c) 2015-2022. All rights reserved
|
|
4
5
|
# License: MIT
|
|
5
6
|
|
|
6
7
|
## π
Έπ
Όπ
Ώπ
Ύπππ - Importing constants and functions.
|
package/dist/scripts/download.sh
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
3
|
-
#
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.462) - https://dotfiles.io
|
|
3
|
+
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
+
# Copyright (c) 2015-2022. All rights reserved
|
|
4
5
|
# License: MIT
|
|
5
6
|
|
|
6
7
|
## π
π
°ππ
Έπ
°π
±π
»π
΄π - Set Dotfiles variable.
|
package/dist/scripts/help.sh
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
3
|
-
#
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.462) - https://dotfiles.io
|
|
3
|
+
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
+
# Copyright (c) 2015-2022. All rights reserved
|
|
4
5
|
# License: MIT
|
|
5
6
|
|
|
6
7
|
## π
π
°ππ
Έπ
°π
±π
»π
΄π - Set Dotfiles variable.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.462) - https://dotfiles.io
|
|
3
|
+
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
+
# Copyright (c) 2015-2022. All rights reserved
|
|
5
|
+
# License: MIT
|
|
6
|
+
|
|
7
|
+
## πππ
· - Generate a new SSH key and add it to the ssh-agent
|
|
8
|
+
|
|
9
|
+
EMAIL=$1
|
|
10
|
+
|
|
11
|
+
# check if email is set
|
|
12
|
+
if [[ -z "${EMAIL}" ]]; then
|
|
13
|
+
echo "No email argument supplied"
|
|
14
|
+
exit 1
|
|
15
|
+
fi
|
|
16
|
+
|
|
17
|
+
# create default .ssh directory if it doesnβt exist
|
|
18
|
+
# https://docs.github.com/en/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys
|
|
19
|
+
if [[ ! -d "${HOME}/.ssh/" ]]; then
|
|
20
|
+
mkdir "${HOME}/.ssh/"
|
|
21
|
+
chmod 700 "${HOME}/.ssh/"
|
|
22
|
+
fi
|
|
23
|
+
|
|
24
|
+
# check if ssh key already exists
|
|
25
|
+
# https://docs.github.com/en/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys
|
|
26
|
+
if [[ -f "${HOME}/.ssh/id_ed25519" ]]; then
|
|
27
|
+
echo "SSH Key already exists. Skipping SSH Key Generation."
|
|
28
|
+
exit 0
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
# generate ssh key using ed25519 algorithm
|
|
32
|
+
# https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
|
|
33
|
+
# -C set email, -N empty passcode, -q quiet
|
|
34
|
+
ssh-keygen -q -t ed25519 -C "${EMAIL}" -f "${HOME}"/.ssh/id_ed25519 -N ""
|
|
35
|
+
|
|
36
|
+
# start ssh-agent in the background
|
|
37
|
+
ssha="ssh-agent -s"
|
|
38
|
+
eval "${ssha}"
|
|
39
|
+
|
|
40
|
+
# Create config file if it doesn't exist
|
|
41
|
+
touch ~/.ssh/config
|
|
42
|
+
printf "Host *\n AddKeysToAgent yes\n UseKeychain yes\n IdentityFile ~/.ssh/id_ed25519" | tee ~/.ssh/config
|
|
43
|
+
|
|
44
|
+
# add ssh key
|
|
45
|
+
sudo ssh-add -K "${HOME}"/.ssh/id_ed25519
|
|
46
|
+
|
|
47
|
+
# print public key to add
|
|
48
|
+
echo "SSH Key created and added to agent. Add public key to remote (GitHub, GitLab, etc.)"
|
|
49
|
+
echo "Public Key:"
|
|
50
|
+
cat "${HOME}"/.ssh/id_ed25519.pub
|
|
51
|
+
|
|
52
|
+
# adding your SSH key to your GitHub account
|
|
53
|
+
# https://docs.github.com/en/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account
|
|
54
|
+
echo "run 'pbcopy < ~/.ssh/id_ed25519.pub' and paste that into GitHub"
|
package/dist/scripts/unpack.sh
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
3
|
-
#
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.462) - https://dotfiles.io
|
|
3
|
+
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
+
# Copyright (c) 2015-2022. All rights reserved
|
|
4
5
|
# License: MIT
|
|
5
6
|
|
|
6
7
|
## π
π
°ππ
Έπ
°π
±π
»π
΄π - Set Dotfiles variable.
|
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
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.
|
|
29
|
+
"@types/node": "^16.11.68",
|
|
30
30
|
"compressing": "^1.6.2",
|
|
31
31
|
"filesizes": "^0.1.2",
|
|
32
32
|
"fs-extra": "10.1.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"url": "git@github.com:sebastienrousseau/dotfiles.git"
|
|
72
72
|
},
|
|
73
73
|
"types": "./dist/bin/index.d.ts",
|
|
74
|
-
"version": "0.2.
|
|
74
|
+
"version": "0.2.462",
|
|
75
75
|
"scripts": {
|
|
76
76
|
"build": "pnpm run backup && pnpm run copy && pnpm run assemble",
|
|
77
77
|
"backup": "chmod 755 \"./scripts/backup.sh\" && sh ./scripts/backup.sh backup",
|
|
@@ -82,6 +82,7 @@
|
|
|
82
82
|
"help": "chmod 755 \"./scripts/help.sh\" && ./scripts/help.sh help",
|
|
83
83
|
"pack": "pnpm pack",
|
|
84
84
|
"preinstall": "npx only-allow pnpm",
|
|
85
|
+
"release": "pnpm run prepublishOnly && pnpm publish --access public --tag latest --no-git-checks --report-summary",
|
|
85
86
|
"start": "node ./dist/bin/index.js",
|
|
86
87
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
87
88
|
}
|
package/dist/lib/exit.sh
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
# When leaving the console clear the screen to increase privacy
|
|
7
|
-
if [[ "${SHLVL}" = 1 ]]; then
|
|
8
|
-
clear && printf '\e[3J'
|
|
9
|
-
fi
|