@sebastienrousseau/dotfiles 0.2.466 β 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.
- package/README.md +19 -15
- package/dist/Makefile +126 -43
- 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/dotfiles.d.ts +2 -2
- package/dist/bin/dotfiles.d.ts.map +1 -1
- package/dist/bin/dotfiles.js +1 -2
- 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 +1 -2
- 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/filesizes.txt +161 -161
- package/dist/lib/README.md +83 -5
- package/dist/lib/aliases/README.md +49 -43
- package/dist/lib/aliases/archives/README.md +126 -37
- package/dist/lib/aliases/archives/archives.aliases.sh +112 -152
- package/dist/lib/aliases/cd/README.md +138 -55
- package/dist/lib/aliases/cd/cd.aliases.sh +45 -33
- package/dist/lib/aliases/chmod/README.md +151 -96
- package/dist/lib/aliases/chmod/chmod.aliases.sh +103 -69
- package/dist/lib/aliases/clear/README.md +8 -4
- package/dist/lib/aliases/clear/clear.aliases.sh +57 -28
- package/dist/lib/aliases/configuration/README.md +8 -4
- package/dist/lib/aliases/configuration/configuration.aliases.sh +53 -30
- package/dist/lib/aliases/default/README.md +8 -4
- package/dist/lib/aliases/default/default.aliases.sh +99 -86
- package/dist/lib/aliases/dig/README.md +8 -4
- package/dist/lib/aliases/dig/dig.aliases.sh +4 -4
- package/dist/lib/aliases/disk-usage/README.md +8 -4
- package/dist/lib/aliases/disk-usage/du.aliases.sh +2 -2
- package/dist/lib/aliases/editor/README.md +8 -4
- package/dist/lib/aliases/editor/editor.aliases.sh +4 -4
- package/dist/lib/aliases/find/README.md +8 -4
- package/dist/lib/aliases/find/find.aliases.sh +4 -4
- package/dist/lib/aliases/gcloud/README.md +8 -4
- package/dist/lib/aliases/gcloud/gcloud.aliases.sh +4 -4
- package/dist/lib/aliases/git/README.md +8 -4
- package/dist/lib/aliases/git/git.aliases.sh +3 -3
- package/dist/lib/aliases/gnu/README.md +8 -4
- package/dist/lib/aliases/gnu/gnucoreutils-aliases.sh +2 -2
- package/dist/lib/aliases/heroku/README.md +8 -4
- package/dist/lib/aliases/heroku/heroku.aliases.sh +3 -3
- package/dist/lib/aliases/interactive/README.md +29 -17
- package/dist/lib/aliases/interactive/interactive.aliases.sh +15 -18
- package/dist/lib/aliases/list/README.md +118 -25
- package/dist/lib/aliases/list/list.aliases.sh +130 -84
- package/dist/lib/aliases/macOS/README.md +8 -4
- package/dist/lib/aliases/macOS/macos.aliases.sh +3 -3
- package/dist/lib/aliases/make/README.md +8 -4
- package/dist/lib/aliases/make/make.aliases.sh +3 -3
- package/dist/lib/aliases/mkdir/README.md +8 -4
- package/dist/lib/aliases/mkdir/mkdir.aliases.sh +3 -3
- package/dist/lib/aliases/npm/README.md +8 -4
- package/dist/lib/aliases/npm/npm.aliases.sh +3 -3
- package/dist/lib/aliases/permission/README.md +8 -4
- package/dist/lib/aliases/permission/permission.aliases.sh +3 -3
- package/dist/lib/aliases/pnpm/README.md +8 -4
- package/dist/lib/aliases/pnpm/pnpm.aliases.sh +3 -3
- package/dist/lib/aliases/ps/README.md +8 -4
- package/dist/lib/aliases/ps/ps.aliases.sh +3 -3
- package/dist/lib/aliases/python/python.aliases.sh +141 -0
- package/dist/lib/aliases/rsync/README.md +8 -4
- package/dist/lib/aliases/rsync/rsync.aliases.sh +3 -3
- package/dist/lib/aliases/rust/README.md +171 -46
- package/dist/lib/aliases/rust/rust.aliases.sh +109 -117
- package/dist/lib/aliases/subversion/README.md +8 -4
- package/dist/lib/aliases/subversion/subversion.aliases.sh +3 -3
- package/dist/lib/aliases/sudo/README.md +8 -4
- package/dist/lib/aliases/sudo/sudo.aliases.sh +3 -3
- package/dist/lib/aliases/tmux/README.md +8 -4
- package/dist/lib/aliases/tmux/tmux.aliases.sh +3 -3
- package/dist/lib/aliases/update/README.md +8 -4
- package/dist/lib/aliases/update/update.aliases.sh +307 -66
- package/dist/lib/aliases/uuid/README.md +8 -4
- package/dist/lib/aliases/uuid/uuid.aliases.sh +3 -3
- package/dist/lib/aliases/wget/README.md +8 -4
- package/dist/lib/aliases/wget/wget.aliases.sh +3 -3
- package/dist/lib/aliases.sh +42 -12
- package/dist/lib/configurations/README.md +8 -4
- package/dist/lib/configurations/bash/bashrc +163 -35
- package/dist/lib/configurations/curl/curlrc +3 -6
- package/dist/lib/configurations/default/color.sh +3 -3
- package/dist/lib/configurations/default/constants.sh +4 -4
- package/dist/lib/configurations/default/editor.sh +3 -3
- package/dist/lib/configurations/default/prompt.sh +20 -11
- package/dist/lib/configurations/input/inputrc +3 -3
- package/dist/lib/configurations/nano/nanorc +3 -3
- package/dist/lib/configurations/profile/profile +3 -3
- package/dist/lib/configurations/prompt/prompt.sh +81 -0
- package/dist/lib/configurations/tmux/default +3 -3
- package/dist/lib/configurations/tmux/display +3 -3
- package/dist/lib/configurations/tmux/linux +3 -3
- package/dist/lib/configurations/tmux/navigation +3 -3
- package/dist/lib/configurations/tmux/panes +3 -3
- package/dist/lib/configurations/tmux/theme +4 -4
- package/dist/lib/configurations/tmux/tmux +3 -3
- package/dist/lib/configurations/vim/vimrc +191 -71
- package/dist/lib/configurations/wget/wgetrc +3 -3
- package/dist/lib/configurations/zsh/zshrc +11 -12
- package/dist/lib/configurations.sh +39 -9
- package/dist/lib/functions/README.md +73 -55
- package/dist/lib/functions/apihealth.sh +277 -0
- package/dist/lib/functions/apilatency.sh +157 -0
- package/dist/lib/functions/apiload.sh +165 -0
- package/dist/lib/functions/backup.sh +143 -0
- package/dist/lib/functions/cdls.sh +52 -6
- package/dist/lib/functions/curlheader.sh +66 -10
- package/dist/lib/functions/curlstatus.sh +64 -7
- package/dist/lib/functions/curltime.sh +56 -14
- package/dist/lib/functions/encode64.sh +87 -7
- package/dist/lib/functions/environment.sh +65 -25
- package/dist/lib/functions/extract.sh +79 -27
- package/dist/lib/functions/freespace.sh +55 -9
- package/dist/lib/functions/genpwd.sh +93 -29
- package/dist/lib/functions/goto.sh +59 -8
- package/dist/lib/functions/hexdump.sh +96 -0
- package/dist/lib/functions/hiddenfiles.sh +77 -0
- package/dist/lib/functions/hostinfo.sh +92 -21
- package/dist/lib/functions/hstats.sh +69 -5
- package/dist/lib/functions/httpdebug.sh +109 -5
- package/dist/lib/functions/kebabcase.sh +61 -0
- package/dist/lib/functions/keygen.sh +188 -25
- package/dist/lib/functions/last.sh +106 -5
- package/dist/lib/functions/logout.sh +114 -6
- package/dist/lib/functions/lowercase.sh +49 -17
- package/dist/lib/functions/matrix.sh +205 -30
- package/dist/lib/functions/mount_read_only.sh +3 -3
- package/dist/lib/functions/myproc.sh +3 -3
- package/dist/lib/functions/prependpath.sh +3 -3
- package/dist/lib/functions/ql.sh +3 -3
- package/dist/lib/functions/rd.sh +3 -3
- package/dist/lib/functions/remove_disk.sh +3 -3
- package/dist/lib/functions/ren.sh +68 -8
- package/dist/lib/functions/sentencecase.sh +63 -0
- package/dist/lib/functions/showhiddenfiles.sh +3 -3
- package/dist/lib/functions/size.sh +6 -5
- package/dist/lib/functions/snakecase.sh +61 -0
- package/dist/lib/functions/stopwatch.sh +3 -3
- package/dist/lib/functions/sysinfo.sh +145 -0
- package/dist/lib/functions/titlecase.sh +65 -0
- package/dist/lib/functions/uppercase.sh +51 -19
- package/dist/lib/functions/view-source.sh +3 -3
- package/dist/lib/functions/vscode.sh +3 -3
- package/dist/lib/functions/whoisport.sh +3 -3
- package/dist/lib/functions/zipf.sh +3 -3
- package/dist/lib/functions.sh +41 -10
- package/dist/lib/history.sh +68 -83
- package/dist/lib/paths/README.md +52 -0
- package/dist/lib/paths/custom.paths.sh +40 -0
- package/dist/lib/paths/default.paths.sh +37 -0
- package/dist/lib/paths.sh +40 -11
- package/dist/scripts/backup.sh +3 -3
- package/dist/scripts/banner.sh +3 -3
- package/dist/scripts/build.sh +3 -3
- package/dist/scripts/clean.sh +3 -3
- package/dist/scripts/compile.sh +3 -3
- package/dist/scripts/copy.sh +3 -3
- package/dist/scripts/dotfiles.sh +3 -3
- package/dist/scripts/download.sh +3 -3
- package/dist/scripts/help.sh +3 -3
- package/dist/scripts/ssh.sh +3 -3
- package/dist/scripts/unpack.sh +3 -3
- package/package.json +10 -9
- package/dist/lib/aliases/jekyll/README.md +0 -37
- package/dist/lib/aliases/jekyll/jekyll.aliases.sh +0 -54
- package/dist/lib/configurations/tmux/vi +0 -9
- package/dist/lib/functions/filehead.sh +0 -4
- package/dist/lib/functions/hidehiddenfiles.sh +0 -14
- package/dist/lib/paths/ant/ant.paths.sh +0 -15
- package/dist/lib/paths/default/default.paths.sh +0 -19
- package/dist/lib/paths/homebrew/homebrew.paths.sh +0 -27
- package/dist/lib/paths/java/java.paths.sh +0 -19
- package/dist/lib/paths/maven/maven.paths.sh +0 -18
- package/dist/lib/paths/node/node.paths.sh +0 -15
- package/dist/lib/paths/nvm/nvm.paths.sh +0 -23
- package/dist/lib/paths/pnpm/pnpm.paths.sh +0 -15
- package/dist/lib/paths/python/python.paths.sh +0 -36
- package/dist/lib/paths/ruby/ruby.paths.sh +0 -25
- package/dist/lib/paths/tmux/tmux.paths.sh +0 -12
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
4
|
-
# Made with β₯ in London, UK by
|
|
5
|
-
# Copyright (c) 2015-
|
|
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
|
# πππ
±π
π
΄πππ
Έπ
Ύπ
½ π
°π
»π
Έπ
°ππ
΄π
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
<!-- markdownlint-disable MD033 MD041 -->
|
|
1
|
+
<!-- markdownlint-disable MD033 MD041 MD043 -->
|
|
2
2
|
|
|
3
|
-
<img
|
|
4
|
-
|
|
3
|
+
<img
|
|
4
|
+
src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
5
|
+
alt="dotfiles logo"
|
|
6
|
+
width="66"
|
|
7
|
+
align="right"
|
|
8
|
+
/>
|
|
5
9
|
|
|
6
10
|
<!-- markdownlint-enable MD033 MD041 -->
|
|
7
11
|
|
|
8
|
-
# Dotfiles (v0.2.
|
|
12
|
+
# Dotfiles (v0.2.469)
|
|
9
13
|
|
|
10
14
|
Simply designed to fit your shell life π
|
|
11
15
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
4
|
-
# Made with β₯ in London, UK by
|
|
5
|
-
# Copyright (c) 2015-
|
|
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
|
# πππ
³π
Ύ π
°π
»π
Έπ
°ππ
΄π
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
<!-- markdownlint-disable MD033 MD041 -->
|
|
1
|
+
<!-- markdownlint-disable MD033 MD041 MD043 -->
|
|
2
2
|
|
|
3
|
-
<img
|
|
4
|
-
|
|
3
|
+
<img
|
|
4
|
+
src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
5
|
+
alt="dotfiles logo"
|
|
6
|
+
width="66"
|
|
7
|
+
align="right"
|
|
8
|
+
/>
|
|
5
9
|
|
|
6
10
|
<!-- markdownlint-enable MD033 MD041 -->
|
|
7
11
|
|
|
8
|
-
# Dotfiles (v0.2.
|
|
12
|
+
# Dotfiles (v0.2.469)
|
|
9
13
|
|
|
10
14
|
Simply designed to fit your shell life π
|
|
11
15
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
4
|
-
# Made with β₯ in London, UK by
|
|
5
|
-
# Copyright (c) 2015-
|
|
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
|
# ππ
Όππ π
°π
»π
Έπ
°ππ
΄π
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
<!-- markdownlint-disable MD033 MD041 -->
|
|
1
|
+
<!-- markdownlint-disable MD033 MD041 MD043 -->
|
|
2
2
|
|
|
3
|
-
<img
|
|
4
|
-
|
|
3
|
+
<img
|
|
4
|
+
src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
5
|
+
alt="dotfiles logo"
|
|
6
|
+
width="66"
|
|
7
|
+
align="right"
|
|
8
|
+
/>
|
|
5
9
|
|
|
6
10
|
<!-- markdownlint-enable MD033 MD041 -->
|
|
7
11
|
|
|
8
|
-
# Dotfiles (v0.2.
|
|
12
|
+
# Dotfiles (v0.2.469)
|
|
9
13
|
|
|
10
14
|
Simply designed to fit your shell life π
|
|
11
15
|
|
|
@@ -1,69 +1,310 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
#
|
|
5
|
-
#
|
|
6
|
-
#
|
|
7
|
-
|
|
8
|
-
#
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
echo
|
|
51
|
-
|
|
52
|
-
echo
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
<!-- markdownlint-disable MD033 MD041 -->
|
|
1
|
+
<!-- markdownlint-disable MD033 MD041 MD043 -->
|
|
2
2
|
|
|
3
|
-
<img
|
|
4
|
-
|
|
3
|
+
<img
|
|
4
|
+
src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
5
|
+
alt="dotfiles logo"
|
|
6
|
+
width="66"
|
|
7
|
+
align="right"
|
|
8
|
+
/>
|
|
5
9
|
|
|
6
10
|
<!-- markdownlint-enable MD033 MD041 -->
|
|
7
11
|
|
|
8
|
-
# Dotfiles (v0.2.
|
|
12
|
+
# Dotfiles (v0.2.469)
|
|
9
13
|
|
|
10
14
|
Simply designed to fit your shell life π
|
|
11
15
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
4
|
-
# Made with β₯ in London, UK by
|
|
5
|
-
# Copyright (c) 2015-
|
|
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
|
# πππ
Έπ
³ π
°π
»π
Έπ
°ππ
΄π
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
<!-- markdownlint-disable MD033 MD041 -->
|
|
1
|
+
<!-- markdownlint-disable MD033 MD041 MD043 -->
|
|
2
2
|
|
|
3
|
-
<img
|
|
4
|
-
|
|
3
|
+
<img
|
|
4
|
+
src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
5
|
+
alt="dotfiles logo"
|
|
6
|
+
width="66"
|
|
7
|
+
align="right"
|
|
8
|
+
/>
|
|
5
9
|
|
|
6
10
|
<!-- markdownlint-enable MD033 MD041 -->
|
|
7
11
|
|
|
8
|
-
# Dotfiles (v0.2.
|
|
12
|
+
# Dotfiles (v0.2.469)
|
|
9
13
|
|
|
10
14
|
Simply designed to fit your shell life π
|
|
11
15
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
4
|
-
# Made with β₯ in London, UK by
|
|
5
|
-
# Copyright (c) 2015-
|
|
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
|
# ππ
Άπ
΄π π
°π
»π
Έπ
°ππ
΄π
|
package/dist/lib/aliases.sh
CHANGED
|
@@ -1,20 +1,50 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
#
|
|
5
|
-
# Copyright (c) 2015-2023. All rights reserved
|
|
6
|
-
# License: MIT
|
|
3
|
+
################################################################################
|
|
4
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π
|
|
7
5
|
# Script: aliases.sh
|
|
8
|
-
# Version: 0.2.
|
|
6
|
+
# Version: 0.2.469
|
|
7
|
+
# Author: @wwdseb
|
|
8
|
+
# Copyright (c) 2015-2025. All rights reserved
|
|
9
|
+
# Description: Script to manage shell aliases
|
|
9
10
|
# Website: https://dotfiles.io
|
|
11
|
+
# License: MIT
|
|
12
|
+
################################################################################
|
|
10
13
|
|
|
11
14
|
## π
°π
»π
Έπ
°ππ
΄π
|
|
12
15
|
|
|
13
|
-
#
|
|
14
|
-
|
|
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
|
+
}
|
|
15
48
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
# shellcheck source=/dev/null
|
|
19
|
-
source "${file}"
|
|
20
|
-
done
|
|
49
|
+
remove_all_aliases
|
|
50
|
+
load_custom_aliases
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
<!-- markdownlint-disable MD033 MD041 -->
|
|
1
|
+
<!-- markdownlint-disable MD033 MD041 MD043 -->
|
|
2
2
|
|
|
3
|
-
<img
|
|
4
|
-
|
|
3
|
+
<img
|
|
4
|
+
src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
5
|
+
alt="dotfiles logo"
|
|
6
|
+
width="66"
|
|
7
|
+
align="right"
|
|
8
|
+
/>
|
|
5
9
|
|
|
6
10
|
<!-- markdownlint-enable MD033 MD041 -->
|
|
7
11
|
|
|
8
|
-
# Dotfiles (v0.2.
|
|
12
|
+
# Dotfiles (v0.2.469)
|
|
9
13
|
|
|
10
14
|
Simply designed to fit your shell life π
|
|
11
15
|
|