@sebastienrousseau/dotfiles 0.2.468 → 0.2.469

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.
Files changed (172) hide show
  1. package/README.md +5 -5
  2. package/dist/Makefile +126 -43
  3. package/dist/bin/constants.d.ts +2 -2
  4. package/dist/bin/constants.d.ts.map +1 -1
  5. package/dist/bin/constants.js +1 -1
  6. package/dist/filesizes.txt +146 -144
  7. package/dist/lib/README.md +79 -5
  8. package/dist/lib/aliases/README.md +44 -42
  9. package/dist/lib/aliases/archives/README.md +120 -34
  10. package/dist/lib/aliases/archives/archives.aliases.sh +106 -149
  11. package/dist/lib/aliases/cd/README.md +119 -38
  12. package/dist/lib/aliases/cd/cd.aliases.sh +37 -59
  13. package/dist/lib/aliases/chmod/README.md +146 -95
  14. package/dist/lib/aliases/chmod/chmod.aliases.sh +71 -55
  15. package/dist/lib/aliases/clear/README.md +2 -2
  16. package/dist/lib/aliases/clear/clear.aliases.sh +4 -4
  17. package/dist/lib/aliases/configuration/README.md +2 -2
  18. package/dist/lib/aliases/configuration/configuration.aliases.sh +3 -6
  19. package/dist/lib/aliases/default/README.md +2 -2
  20. package/dist/lib/aliases/default/default.aliases.sh +3 -3
  21. package/dist/lib/aliases/dig/README.md +2 -2
  22. package/dist/lib/aliases/dig/dig.aliases.sh +4 -4
  23. package/dist/lib/aliases/disk-usage/README.md +2 -2
  24. package/dist/lib/aliases/disk-usage/du.aliases.sh +2 -2
  25. package/dist/lib/aliases/editor/README.md +2 -2
  26. package/dist/lib/aliases/editor/editor.aliases.sh +4 -4
  27. package/dist/lib/aliases/find/README.md +2 -2
  28. package/dist/lib/aliases/find/find.aliases.sh +4 -4
  29. package/dist/lib/aliases/gcloud/README.md +2 -2
  30. package/dist/lib/aliases/gcloud/gcloud.aliases.sh +4 -4
  31. package/dist/lib/aliases/git/README.md +2 -2
  32. package/dist/lib/aliases/git/git.aliases.sh +3 -3
  33. package/dist/lib/aliases/gnu/README.md +2 -2
  34. package/dist/lib/aliases/gnu/gnucoreutils-aliases.sh +2 -2
  35. package/dist/lib/aliases/heroku/README.md +2 -2
  36. package/dist/lib/aliases/heroku/heroku.aliases.sh +3 -3
  37. package/dist/lib/aliases/interactive/README.md +2 -2
  38. package/dist/lib/aliases/interactive/interactive.aliases.sh +3 -3
  39. package/dist/lib/aliases/list/README.md +112 -23
  40. package/dist/lib/aliases/list/list.aliases.sh +130 -84
  41. package/dist/lib/aliases/macOS/README.md +2 -2
  42. package/dist/lib/aliases/macOS/macos.aliases.sh +3 -3
  43. package/dist/lib/aliases/make/README.md +2 -2
  44. package/dist/lib/aliases/make/make.aliases.sh +3 -3
  45. package/dist/lib/aliases/mkdir/README.md +2 -2
  46. package/dist/lib/aliases/mkdir/mkdir.aliases.sh +3 -3
  47. package/dist/lib/aliases/npm/README.md +2 -2
  48. package/dist/lib/aliases/npm/npm.aliases.sh +3 -3
  49. package/dist/lib/aliases/permission/README.md +2 -2
  50. package/dist/lib/aliases/permission/permission.aliases.sh +3 -3
  51. package/dist/lib/aliases/pnpm/README.md +2 -2
  52. package/dist/lib/aliases/pnpm/pnpm.aliases.sh +3 -3
  53. package/dist/lib/aliases/ps/README.md +2 -2
  54. package/dist/lib/aliases/ps/ps.aliases.sh +3 -3
  55. package/dist/lib/aliases/python/python.aliases.sh +141 -0
  56. package/dist/lib/aliases/rsync/README.md +2 -2
  57. package/dist/lib/aliases/rsync/rsync.aliases.sh +3 -3
  58. package/dist/lib/aliases/rust/README.md +165 -44
  59. package/dist/lib/aliases/rust/rust.aliases.sh +109 -117
  60. package/dist/lib/aliases/subversion/README.md +2 -2
  61. package/dist/lib/aliases/subversion/subversion.aliases.sh +3 -3
  62. package/dist/lib/aliases/sudo/README.md +2 -2
  63. package/dist/lib/aliases/sudo/sudo.aliases.sh +3 -3
  64. package/dist/lib/aliases/tmux/README.md +2 -2
  65. package/dist/lib/aliases/tmux/tmux.aliases.sh +3 -3
  66. package/dist/lib/aliases/update/README.md +2 -2
  67. package/dist/lib/aliases/update/update.aliases.sh +307 -66
  68. package/dist/lib/aliases/uuid/README.md +2 -2
  69. package/dist/lib/aliases/uuid/uuid.aliases.sh +3 -3
  70. package/dist/lib/aliases/wget/README.md +2 -2
  71. package/dist/lib/aliases/wget/wget.aliases.sh +3 -3
  72. package/dist/lib/aliases.sh +2 -2
  73. package/dist/lib/configurations/README.md +2 -2
  74. package/dist/lib/configurations/bash/bashrc +163 -35
  75. package/dist/lib/configurations/curl/curlrc +3 -6
  76. package/dist/lib/configurations/default/color.sh +3 -3
  77. package/dist/lib/configurations/default/constants.sh +4 -4
  78. package/dist/lib/configurations/default/editor.sh +3 -3
  79. package/dist/lib/configurations/default/prompt.sh +20 -11
  80. package/dist/lib/configurations/input/inputrc +3 -3
  81. package/dist/lib/configurations/nano/nanorc +3 -3
  82. package/dist/lib/configurations/profile/profile +3 -3
  83. package/dist/lib/configurations/prompt/prompt.sh +81 -0
  84. package/dist/lib/configurations/tmux/default +3 -3
  85. package/dist/lib/configurations/tmux/display +3 -3
  86. package/dist/lib/configurations/tmux/linux +3 -3
  87. package/dist/lib/configurations/tmux/navigation +3 -3
  88. package/dist/lib/configurations/tmux/panes +3 -3
  89. package/dist/lib/configurations/tmux/theme +4 -4
  90. package/dist/lib/configurations/tmux/tmux +3 -3
  91. package/dist/lib/configurations/vim/vimrc +191 -71
  92. package/dist/lib/configurations/wget/wgetrc +3 -3
  93. package/dist/lib/configurations/zsh/zshrc +3 -4
  94. package/dist/lib/configurations.sh +19 -7
  95. package/dist/lib/functions/README.md +68 -54
  96. package/dist/lib/functions/apihealth.sh +277 -0
  97. package/dist/lib/functions/apilatency.sh +157 -0
  98. package/dist/lib/functions/apiload.sh +165 -0
  99. package/dist/lib/functions/backup.sh +143 -0
  100. package/dist/lib/functions/cdls.sh +52 -6
  101. package/dist/lib/functions/curlheader.sh +66 -10
  102. package/dist/lib/functions/curlstatus.sh +64 -7
  103. package/dist/lib/functions/curltime.sh +56 -14
  104. package/dist/lib/functions/encode64.sh +87 -7
  105. package/dist/lib/functions/environment.sh +65 -25
  106. package/dist/lib/functions/extract.sh +79 -27
  107. package/dist/lib/functions/freespace.sh +55 -9
  108. package/dist/lib/functions/genpwd.sh +93 -29
  109. package/dist/lib/functions/goto.sh +59 -8
  110. package/dist/lib/functions/hexdump.sh +96 -0
  111. package/dist/lib/functions/hiddenfiles.sh +77 -0
  112. package/dist/lib/functions/hostinfo.sh +92 -21
  113. package/dist/lib/functions/hstats.sh +69 -5
  114. package/dist/lib/functions/httpdebug.sh +109 -5
  115. package/dist/lib/functions/kebabcase.sh +61 -0
  116. package/dist/lib/functions/keygen.sh +188 -25
  117. package/dist/lib/functions/last.sh +106 -5
  118. package/dist/lib/functions/logout.sh +114 -6
  119. package/dist/lib/functions/lowercase.sh +49 -17
  120. package/dist/lib/functions/matrix.sh +205 -30
  121. package/dist/lib/functions/mount_read_only.sh +3 -3
  122. package/dist/lib/functions/myproc.sh +3 -3
  123. package/dist/lib/functions/prependpath.sh +3 -3
  124. package/dist/lib/functions/ql.sh +3 -3
  125. package/dist/lib/functions/rd.sh +3 -3
  126. package/dist/lib/functions/remove_disk.sh +3 -3
  127. package/dist/lib/functions/ren.sh +68 -8
  128. package/dist/lib/functions/sentencecase.sh +63 -0
  129. package/dist/lib/functions/showhiddenfiles.sh +3 -3
  130. package/dist/lib/functions/size.sh +6 -5
  131. package/dist/lib/functions/snakecase.sh +61 -0
  132. package/dist/lib/functions/stopwatch.sh +3 -3
  133. package/dist/lib/functions/sysinfo.sh +145 -0
  134. package/dist/lib/functions/titlecase.sh +65 -0
  135. package/dist/lib/functions/uppercase.sh +51 -19
  136. package/dist/lib/functions/view-source.sh +3 -3
  137. package/dist/lib/functions/vscode.sh +3 -3
  138. package/dist/lib/functions/whoisport.sh +3 -3
  139. package/dist/lib/functions/zipf.sh +3 -3
  140. package/dist/lib/functions.sh +21 -7
  141. package/dist/lib/history.sh +36 -88
  142. package/dist/lib/paths/README.md +52 -0
  143. package/dist/lib/paths/custom.paths.sh +40 -0
  144. package/dist/lib/paths/default.paths.sh +37 -0
  145. package/dist/lib/paths.sh +27 -14
  146. package/dist/scripts/backup.sh +3 -3
  147. package/dist/scripts/banner.sh +3 -3
  148. package/dist/scripts/build.sh +3 -3
  149. package/dist/scripts/clean.sh +3 -3
  150. package/dist/scripts/compile.sh +3 -3
  151. package/dist/scripts/copy.sh +3 -3
  152. package/dist/scripts/dotfiles.sh +3 -3
  153. package/dist/scripts/download.sh +3 -3
  154. package/dist/scripts/help.sh +3 -3
  155. package/dist/scripts/ssh.sh +3 -3
  156. package/dist/scripts/unpack.sh +3 -3
  157. package/package.json +10 -10
  158. package/dist/lib/aliases/jekyll/README.md +0 -41
  159. package/dist/lib/aliases/jekyll/jekyll.aliases.sh +0 -54
  160. package/dist/lib/functions/filehead.sh +0 -4
  161. package/dist/lib/functions/hidehiddenfiles.sh +0 -14
  162. package/dist/lib/paths/ant/ant.paths.sh +0 -15
  163. package/dist/lib/paths/default/default.paths.sh +0 -19
  164. package/dist/lib/paths/homebrew/homebrew.paths.sh +0 -27
  165. package/dist/lib/paths/java/java.paths.sh +0 -19
  166. package/dist/lib/paths/maven/maven.paths.sh +0 -18
  167. package/dist/lib/paths/node/node.paths.sh +0 -15
  168. package/dist/lib/paths/nvm/nvm.paths.sh +0 -23
  169. package/dist/lib/paths/pnpm/pnpm.paths.sh +0 -15
  170. package/dist/lib/paths/python/python.paths.sh +0 -36
  171. package/dist/lib/paths/ruby/ruby.paths.sh +0 -25
  172. package/dist/lib/paths/tmux/tmux.paths.sh +0 -12
@@ -3,13 +3,13 @@
3
3
  <img
4
4
  src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
5
5
  alt="dotfiles logo"
6
- width="261"
6
+ width="66"
7
7
  align="right"
8
8
  />
9
9
 
10
10
  <!-- markdownlint-enable MD033 MD041 -->
11
11
 
12
- # Dotfiles (v0.2.468)
12
+ # Dotfiles (v0.2.469)
13
13
 
14
14
  Simply designed to fit your shell life 🐚
15
15
 
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.468) - <https://dotfiles.io>
4
- # Made with ♥ in London, UK by @wwdseb
5
- # Copyright (c) 2015-2024. All rights reserved
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
6
  # License: MIT
7
7
 
8
8
  # 🆂🆄🅳🅾 🅰🅻🅸🅰🆂🅴🆂
@@ -3,13 +3,13 @@
3
3
  <img
4
4
  src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
5
5
  alt="dotfiles logo"
6
- width="261"
6
+ width="66"
7
7
  align="right"
8
8
  />
9
9
 
10
10
  <!-- markdownlint-enable MD033 MD041 -->
11
11
 
12
- # Dotfiles (v0.2.468)
12
+ # Dotfiles (v0.2.469)
13
13
 
14
14
  Simply designed to fit your shell life 🐚
15
15
 
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.468) - <https://dotfiles.io>
4
- # Made with ♥ in London, UK by @wwdseb
5
- # Copyright (c) 2015-2024. All rights reserved
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
6
  # License: MIT
7
7
 
8
8
  # 🆃🅼🆄🆇 🅰🅻🅸🅰🆂🅴🆂
@@ -3,13 +3,13 @@
3
3
  <img
4
4
  src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
5
5
  alt="dotfiles logo"
6
- width="261"
6
+ width="66"
7
7
  align="right"
8
8
  />
9
9
 
10
10
  <!-- markdownlint-enable MD033 MD041 -->
11
11
 
12
- # Dotfiles (v0.2.468)
12
+ # Dotfiles (v0.2.469)
13
13
 
14
14
  Simply designed to fit your shell life 🐚
15
15
 
@@ -1,69 +1,310 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.468) - <https://dotfiles.io>
4
- # Made with in London, UK by @wwdseb
5
- # Copyright (c) 2015-2024. All rights reserved
6
- # License: MIT
7
-
8
- # 🆄🅿🅳🅰🆃🅴 🅰🅻🅸🅰🆂🅴🆂
9
- os_name="$(uname)"
10
-
11
- if [[ "${os_name}" = "Darwin" ]]; then
12
- alias upd="
13
- echo \"❯ Updating \${os_name}...\";
14
- sudo softwareupdate -i -a;
15
- echo '❯ Updating Homebrew...';
16
- brew update && brew upgrade;
17
- echo '❯ Updating pnpm packages...';
18
- pnpm up;
19
- echo '❯ Updating Rust stable toolchain...';
20
- rustup update stable;
21
- echo '❯ Updating Homebrew Casks...';
22
- brew cu -ayi || (brew tap buo/cask-upgrade && brew cu -ayi);
23
- echo '❯ Cleaning up Homebrew...';
24
- brew cleanup && brew doctor;
25
- echo '❯ Updating Mac App Store apps...';
26
- mas upgrade;
27
- echo '❯ Updating Ruby gems...';
28
- sudo gem update && sudo gem cleanup;
29
- echo '❯ Updating Python packages...';
30
- pip install --upgrade --user pip setuptools wheel;
31
- update_outdated_pip_packages();
32
- echo 'Updating Node.js packages...';
33
- npm update -g;
34
- echo '❯ Update complete!';
35
- "
36
- elif [[ "${os_name}" = "Linux" ]]; then
37
- # Open a file or URL in the user's preferred application.
38
- alias open="xdg-open >/dev/null 2>&1"
39
-
40
- # Copy to clipboard.
41
- alias pbcopy='xsel --clipboard --input'
42
-
43
- # Paste from clipboard.
44
- alias pbpaste='xsel --clipboard --output'
45
- alias upd="
46
- echo \"❯ Updating \${os_name}...\";
47
- sudo apt update && sudo apt upgrade -y;
48
- echo '❯ Cleaning up package cache...';
49
- sudo apt autoremove -y && sudo apt clean;
50
- echo '❯ Updating pnpm packages...';
51
- pnpm up;
52
- echo '❯ Updating Rust stable toolchain...';
53
- rustup update stable;
54
- echo '❯ Updating Ruby gems...';
55
- sudo gem update && sudo gem cleanup;
56
- echo '❯ Updating Python packages...';
57
- pip install --upgrade --user pip setuptools wheel;
58
- update_outdated_pip_packages();
59
- echo '❯ Updating Node.js packages...';
60
- npm update -g;
61
- echo '❯ Update complete!';
62
- "
63
- fi
64
-
65
- function update_outdated_pip_packages() {
66
- pip list --user --outdated --format=columns |
67
- awk 'NR>2 {print $1}' |
68
- xargs -I{} pip install -U --user "{}" || true
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
69
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
@@ -3,13 +3,13 @@
3
3
  <img
4
4
  src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
5
5
  alt="dotfiles logo"
6
- width="261"
6
+ width="66"
7
7
  align="right"
8
8
  />
9
9
 
10
10
  <!-- markdownlint-enable MD033 MD041 -->
11
11
 
12
- # Dotfiles (v0.2.468)
12
+ # Dotfiles (v0.2.469)
13
13
 
14
14
  Simply designed to fit your shell life 🐚
15
15
 
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.468) - <https://dotfiles.io>
4
- # Made with ♥ in London, UK by @wwdseb
5
- # Copyright (c) 2015-2024. All rights reserved
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
6
  # License: MIT
7
7
 
8
8
  # 🆄🆄🅸🅳 🅰🅻🅸🅰🆂🅴🆂
@@ -3,13 +3,13 @@
3
3
  <img
4
4
  src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
5
5
  alt="dotfiles logo"
6
- width="261"
6
+ width="66"
7
7
  align="right"
8
8
  />
9
9
 
10
10
  <!-- markdownlint-enable MD033 MD041 -->
11
11
 
12
- # Dotfiles (v0.2.468)
12
+ # Dotfiles (v0.2.469)
13
13
 
14
14
  Simply designed to fit your shell life 🐚
15
15
 
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.468) - <https://dotfiles.io>
4
- # Made with ♥ in London, UK by @wwdseb
5
- # Copyright (c) 2015-2024. All rights reserved
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
6
  # License: MIT
7
7
 
8
8
  # 🆆🅶🅴🆃 🅰🅻🅸🅰🆂🅴🆂
@@ -3,9 +3,9 @@
3
3
  ################################################################################
4
4
  # 🅳🅾🆃🅵🅸🅻🅴🆂
5
5
  # Script: aliases.sh
6
- # Version: 0.2.468
6
+ # Version: 0.2.469
7
7
  # Author: @wwdseb
8
- # Copyright (c) 2015-2024. All rights reserved
8
+ # Copyright (c) 2015-2025. All rights reserved
9
9
  # Description: Script to manage shell aliases
10
10
  # Website: https://dotfiles.io
11
11
  # License: MIT
@@ -3,13 +3,13 @@
3
3
  <img
4
4
  src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
5
5
  alt="dotfiles logo"
6
- width="261"
6
+ width="66"
7
7
  align="right"
8
8
  />
9
9
 
10
10
  <!-- markdownlint-enable MD033 MD041 -->
11
11
 
12
- # Dotfiles (v0.2.468)
12
+ # Dotfiles (v0.2.469)
13
13
 
14
14
  Simply designed to fit your shell life 🐚
15
15