@sebastienrousseau/dotfiles 0.2.469 → 0.2.499
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/docs/ARCHITECTURE.md +62 -0
- package/docs/COMPLIANCE.md +47 -0
- package/docs/COPYRIGHT +6 -0
- package/docs/OPERATIONS.md +103 -0
- package/docs/PLAN.md +161 -0
- package/docs/PR_DESCRIPTION.md +150 -0
- package/docs/ROADMAP.md +148 -0
- package/docs/ROADMAP_legacy.md +556 -0
- package/docs/SECURITY_CHECKLIST.md +25 -0
- package/docs/TASK.md +99 -0
- package/docs/WALKTHROUGH.md +46 -0
- package/package.json +64 -76
- package/scripts/backup.sh +142 -0
- package/{dist/scripts → scripts}/banner.sh +1 -1
- package/scripts/benchmark.sh +20 -0
- package/{dist/scripts → scripts}/build.sh +1 -1
- package/{dist/scripts → scripts}/clean.sh +1 -1
- package/{dist/scripts → scripts}/compile.sh +1 -1
- package/{dist/scripts → scripts}/copy.sh +1 -1
- package/scripts/detect-collisions.py +84 -0
- package/scripts/doctor.sh +79 -0
- package/{dist/scripts → scripts}/dotfiles.sh +1 -1
- package/{dist/scripts → scripts}/download.sh +1 -1
- package/{dist/scripts → scripts}/help.sh +1 -1
- package/scripts/lock-configs.sh +57 -0
- package/scripts/package.sh +46 -0
- package/{dist/scripts → scripts}/ssh.sh +1 -1
- package/scripts/teleport.sh +23 -0
- package/scripts/test-aliases.sh +25 -0
- package/scripts/test_smoke.sh +88 -0
- package/{dist/scripts → scripts}/unpack.sh +1 -1
- package/scripts/verify_state.sh +60 -0
- package/templates/projects/go/README.md +3 -0
- package/templates/projects/go/cmd/__PROJECT_NAME__/main.go +7 -0
- package/templates/projects/go/go.mod +3 -0
- package/templates/projects/node/README.md +3 -0
- package/templates/projects/node/package.json +10 -0
- package/templates/projects/node/src/index.js +2 -0
- package/templates/projects/python/README.md +3 -0
- package/templates/projects/python/pyproject.toml +10 -0
- package/templates/projects/python/src/__PROJECT_NAME__/__init__.py +1 -0
- package/templates/projects/python/tests/test_basic.py +2 -0
- package/LICENSE +0 -1283
- package/README.md +0 -398
- package/dist/Makefile +0 -140
- package/dist/bin/backup.d.ts +0 -3
- package/dist/bin/backup.d.ts.map +0 -1
- package/dist/bin/backup.js +0 -4
- package/dist/bin/backup.js.map +0 -1
- package/dist/bin/constants.d.ts +0 -7
- package/dist/bin/constants.d.ts.map +0 -1
- package/dist/bin/constants.js +0 -2
- package/dist/bin/constants.js.map +0 -1
- package/dist/bin/copy.d.ts +0 -3
- package/dist/bin/copy.d.ts.map +0 -1
- package/dist/bin/copy.js +0 -3
- package/dist/bin/copy.js.map +0 -1
- package/dist/bin/dotfiles.d.ts +0 -3
- package/dist/bin/dotfiles.d.ts.map +0 -1
- package/dist/bin/dotfiles.js +0 -2
- package/dist/bin/dotfiles.js.map +0 -1
- package/dist/bin/download.d.ts +0 -3
- package/dist/bin/download.d.ts.map +0 -1
- package/dist/bin/download.js +0 -2
- package/dist/bin/download.js.map +0 -1
- package/dist/bin/index.d.ts +0 -2
- package/dist/bin/index.d.ts.map +0 -1
- package/dist/bin/index.js +0 -1
- package/dist/bin/index.js.map +0 -1
- package/dist/bin/transfer.d.ts +0 -3
- package/dist/bin/transfer.d.ts.map +0 -1
- package/dist/bin/transfer.js +0 -4
- package/dist/bin/transfer.js.map +0 -1
- package/dist/bin/unpack.d.ts +0 -3
- package/dist/bin/unpack.d.ts.map +0 -1
- package/dist/bin/unpack.js +0 -3
- package/dist/bin/unpack.js.map +0 -1
- package/dist/filesizes.txt +0 -382
- package/dist/lib/README.md +0 -86
- package/dist/lib/aliases/README.md +0 -57
- package/dist/lib/aliases/archives/README.md +0 -145
- package/dist/lib/aliases/archives/archives.aliases.sh +0 -114
- package/dist/lib/aliases/cd/README.md +0 -146
- package/dist/lib/aliases/cd/cd.aliases.sh +0 -51
- package/dist/lib/aliases/chmod/README.md +0 -160
- package/dist/lib/aliases/chmod/chmod.aliases.sh +0 -107
- package/dist/lib/aliases/clear/README.md +0 -37
- package/dist/lib/aliases/clear/clear.aliases.sh +0 -71
- package/dist/lib/aliases/configuration/README.md +0 -39
- package/dist/lib/aliases/configuration/configuration.aliases.sh +0 -70
- package/dist/lib/aliases/default/README.md +0 -40
- package/dist/lib/aliases/default/default.aliases.sh +0 -139
- package/dist/lib/aliases/dig/README.md +0 -37
- package/dist/lib/aliases/dig/dig.aliases.sh +0 -43
- package/dist/lib/aliases/disk-usage/README.md +0 -36
- package/dist/lib/aliases/disk-usage/du.aliases.sh +0 -84
- package/dist/lib/aliases/editor/README.md +0 -53
- package/dist/lib/aliases/editor/editor.aliases.sh +0 -26
- package/dist/lib/aliases/find/README.md +0 -46
- package/dist/lib/aliases/find/find.aliases.sh +0 -60
- package/dist/lib/aliases/gcloud/README.md +0 -63
- package/dist/lib/aliases/gcloud/gcloud.aliases.sh +0 -335
- package/dist/lib/aliases/git/README.md +0 -153
- package/dist/lib/aliases/git/git.aliases.sh +0 -544
- package/dist/lib/aliases/gnu/README.md +0 -89
- package/dist/lib/aliases/gnu/gnucoreutils-aliases.sh +0 -150
- package/dist/lib/aliases/heroku/README.md +0 -430
- package/dist/lib/aliases/heroku/heroku.aliases.sh +0 -1053
- package/dist/lib/aliases/interactive/README.md +0 -55
- package/dist/lib/aliases/interactive/interactive.aliases.sh +0 -50
- package/dist/lib/aliases/list/README.md +0 -131
- package/dist/lib/aliases/list/list.aliases.sh +0 -132
- package/dist/lib/aliases/macOS/README.md +0 -42
- package/dist/lib/aliases/macOS/macos.aliases.sh +0 -65
- package/dist/lib/aliases/make/README.md +0 -32
- package/dist/lib/aliases/make/make.aliases.sh +0 -35
- package/dist/lib/aliases/mkdir/README.md +0 -30
- package/dist/lib/aliases/mkdir/mkdir.aliases.sh +0 -29
- package/dist/lib/aliases/npm/README.md +0 -41
- package/dist/lib/aliases/npm/npm.aliases.sh +0 -61
- package/dist/lib/aliases/permission/README.md +0 -47
- package/dist/lib/aliases/permission/permission.aliases.sh +0 -73
- package/dist/lib/aliases/pnpm/README.md +0 -53
- package/dist/lib/aliases/pnpm/pnpm.aliases.sh +0 -76
- package/dist/lib/aliases/ps/README.md +0 -29
- package/dist/lib/aliases/ps/ps.aliases.sh +0 -20
- package/dist/lib/aliases/python/python.aliases.sh +0 -141
- package/dist/lib/aliases/rsync/README.md +0 -25
- package/dist/lib/aliases/rsync/rsync.aliases.sh +0 -17
- package/dist/lib/aliases/rust/README.md +0 -182
- package/dist/lib/aliases/rust/rust.aliases.sh +0 -119
- package/dist/lib/aliases/subversion/README.md +0 -66
- package/dist/lib/aliases/subversion/subversion.aliases.sh +0 -47
- package/dist/lib/aliases/sudo/README.md +0 -27
- package/dist/lib/aliases/sudo/sudo.aliases.sh +0 -20
- package/dist/lib/aliases/tmux/README.md +0 -31
- package/dist/lib/aliases/tmux/tmux.aliases.sh +0 -36
- package/dist/lib/aliases/update/README.md +0 -38
- package/dist/lib/aliases/update/update.aliases.sh +0 -310
- package/dist/lib/aliases/uuid/README.md +0 -24
- package/dist/lib/aliases/uuid/uuid.aliases.sh +0 -19
- package/dist/lib/aliases/wget/README.md +0 -27
- package/dist/lib/aliases/wget/wget.aliases.sh +0 -22
- package/dist/lib/aliases.sh +0 -50
- package/dist/lib/configurations/README.md +0 -18
- package/dist/lib/configurations/bash/bashrc +0 -167
- package/dist/lib/configurations/curl/cacert.pem +0 -3460
- package/dist/lib/configurations/curl/curlrc +0 -53
- package/dist/lib/configurations/default/color.sh +0 -24
- package/dist/lib/configurations/default/constants.sh +0 -43
- package/dist/lib/configurations/default/editor.sh +0 -18
- package/dist/lib/configurations/default/prompt.sh +0 -48
- package/dist/lib/configurations/gem/gemrc +0 -9
- package/dist/lib/configurations/input/inputrc +0 -23
- package/dist/lib/configurations/jshint/jshintrc +0 -37
- package/dist/lib/configurations/nano/nanorc +0 -35
- package/dist/lib/configurations/profile/profile +0 -37
- package/dist/lib/configurations/prompt/prompt.sh +0 -81
- package/dist/lib/configurations/tmux/default +0 -18
- package/dist/lib/configurations/tmux/display +0 -30
- package/dist/lib/configurations/tmux/linux +0 -18
- package/dist/lib/configurations/tmux/navigation +0 -30
- package/dist/lib/configurations/tmux/panes +0 -10
- package/dist/lib/configurations/tmux/theme +0 -29
- package/dist/lib/configurations/tmux/tmux +0 -21
- package/dist/lib/configurations/vim/vimrc +0 -193
- package/dist/lib/configurations/wget/wgetrc +0 -40
- package/dist/lib/configurations/zsh/zshrc +0 -50
- package/dist/lib/configurations.sh +0 -45
- package/dist/lib/functions/README.md +0 -92
- package/dist/lib/functions/apihealth.sh +0 -277
- package/dist/lib/functions/apilatency.sh +0 -157
- package/dist/lib/functions/apiload.sh +0 -165
- package/dist/lib/functions/backup.sh +0 -143
- package/dist/lib/functions/cdls.sh +0 -60
- package/dist/lib/functions/curlheader.sh +0 -78
- package/dist/lib/functions/curlstatus.sh +0 -74
- package/dist/lib/functions/curltime.sh +0 -75
- package/dist/lib/functions/encode64.sh +0 -107
- package/dist/lib/functions/environment.sh +0 -78
- package/dist/lib/functions/extract.sh +0 -86
- package/dist/lib/functions/freespace.sh +0 -67
- package/dist/lib/functions/genpwd.sh +0 -105
- package/dist/lib/functions/goto.sh +0 -67
- package/dist/lib/functions/hexdump.sh +0 -96
- package/dist/lib/functions/hiddenfiles.sh +0 -77
- package/dist/lib/functions/hostinfo.sh +0 -98
- package/dist/lib/functions/hstats.sh +0 -75
- package/dist/lib/functions/httpdebug.sh +0 -113
- package/dist/lib/functions/kebabcase.sh +0 -61
- package/dist/lib/functions/keygen.sh +0 -194
- package/dist/lib/functions/last.sh +0 -112
- package/dist/lib/functions/logout.sh +0 -120
- package/dist/lib/functions/lowercase.sh +0 -61
- package/dist/lib/functions/matrix.sh +0 -216
- package/dist/lib/functions/mount_read_only.sh +0 -11
- package/dist/lib/functions/myproc.sh +0 -9
- package/dist/lib/functions/prependpath.sh +0 -21
- package/dist/lib/functions/ql.sh +0 -9
- package/dist/lib/functions/rd.sh +0 -17
- package/dist/lib/functions/remove_disk.sh +0 -11
- package/dist/lib/functions/ren.sh +0 -73
- package/dist/lib/functions/sentencecase.sh +0 -63
- package/dist/lib/functions/showhiddenfiles.sh +0 -14
- package/dist/lib/functions/size.sh +0 -16
- package/dist/lib/functions/snakecase.sh +0 -61
- package/dist/lib/functions/stopwatch.sh +0 -15
- package/dist/lib/functions/sysinfo.sh +0 -145
- package/dist/lib/functions/titlecase.sh +0 -65
- package/dist/lib/functions/uppercase.sh +0 -61
- package/dist/lib/functions/view-source.sh +0 -9
- package/dist/lib/functions/vscode.sh +0 -32
- package/dist/lib/functions/whoisport.sh +0 -14
- package/dist/lib/functions/zipf.sh +0 -16
- package/dist/lib/functions.sh +0 -46
- package/dist/lib/history.sh +0 -90
- package/dist/lib/paths/README.md +0 -52
- package/dist/lib/paths/custom.paths.sh +0 -40
- package/dist/lib/paths/default.paths.sh +0 -37
- package/dist/lib/paths.sh +0 -46
- package/dist/scripts/backup.sh +0 -95
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
################################################################################
|
|
4
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂 - Cross-Platform System Update Script
|
|
5
|
-
#
|
|
6
|
-
# Author: Sebastien Rousseau
|
|
7
|
-
# Description:
|
|
8
|
-
# A comprehensive cross-platform system update script for macOS, Linux, and
|
|
9
|
-
# Windows. It updates system software, programming tools, and cleans up resources.
|
|
10
|
-
#
|
|
11
|
-
# Usage:
|
|
12
|
-
# 1. Source it: source update.sh && upd
|
|
13
|
-
#
|
|
14
|
-
################################################################################
|
|
15
|
-
|
|
16
|
-
#-------------------------------#
|
|
17
|
-
# Color Variables #
|
|
18
|
-
#-------------------------------#
|
|
19
|
-
BLUE='\033[0;34m'
|
|
20
|
-
GREEN='\033[0;32m'
|
|
21
|
-
RED='\033[0;31m'
|
|
22
|
-
RESET='\033[0m'
|
|
23
|
-
|
|
24
|
-
#-------------------------------#
|
|
25
|
-
# Utility Functions #
|
|
26
|
-
#-------------------------------#
|
|
27
|
-
|
|
28
|
-
# print_step: Prints a step message
|
|
29
|
-
function print_step() {
|
|
30
|
-
local step_msg="$1"
|
|
31
|
-
echo
|
|
32
|
-
echo -e "${GREEN}❯ ${step_msg}${RESET}"
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
# print_note: Prints a note message
|
|
36
|
-
function print_note() {
|
|
37
|
-
local note_msg="$1"
|
|
38
|
-
echo -e "${BLUE}${note_msg}${RESET}"
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
# print_error: Prints an error message
|
|
42
|
-
function print_error() {
|
|
43
|
-
local error_msg="$1"
|
|
44
|
-
echo -e "${RED}❯ ERROR: ${error_msg}${RESET}" >&2
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
# detect_os: Detects the operating system
|
|
48
|
-
function detect_os() {
|
|
49
|
-
case "$(uname -s)" in
|
|
50
|
-
Darwin*) echo "macOS" ;;
|
|
51
|
-
Linux*) echo "Linux" ;;
|
|
52
|
-
MINGW*|MSYS*) echo "Windows" ;;
|
|
53
|
-
*) echo "Unknown" ;;
|
|
54
|
-
esac
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
# cmd_exists: Checks if a command exists
|
|
58
|
-
function cmd_exists() {
|
|
59
|
-
command -v "$1" >/dev/null 2>&1
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
#-------------------------------#
|
|
63
|
-
# macOS Update Functions #
|
|
64
|
-
#-------------------------------#
|
|
65
|
-
|
|
66
|
-
function update_mac() {
|
|
67
|
-
print_step "Updating macOS system software"
|
|
68
|
-
if sudo /usr/sbin/softwareupdate -i -a | grep -q "No updates are available" || true; then
|
|
69
|
-
print_note "macOS is up-to-date."
|
|
70
|
-
else
|
|
71
|
-
print_note "macOS updates installed successfully."
|
|
72
|
-
fi
|
|
73
|
-
|
|
74
|
-
if cmd_exists brew; then
|
|
75
|
-
print_step "Updating Homebrew packages"
|
|
76
|
-
brew update >/dev/null
|
|
77
|
-
if brew upgrade | grep -q "already up-to-date" || true; then
|
|
78
|
-
print_note "Homebrew packages are already up-to-date."
|
|
79
|
-
else
|
|
80
|
-
print_note "Homebrew packages updated successfully."
|
|
81
|
-
fi
|
|
82
|
-
brew cleanup || print_note "Cleaning up Homebrew."
|
|
83
|
-
else
|
|
84
|
-
print_note "Homebrew not installed. Skipping package updates."
|
|
85
|
-
fi
|
|
86
|
-
|
|
87
|
-
# Update App Store apps
|
|
88
|
-
if cmd_exists mas; then
|
|
89
|
-
print_step "Updating App Store apps"
|
|
90
|
-
if mas upgrade | grep -q "No updates available" || true; then
|
|
91
|
-
print_note "No App Store updates available."
|
|
92
|
-
else
|
|
93
|
-
print_note "App Store apps updated successfully."
|
|
94
|
-
fi
|
|
95
|
-
fi
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
#-------------------------------#
|
|
99
|
-
# Linux Update Functions #
|
|
100
|
-
#-------------------------------#
|
|
101
|
-
|
|
102
|
-
function update_linux() {
|
|
103
|
-
if cmd_exists apt-get; then
|
|
104
|
-
print_step "Updating Linux packages with apt"
|
|
105
|
-
sudo apt-get update
|
|
106
|
-
sudo apt-get upgrade -y
|
|
107
|
-
sudo apt-get dist-upgrade -y
|
|
108
|
-
sudo apt-get autoremove -y
|
|
109
|
-
sudo apt-get clean
|
|
110
|
-
elif cmd_exists dnf; then
|
|
111
|
-
print_step "Updating Linux packages with dnf"
|
|
112
|
-
sudo dnf check-update
|
|
113
|
-
sudo dnf upgrade -y
|
|
114
|
-
sudo dnf autoremove -y
|
|
115
|
-
sudo dnf clean all
|
|
116
|
-
elif cmd_exists pacman; then
|
|
117
|
-
print_step "Updating Linux packages with pacman"
|
|
118
|
-
sudo pacman -Syu --noconfirm
|
|
119
|
-
sudo pacman -Sc --noconfirm
|
|
120
|
-
elif cmd_exists zypper; then
|
|
121
|
-
print_step "Updating Linux packages with zypper"
|
|
122
|
-
sudo zypper refresh
|
|
123
|
-
sudo zypper update -y
|
|
124
|
-
sudo zypper clean
|
|
125
|
-
else
|
|
126
|
-
print_note "No supported Linux package manager found. Skipping updates."
|
|
127
|
-
fi
|
|
128
|
-
|
|
129
|
-
# Flatpak updates if available
|
|
130
|
-
if cmd_exists flatpak; then
|
|
131
|
-
print_step "Updating Flatpak applications"
|
|
132
|
-
flatpak update -y
|
|
133
|
-
flatpak uninstall --unused -y
|
|
134
|
-
fi
|
|
135
|
-
|
|
136
|
-
# Snap updates if available
|
|
137
|
-
if cmd_exists snap; then
|
|
138
|
-
print_step "Updating Snap packages"
|
|
139
|
-
sudo snap refresh
|
|
140
|
-
fi
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
#-------------------------------#
|
|
144
|
-
# Windows Update Functions #
|
|
145
|
-
#-------------------------------#
|
|
146
|
-
|
|
147
|
-
function update_windows() {
|
|
148
|
-
print_step "Updating Windows packages"
|
|
149
|
-
|
|
150
|
-
if cmd_exists choco; then
|
|
151
|
-
print_step "Updating Chocolatey packages"
|
|
152
|
-
choco upgrade all -y || print_error "Chocolatey update encountered issues."
|
|
153
|
-
choco cleanup -y
|
|
154
|
-
elif cmd_exists winget; then
|
|
155
|
-
print_step "Updating Winget packages"
|
|
156
|
-
winget upgrade --all || print_error "Winget update encountered issues."
|
|
157
|
-
else
|
|
158
|
-
print_note "No supported package manager found. Skipping updates."
|
|
159
|
-
fi
|
|
160
|
-
|
|
161
|
-
# Scoop updates if available
|
|
162
|
-
if cmd_exists scoop; then
|
|
163
|
-
print_step "Updating Scoop packages"
|
|
164
|
-
scoop update
|
|
165
|
-
scoop update '*'
|
|
166
|
-
scoop cleanup '*'
|
|
167
|
-
fi
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
#-------------------------------#
|
|
171
|
-
# Programming Environment Tools #
|
|
172
|
-
#-------------------------------#
|
|
173
|
-
|
|
174
|
-
function update_programming_tools() {
|
|
175
|
-
# npm
|
|
176
|
-
if cmd_exists npm; then
|
|
177
|
-
print_step "Updating npm global packages"
|
|
178
|
-
npm_output=$(npm update -g 2>&1)
|
|
179
|
-
if echo "${npm_output}" | grep -q "up to date" || true; then
|
|
180
|
-
print_note "npm global packages are already up to date."
|
|
181
|
-
else
|
|
182
|
-
print_note "npm global packages updated successfully."
|
|
183
|
-
fi
|
|
184
|
-
fi
|
|
185
|
-
|
|
186
|
-
# pnpm
|
|
187
|
-
if cmd_exists pnpm; then
|
|
188
|
-
print_step "Updating pnpm global packages"
|
|
189
|
-
pnpm_output=$(pnpm up -g 2>&1)
|
|
190
|
-
if echo "${pnpm_output}" | grep -q "Nothing to update" || true; then
|
|
191
|
-
print_note "pnpm global packages are already up to date."
|
|
192
|
-
else
|
|
193
|
-
print_note "pnpm global packages updated successfully."
|
|
194
|
-
fi
|
|
195
|
-
fi
|
|
196
|
-
|
|
197
|
-
# Rust toolchain
|
|
198
|
-
if cmd_exists rustup; then
|
|
199
|
-
print_step "Updating Rust toolchain"
|
|
200
|
-
rust_output=$(rustup update stable 2>&1)
|
|
201
|
-
if echo "${rust_output}" | grep -q "unchanged" || true; then
|
|
202
|
-
print_note "Rust toolchain is already up to date."
|
|
203
|
-
else
|
|
204
|
-
print_note "Rust toolchain updated successfully."
|
|
205
|
-
fi
|
|
206
|
-
fi
|
|
207
|
-
|
|
208
|
-
# Cargo binaries
|
|
209
|
-
if cmd_exists cargo; then
|
|
210
|
-
print_step "Updating Cargo binaries"
|
|
211
|
-
cargo_output=$(cargo install-update -a 2>&1)
|
|
212
|
-
if echo "${cargo_output}" | grep -q "All packages are up to date" || true; then
|
|
213
|
-
print_note "Cargo binaries are already up to date."
|
|
214
|
-
else
|
|
215
|
-
print_note "Cargo binaries updated successfully."
|
|
216
|
-
fi
|
|
217
|
-
fi
|
|
218
|
-
|
|
219
|
-
# Ruby Gems
|
|
220
|
-
if cmd_exists gem; then
|
|
221
|
-
print_step "Updating RubyGems and installed gems"
|
|
222
|
-
gem update --system >/dev/null 2>&1 && print_note "RubyGems system updated successfully."
|
|
223
|
-
gem_output=$(gem update 2>&1)
|
|
224
|
-
if echo "${gem_output}" | grep -q "Nothing to update" || true; then
|
|
225
|
-
print_note "All Ruby gems are already up to date."
|
|
226
|
-
else
|
|
227
|
-
print_note "Ruby gems updated successfully."
|
|
228
|
-
fi
|
|
229
|
-
gem cleanup && print_note "Ruby gems cleanup completed."
|
|
230
|
-
fi
|
|
231
|
-
|
|
232
|
-
# Homebrew
|
|
233
|
-
if cmd_exists brew; then
|
|
234
|
-
print_step "Updating Homebrew packages"
|
|
235
|
-
brew update >/dev/null
|
|
236
|
-
brew_output=$(brew upgrade 2>&1)
|
|
237
|
-
if echo "${brew_output}" | grep -q "already up-to-date" || true; then
|
|
238
|
-
print_note "Homebrew packages are already up to date."
|
|
239
|
-
else
|
|
240
|
-
print_note "Homebrew packages updated successfully."
|
|
241
|
-
fi
|
|
242
|
-
brew cleanup && print_note "Homebrew cleanup completed."
|
|
243
|
-
fi
|
|
244
|
-
|
|
245
|
-
# Go modules
|
|
246
|
-
if cmd_exists go; then
|
|
247
|
-
print_step "Checking for Go module updates"
|
|
248
|
-
go_output=$(go list -u -m all 2>&1)
|
|
249
|
-
if echo "${go_output}" | grep -q "no updates" || true; then
|
|
250
|
-
print_note "All Go modules are already up to date."
|
|
251
|
-
else
|
|
252
|
-
go get -u all && print_note "Go modules updated successfully."
|
|
253
|
-
fi
|
|
254
|
-
fi
|
|
255
|
-
|
|
256
|
-
# Deno
|
|
257
|
-
if cmd_exists deno; then
|
|
258
|
-
print_step "Updating Deno runtime"
|
|
259
|
-
deno_output=$(deno upgrade 2>&1)
|
|
260
|
-
if echo "${deno_output}" | grep -q "already up to date" || true; then
|
|
261
|
-
print_note "Deno is already up to date."
|
|
262
|
-
else
|
|
263
|
-
print_note "Deno updated successfully."
|
|
264
|
-
fi
|
|
265
|
-
fi
|
|
266
|
-
|
|
267
|
-
# VS Code extensions
|
|
268
|
-
if cmd_exists code; then
|
|
269
|
-
print_step "Updating Visual Studio Code extensions"
|
|
270
|
-
vscode_output=$(code --list-extensions --show-versions 2>&1)
|
|
271
|
-
if echo "${vscode_output}" | grep -q "No updates available" || true; then
|
|
272
|
-
print_note "All Visual Studio Code extensions are already up to date."
|
|
273
|
-
else
|
|
274
|
-
code --update-extensions && print_note "Visual Studio Code extensions updated successfully."
|
|
275
|
-
fi
|
|
276
|
-
fi
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
#-------------------------------#
|
|
281
|
-
# Main Update Function #
|
|
282
|
-
#-------------------------------#
|
|
283
|
-
|
|
284
|
-
function upd() {
|
|
285
|
-
local os_name
|
|
286
|
-
os_name="$(detect_os)"
|
|
287
|
-
echo -e "${GREEN}❯ Detected OS: ${os_name}${RESET}"
|
|
288
|
-
|
|
289
|
-
# Run OS-specific updates
|
|
290
|
-
case "${os_name}" in
|
|
291
|
-
macOS) update_mac ;;
|
|
292
|
-
Linux) update_linux ;;
|
|
293
|
-
Windows) update_windows ;;
|
|
294
|
-
*) print_note "Unsupported operating system. Exiting..."; return 1 ;;
|
|
295
|
-
esac
|
|
296
|
-
|
|
297
|
-
# Update development tools
|
|
298
|
-
update_programming_tools
|
|
299
|
-
|
|
300
|
-
echo "✅ Installation complete – you're all set."
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
#-------------------------------#
|
|
304
|
-
# Script Entry Point #
|
|
305
|
-
#-------------------------------#
|
|
306
|
-
|
|
307
|
-
# If the script is executed directly, inform the user about sourcing
|
|
308
|
-
if [ "${BASH_SOURCE[0]}" = "${0}" ]; then
|
|
309
|
-
echo -e "${GREEN}❯ Source this script and run 'upd' to start the update process.${RESET}"
|
|
310
|
-
fi
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<!-- markdownlint-disable MD033 MD041 MD043 -->
|
|
2
|
-
|
|
3
|
-
<img
|
|
4
|
-
src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
5
|
-
alt="dotfiles logo"
|
|
6
|
-
width="66"
|
|
7
|
-
align="right"
|
|
8
|
-
/>
|
|
9
|
-
|
|
10
|
-
<!-- markdownlint-enable MD033 MD041 -->
|
|
11
|
-
|
|
12
|
-
# Dotfiles (v0.2.469)
|
|
13
|
-
|
|
14
|
-
Simply designed to fit your shell life 🐚
|
|
15
|
-
|
|
16
|
-
![Dotfiles banner][banner]
|
|
17
|
-
|
|
18
|
-
## 🆄🆄🅸🅳 🅰🅻🅸🅰🆂🅴🆂
|
|
19
|
-
|
|
20
|
-
This code provides a set of aliases for the `uuidgen` command.
|
|
21
|
-
|
|
22
|
-
- `uuid` Generate a UUID and copy it to the clipboard.
|
|
23
|
-
|
|
24
|
-
[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.469) - <https://dotfiles.io>
|
|
4
|
-
# Made with ♥ in London, UK by Sebastien Rousseau
|
|
5
|
-
# Copyright (c) 2015-2025. All rights reserved
|
|
6
|
-
# License: MIT
|
|
7
|
-
|
|
8
|
-
# 🆄🆄🅸🅳 🅰🅻🅸🅰🆂🅴🆂
|
|
9
|
-
|
|
10
|
-
# uuid: Generate a UUID and copy it to the clipboard.
|
|
11
|
-
if [[ "${OSTYPE}" == "darwin"* ]]; then
|
|
12
|
-
if command -v 'uuidgen' >/dev/null; then
|
|
13
|
-
# macOS
|
|
14
|
-
alias uuid="uuidgen | tr -d '\n' | tr '[:upper:]' '[:lower:]' | pbcopy && pbpaste && echo"
|
|
15
|
-
fi
|
|
16
|
-
elif [[ "${OSTYPE}" == "linux-gnu"* ]]; then
|
|
17
|
-
# Linux
|
|
18
|
-
alias uuid="uuid | tr '[:upper:]' '[:lower:]' | xsel -ib && xsel -ob && echo"
|
|
19
|
-
fi
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<!-- markdownlint-disable MD033 MD041 MD043 -->
|
|
2
|
-
|
|
3
|
-
<img
|
|
4
|
-
src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
5
|
-
alt="dotfiles logo"
|
|
6
|
-
width="66"
|
|
7
|
-
align="right"
|
|
8
|
-
/>
|
|
9
|
-
|
|
10
|
-
<!-- markdownlint-enable MD033 MD041 -->
|
|
11
|
-
|
|
12
|
-
# Dotfiles (v0.2.469)
|
|
13
|
-
|
|
14
|
-
Simply designed to fit your shell life 🐚
|
|
15
|
-
|
|
16
|
-
![Dotfiles banner][banner]
|
|
17
|
-
|
|
18
|
-
## 🆆🅶🅴🆃 🅰🅻🅸🅰🆂🅴🆂
|
|
19
|
-
|
|
20
|
-
This code provides a set of aliases for the `wget` command.
|
|
21
|
-
|
|
22
|
-
- `wg` wget.
|
|
23
|
-
- `wgc` wget with continue.
|
|
24
|
-
- `wge` wget with robots=off.
|
|
25
|
-
- `wget` wget with continue.
|
|
26
|
-
|
|
27
|
-
[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.469) - <https://dotfiles.io>
|
|
4
|
-
# Made with ♥ in London, UK by Sebastien Rousseau
|
|
5
|
-
# Copyright (c) 2015-2025. All rights reserved
|
|
6
|
-
# License: MIT
|
|
7
|
-
|
|
8
|
-
# 🆆🅶🅴🆃 🅰🅻🅸🅰🆂🅴🆂
|
|
9
|
-
if command -v 'wget' >/dev/null; then
|
|
10
|
-
|
|
11
|
-
# wget.
|
|
12
|
-
alias wg='wget'
|
|
13
|
-
|
|
14
|
-
# wget with continue.
|
|
15
|
-
alias wgc='wg'
|
|
16
|
-
|
|
17
|
-
# wget with robots=off.
|
|
18
|
-
alias wge='wg -e robots=off'
|
|
19
|
-
|
|
20
|
-
# wget with continue.
|
|
21
|
-
alias wget='wget -c'
|
|
22
|
-
fi
|
package/dist/lib/aliases.sh
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
################################################################################
|
|
4
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂
|
|
5
|
-
# Script: aliases.sh
|
|
6
|
-
# Version: 0.2.469
|
|
7
|
-
# Author: @wwdseb
|
|
8
|
-
# Copyright (c) 2015-2025. All rights reserved
|
|
9
|
-
# Description: Script to manage shell aliases
|
|
10
|
-
# Website: https://dotfiles.io
|
|
11
|
-
# License: MIT
|
|
12
|
-
################################################################################
|
|
13
|
-
|
|
14
|
-
## 🅰🅻🅸🅰🆂🅴🆂
|
|
15
|
-
|
|
16
|
-
# Function: remove_all_aliases
|
|
17
|
-
#
|
|
18
|
-
# Description:
|
|
19
|
-
# Removes all aliases from the current shell.
|
|
20
|
-
#
|
|
21
|
-
# Arguments:
|
|
22
|
-
# None
|
|
23
|
-
#
|
|
24
|
-
# Further Reading:
|
|
25
|
-
# Bash Unalias Documentation: https://www.gnu.org/software/bash/manual/html_node/Bash-Builtins.html#Bash-Builtins
|
|
26
|
-
|
|
27
|
-
remove_all_aliases() {
|
|
28
|
-
unalias -a # Remove all previous environment defined aliases.
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
# Function: load_custom_aliases
|
|
32
|
-
#
|
|
33
|
-
# Description:
|
|
34
|
-
# Loads custom Dotfiles aliases from the specified directory.
|
|
35
|
-
#
|
|
36
|
-
# Arguments:
|
|
37
|
-
# None
|
|
38
|
-
#
|
|
39
|
-
# Further Reading:
|
|
40
|
-
# ShellCheck Documentation: https://github.com/koalaman/shellcheck
|
|
41
|
-
|
|
42
|
-
load_custom_aliases() {
|
|
43
|
-
for file in "${HOME}"/.dotfiles/lib/aliases/[!.#]*/*.sh; do
|
|
44
|
-
# shellcheck source=/dev/null
|
|
45
|
-
source "${file}"
|
|
46
|
-
done
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
remove_all_aliases
|
|
50
|
-
load_custom_aliases
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<!-- markdownlint-disable MD033 MD041 MD043 -->
|
|
2
|
-
|
|
3
|
-
<img
|
|
4
|
-
src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
5
|
-
alt="dotfiles logo"
|
|
6
|
-
width="66"
|
|
7
|
-
align="right"
|
|
8
|
-
/>
|
|
9
|
-
|
|
10
|
-
<!-- markdownlint-enable MD033 MD041 -->
|
|
11
|
-
|
|
12
|
-
# Dotfiles (v0.2.469)
|
|
13
|
-
|
|
14
|
-
Simply designed to fit your shell life 🐚
|
|
15
|
-
|
|
16
|
-
![Dotfiles banner][banner]
|
|
17
|
-
|
|
18
|
-
[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
################################################################################
|
|
4
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂
|
|
5
|
-
# Script: environment.sh
|
|
6
|
-
# Version: 0.2.469
|
|
7
|
-
# Author: Sebastien Rousseau
|
|
8
|
-
# Copyright (c) 2015-2025. All rights reserved
|
|
9
|
-
# Description: Configure system environment variables and load dotfiles
|
|
10
|
-
# Website: https://dotfiles.io
|
|
11
|
-
# License: MIT
|
|
12
|
-
################################################################################
|
|
13
|
-
|
|
14
|
-
#-----------------------------------------------------------------------------
|
|
15
|
-
# Function: configure_system_info
|
|
16
|
-
#
|
|
17
|
-
# Description:
|
|
18
|
-
# Configures system-related environment variables.
|
|
19
|
-
#
|
|
20
|
-
# Arguments:
|
|
21
|
-
# None
|
|
22
|
-
#
|
|
23
|
-
# Returns:
|
|
24
|
-
# 0 on success, 1 on failure
|
|
25
|
-
#-----------------------------------------------------------------------------
|
|
26
|
-
configure_system_info() {
|
|
27
|
-
# System information
|
|
28
|
-
if ! HOSTNAME=$(hostname -f); then
|
|
29
|
-
echo "Warning: Could not determine hostname" >&2
|
|
30
|
-
return 1
|
|
31
|
-
fi
|
|
32
|
-
|
|
33
|
-
if ! OS_ARCH=$(uname -m); then
|
|
34
|
-
echo "Warning: Could not determine system architecture" >&2
|
|
35
|
-
return 1
|
|
36
|
-
fi
|
|
37
|
-
|
|
38
|
-
if ! OS_NAME=$(uname); then
|
|
39
|
-
echo "Warning: Could not determine operating system" >&2
|
|
40
|
-
return 1
|
|
41
|
-
fi
|
|
42
|
-
|
|
43
|
-
if ! OS_VERSION=$(uname -r); then
|
|
44
|
-
echo "Warning: Could not determine system version" >&2
|
|
45
|
-
return 1
|
|
46
|
-
fi
|
|
47
|
-
|
|
48
|
-
if ! USER=$(whoami); then
|
|
49
|
-
echo "Warning: Could not determine username" >&2
|
|
50
|
-
return 1
|
|
51
|
-
fi
|
|
52
|
-
|
|
53
|
-
# Export system variables
|
|
54
|
-
export HOSTNAME
|
|
55
|
-
export OS_ARCH
|
|
56
|
-
export OS_NAME
|
|
57
|
-
export OS_VERSION
|
|
58
|
-
export USER
|
|
59
|
-
export ARCHFLAGS="-arch ${OS_ARCH}"
|
|
60
|
-
|
|
61
|
-
return 0
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
#-----------------------------------------------------------------------------
|
|
65
|
-
# Function: configure_locale_settings
|
|
66
|
-
#
|
|
67
|
-
# Description:
|
|
68
|
-
# Configures locale and language settings.
|
|
69
|
-
#
|
|
70
|
-
# Arguments:
|
|
71
|
-
# None
|
|
72
|
-
#
|
|
73
|
-
# Returns:
|
|
74
|
-
# None
|
|
75
|
-
#-----------------------------------------------------------------------------
|
|
76
|
-
configure_locale_settings() {
|
|
77
|
-
# Default language settings
|
|
78
|
-
local USER_LANGUAGE="en_GB.UTF-8"
|
|
79
|
-
|
|
80
|
-
# Export locale variables
|
|
81
|
-
export LANG="${USER_LANGUAGE}"
|
|
82
|
-
export LANGUAGE="${USER_LANGUAGE}"
|
|
83
|
-
export LC_ALL="${USER_LANGUAGE}"
|
|
84
|
-
export LC_CTYPE="${USER_LANGUAGE}"
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
#-----------------------------------------------------------------------------
|
|
88
|
-
# Function: configure_dotfiles_environment
|
|
89
|
-
#
|
|
90
|
-
# Description:
|
|
91
|
-
# Configures dotfiles-specific environment variables.
|
|
92
|
-
#
|
|
93
|
-
# Arguments:
|
|
94
|
-
# None
|
|
95
|
-
#
|
|
96
|
-
# Returns:
|
|
97
|
-
# 0 on success, 1 on failure
|
|
98
|
-
#-----------------------------------------------------------------------------
|
|
99
|
-
configure_dotfiles_environment() {
|
|
100
|
-
# Dotfiles configuration
|
|
101
|
-
export DOTFILES_VERSION='0.2.469'
|
|
102
|
-
export DOTFILES="${HOME}/.dotfiles/lib"
|
|
103
|
-
|
|
104
|
-
# Check if dotfiles directory exists
|
|
105
|
-
if [[ ! -d "${DOTFILES}" ]]; then
|
|
106
|
-
echo "Warning: Dotfiles directory not found: ${DOTFILES}" >&2
|
|
107
|
-
return 1
|
|
108
|
-
fi
|
|
109
|
-
|
|
110
|
-
# Additional environment settings
|
|
111
|
-
export INPUTRC="${HOME}/.inputrc"
|
|
112
|
-
export SSL_CERT_FILE="${HOME}/cacert.pem"
|
|
113
|
-
export TERM="xterm-256color"
|
|
114
|
-
|
|
115
|
-
return 0
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
#-----------------------------------------------------------------------------
|
|
119
|
-
# Function: load_dotfiles
|
|
120
|
-
#
|
|
121
|
-
# Description:
|
|
122
|
-
# Loads all .sh files from the dotfiles directory.
|
|
123
|
-
#
|
|
124
|
-
# Arguments:
|
|
125
|
-
# None
|
|
126
|
-
#
|
|
127
|
-
# Returns:
|
|
128
|
-
# 0 on success, 1 if no files found
|
|
129
|
-
#-----------------------------------------------------------------------------
|
|
130
|
-
load_dotfiles() {
|
|
131
|
-
local loaders_pattern="${DOTFILES}/*.sh"
|
|
132
|
-
local found_files=0
|
|
133
|
-
|
|
134
|
-
# Check if any matching files exist
|
|
135
|
-
for loader in ${loaders_pattern}; do
|
|
136
|
-
if [[ -f "${loader}" ]]; then
|
|
137
|
-
found_files=1
|
|
138
|
-
# shellcheck source=/dev/null
|
|
139
|
-
if ! . "${loader}"; then
|
|
140
|
-
echo "Warning: Failed to load ${loader}" >&2
|
|
141
|
-
fi
|
|
142
|
-
fi
|
|
143
|
-
done
|
|
144
|
-
|
|
145
|
-
if [[ ${found_files} -eq 0 ]]; then
|
|
146
|
-
echo "Warning: No dotfiles found in ${DOTFILES}" >&2
|
|
147
|
-
return 1
|
|
148
|
-
fi
|
|
149
|
-
|
|
150
|
-
return 0
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
#-----------------------------------------------------------------------------
|
|
154
|
-
# Main Execution
|
|
155
|
-
#-----------------------------------------------------------------------------
|
|
156
|
-
|
|
157
|
-
# Configure system information
|
|
158
|
-
configure_system_info || echo "Warning: System information configuration failed" >&2
|
|
159
|
-
|
|
160
|
-
# Configure locale settings
|
|
161
|
-
configure_locale_settings
|
|
162
|
-
|
|
163
|
-
# Configure dotfiles environment
|
|
164
|
-
configure_dotfiles_environment || echo "Warning: Dotfiles environment configuration failed" >&2
|
|
165
|
-
|
|
166
|
-
# Load dotfiles
|
|
167
|
-
load_dotfiles || echo "Warning: Dotfiles loading failed" >&2
|