@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.
- package/README.md +5 -5
- package/dist/Makefile +126 -43
- 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/filesizes.txt +146 -144
- package/dist/lib/README.md +79 -5
- package/dist/lib/aliases/README.md +44 -42
- package/dist/lib/aliases/archives/README.md +120 -34
- package/dist/lib/aliases/archives/archives.aliases.sh +106 -149
- package/dist/lib/aliases/cd/README.md +119 -38
- package/dist/lib/aliases/cd/cd.aliases.sh +37 -59
- package/dist/lib/aliases/chmod/README.md +146 -95
- package/dist/lib/aliases/chmod/chmod.aliases.sh +71 -55
- package/dist/lib/aliases/clear/README.md +2 -2
- package/dist/lib/aliases/clear/clear.aliases.sh +4 -4
- package/dist/lib/aliases/configuration/README.md +2 -2
- package/dist/lib/aliases/configuration/configuration.aliases.sh +3 -6
- package/dist/lib/aliases/default/README.md +2 -2
- package/dist/lib/aliases/default/default.aliases.sh +3 -3
- package/dist/lib/aliases/dig/README.md +2 -2
- package/dist/lib/aliases/dig/dig.aliases.sh +4 -4
- package/dist/lib/aliases/disk-usage/README.md +2 -2
- package/dist/lib/aliases/disk-usage/du.aliases.sh +2 -2
- package/dist/lib/aliases/editor/README.md +2 -2
- package/dist/lib/aliases/editor/editor.aliases.sh +4 -4
- package/dist/lib/aliases/find/README.md +2 -2
- package/dist/lib/aliases/find/find.aliases.sh +4 -4
- package/dist/lib/aliases/gcloud/README.md +2 -2
- package/dist/lib/aliases/gcloud/gcloud.aliases.sh +4 -4
- package/dist/lib/aliases/git/README.md +2 -2
- package/dist/lib/aliases/git/git.aliases.sh +3 -3
- package/dist/lib/aliases/gnu/README.md +2 -2
- package/dist/lib/aliases/gnu/gnucoreutils-aliases.sh +2 -2
- package/dist/lib/aliases/heroku/README.md +2 -2
- package/dist/lib/aliases/heroku/heroku.aliases.sh +3 -3
- package/dist/lib/aliases/interactive/README.md +2 -2
- package/dist/lib/aliases/interactive/interactive.aliases.sh +3 -3
- package/dist/lib/aliases/list/README.md +112 -23
- package/dist/lib/aliases/list/list.aliases.sh +130 -84
- package/dist/lib/aliases/macOS/README.md +2 -2
- package/dist/lib/aliases/macOS/macos.aliases.sh +3 -3
- package/dist/lib/aliases/make/README.md +2 -2
- package/dist/lib/aliases/make/make.aliases.sh +3 -3
- package/dist/lib/aliases/mkdir/README.md +2 -2
- package/dist/lib/aliases/mkdir/mkdir.aliases.sh +3 -3
- package/dist/lib/aliases/npm/README.md +2 -2
- package/dist/lib/aliases/npm/npm.aliases.sh +3 -3
- package/dist/lib/aliases/permission/README.md +2 -2
- package/dist/lib/aliases/permission/permission.aliases.sh +3 -3
- package/dist/lib/aliases/pnpm/README.md +2 -2
- package/dist/lib/aliases/pnpm/pnpm.aliases.sh +3 -3
- package/dist/lib/aliases/ps/README.md +2 -2
- 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 +2 -2
- package/dist/lib/aliases/rsync/rsync.aliases.sh +3 -3
- package/dist/lib/aliases/rust/README.md +165 -44
- package/dist/lib/aliases/rust/rust.aliases.sh +109 -117
- package/dist/lib/aliases/subversion/README.md +2 -2
- package/dist/lib/aliases/subversion/subversion.aliases.sh +3 -3
- package/dist/lib/aliases/sudo/README.md +2 -2
- package/dist/lib/aliases/sudo/sudo.aliases.sh +3 -3
- package/dist/lib/aliases/tmux/README.md +2 -2
- package/dist/lib/aliases/tmux/tmux.aliases.sh +3 -3
- package/dist/lib/aliases/update/README.md +2 -2
- package/dist/lib/aliases/update/update.aliases.sh +307 -66
- package/dist/lib/aliases/uuid/README.md +2 -2
- package/dist/lib/aliases/uuid/uuid.aliases.sh +3 -3
- package/dist/lib/aliases/wget/README.md +2 -2
- package/dist/lib/aliases/wget/wget.aliases.sh +3 -3
- package/dist/lib/aliases.sh +2 -2
- package/dist/lib/configurations/README.md +2 -2
- 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 +3 -4
- package/dist/lib/configurations.sh +19 -7
- package/dist/lib/functions/README.md +68 -54
- 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 +21 -7
- package/dist/lib/history.sh +36 -88
- 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 +27 -14
- 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 -10
- package/dist/lib/aliases/jekyll/README.md +0 -41
- package/dist/lib/aliases/jekyll/jekyll.aliases.sh +0 -54
- 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,39 +1,167 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
#
|
|
5
|
-
#
|
|
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
|
|
6
11
|
# License: MIT
|
|
12
|
+
################################################################################
|
|
7
13
|
|
|
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
|
-
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
-
# Made with β₯ in London, UK by
|
|
3
|
-
# Copyright (c) 2015-
|
|
1
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.469) - <https://dotfiles.io>
|
|
2
|
+
# Made with β₯ in London, UK by Sebastien Rousseau
|
|
3
|
+
# Copyright (c) 2015-2025. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
6
6
|
# π
²πππ
» π
²π
Ύπ
½π
΅π
Έπ
Ά - cURL configuration options.
|
|
@@ -20,9 +20,6 @@
|
|
|
20
20
|
# (HTTP) Request a compressed response using one of the algorithms curl supports, and save the uncompressed document.
|
|
21
21
|
--compressed
|
|
22
22
|
|
|
23
|
-
# Include HTTP headers in the output.
|
|
24
|
-
--include
|
|
25
|
-
|
|
26
23
|
# Resolve names to IPV4 addresses only.
|
|
27
24
|
--ipv4
|
|
28
25
|
|
|
@@ -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,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
|
## π
³π
Ύππ
΅π
Έπ
»π
΄π π
π
°ππ
Έπ
°π
±π
»π
΄π - Set Dotfiles variables.
|
|
@@ -11,7 +11,7 @@ DF=".dotfiles/" # Dotfiles.
|
|
|
11
11
|
DF_DIR="${HOME}/.dotfiles/" # Dotfiles directory.
|
|
12
12
|
DF_BACKUPDIR="${HOME}/dotfiles_backup/" # Backup directory.
|
|
13
13
|
DF_DOWNLOADDIR="${HOME}/Downloads" # Download directory.
|
|
14
|
-
DF_VERSION="0.2.
|
|
14
|
+
DF_VERSION="0.2.469" # Dotfiles Version number.
|
|
15
15
|
# DF_TIMESTAMP="$(date +%Y-%m-%d_%H-%M-%S)" # Timestamp for backup directory.
|
|
16
16
|
|
|
17
17
|
export DF
|
|
@@ -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
|
cmd_vim=$(command -v vim)
|
|
@@ -1,39 +1,48 @@
|
|
|
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
|
## ππ
·π
΄π
»π
»
|
|
9
9
|
|
|
10
|
-
#
|
|
11
|
-
[[ $-
|
|
10
|
+
# Exit early for non-interactive shells
|
|
11
|
+
if [[ $- != *i* ]]; then return; fi
|
|
12
12
|
|
|
13
|
-
# Set a simple prompt for non-256color, non-
|
|
14
|
-
if [[ ${TERM} != *-256color
|
|
13
|
+
# Set a simple prompt for non-256color, non-Alacritty, and non-Kitty terminals
|
|
14
|
+
if [[ ${TERM} != *-256color* && ${TERM} != alacritty* && ${TERM} != *-kitty* ]]; then
|
|
15
15
|
PS1='\h \w > '
|
|
16
|
-
return
|
|
16
|
+
return
|
|
17
17
|
fi
|
|
18
18
|
|
|
19
|
+
# Bash prompt configuration
|
|
19
20
|
if [[ -n "${BASH_VERSION}" ]]; then
|
|
21
|
+
# Define colors
|
|
20
22
|
cyan='\[\033[1;96m\]'
|
|
21
23
|
green='\[\033[1;92m\]'
|
|
22
24
|
purple='\[\033[1;95m\]'
|
|
23
25
|
reset='\[\033[0m\]'
|
|
24
26
|
|
|
27
|
+
# Set prompt based on OS
|
|
25
28
|
if [[ "${OSTYPE}" == "darwin"* ]]; then
|
|
26
|
-
PS1=" ο£Ώ $(uname)${purple} β${reset} ${green}
|
|
29
|
+
PS1=" ο£Ώ $(uname)${purple} β${reset} ${green}\w${reset} ${cyan}$ ${reset}"
|
|
27
30
|
else
|
|
28
|
-
PS1=" π§ $(uname)${purple} β${reset} ${green}
|
|
31
|
+
PS1=" π§ $(uname)${purple} β${reset} ${green}\w${reset} ${cyan}$ ${reset}"
|
|
29
32
|
fi
|
|
33
|
+
|
|
30
34
|
export PS1
|
|
35
|
+
|
|
36
|
+
# Zsh prompt configuration
|
|
31
37
|
elif [[ -n "${ZSH_VERSION}" ]]; then
|
|
32
38
|
if [[ "${OSTYPE}" == "darwin"* ]]; then
|
|
33
39
|
PROMPT=' ο£Ώ %F{magenta} β%f %F{green}%~%f %F{cyan}$ %f'
|
|
34
40
|
else
|
|
35
41
|
PROMPT=' π§ %F{magenta} β%f %F{green}%~%f %F{cyan}$ %f'
|
|
36
42
|
fi
|
|
43
|
+
|
|
44
|
+
# Optional right-side prompt
|
|
45
|
+
export RPROMPT='%F{cyan}%T%f'
|
|
37
46
|
export PROMPT
|
|
38
|
-
|
|
47
|
+
|
|
39
48
|
fi
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
-
# Made with β₯ in London, UK by
|
|
3
|
-
# Copyright (c) 2015-
|
|
1
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.469) - <https://dotfiles.io>
|
|
2
|
+
# Made with β₯ in London, UK by Sebastien Rousseau
|
|
3
|
+
# Copyright (c) 2015-2025. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
6
6
|
# π
Έπ
½π
Ώππππ
² - Completion options.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
-
# Made with β₯ in London, UK by
|
|
3
|
-
# Copyright (c) 2015-
|
|
1
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.469) - <https://dotfiles.io>
|
|
2
|
+
# Made with β₯ in London, UK by Sebastien Rousseau
|
|
3
|
+
# Copyright (c) 2015-2025. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
6
6
|
# π
½π
°π
½π
Ύππ
²
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
-
# Made with β₯ in London, UK by
|
|
3
|
-
# Copyright (c) 2015-
|
|
1
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.469) - <https://dotfiles.io>
|
|
2
|
+
# Made with β₯ in London, UK by Sebastien Rousseau
|
|
3
|
+
# Copyright (c) 2015-2025. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
6
6
|
# ~/.profile: executed by the command interpreter for login shells.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.469) - <https://dotfiles.io>
|
|
3
|
+
# Made with β₯ in London, UK by Sebastien Rousseau
|
|
4
|
+
# Copyright (c) 2015-2025. All rights reserved
|
|
5
|
+
# License: MIT
|
|
6
|
+
|
|
7
|
+
## ππ
·π
΄π
»π
»
|
|
8
|
+
|
|
9
|
+
# Exit early for non-interactive shells
|
|
10
|
+
if [[ $- != *i* ]]; then return; fi
|
|
11
|
+
|
|
12
|
+
# Check if we're running in a full-featured terminal
|
|
13
|
+
if [[ ${TERM} != *-256color* && ${TERM} != alacritty* && ${TERM} != *-kitty* ]]; then
|
|
14
|
+
PS1='\h \w > '
|
|
15
|
+
return
|
|
16
|
+
fi
|
|
17
|
+
|
|
18
|
+
# Color definitions
|
|
19
|
+
tmux_purple='\[\033[38;5;55m\]' # Purple (#2D1681)
|
|
20
|
+
tmux_red='\[\033[38;5;196m\]' # Red (#EB0000)
|
|
21
|
+
tmux_blue='\[\033[38;5;33m\]' # Blue (#007ACC)
|
|
22
|
+
tmux_white='\[\033[38;5;15m\]' # White (#FFFFFF)
|
|
23
|
+
tmux_green='\[\033[38;5;46m\]' # Green for clean git status
|
|
24
|
+
tmux_yellow='\[\033[38;5;226m\]' # Yellow for dirty git status
|
|
25
|
+
reset='\[\033[0m\]'
|
|
26
|
+
|
|
27
|
+
# Git status function for bash
|
|
28
|
+
function git_status() {
|
|
29
|
+
local branch dirty
|
|
30
|
+
if git rev-parse --git-dir > /dev/null 2>&1; then
|
|
31
|
+
branch=$(git symbolic-ref --short HEAD 2>/dev/null || git rev-parse --short HEAD)
|
|
32
|
+
if [[ -n "$(git status --porcelain 2>/dev/null)" ]]; then
|
|
33
|
+
echo "${tmux_yellow}${branch}*${reset}"
|
|
34
|
+
else
|
|
35
|
+
echo "${tmux_green}${branch}${reset}"
|
|
36
|
+
fi
|
|
37
|
+
fi
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
# Function to set up zsh git prompt
|
|
41
|
+
function setup_zsh_git() {
|
|
42
|
+
autoload -Uz vcs_info
|
|
43
|
+
precmd_vcs_info() { vcs_info }
|
|
44
|
+
precmd_functions+=( precmd_vcs_info )
|
|
45
|
+
setopt prompt_subst
|
|
46
|
+
|
|
47
|
+
zstyle ':vcs_info:git:*' formats '%F{46}%b%f'
|
|
48
|
+
zstyle ':vcs_info:git:*' actionformats '%F{226}%b%f'
|
|
49
|
+
zstyle ':vcs_info:git:*' check-for-changes true
|
|
50
|
+
zstyle ':vcs_info:git:*' stagedstr '*'
|
|
51
|
+
zstyle ':vcs_info:git:*' unstagedstr '*'
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
# Bash prompt configuration
|
|
55
|
+
if [[ -n "${BASH_VERSION}" ]]; then
|
|
56
|
+
if [[ "${OSTYPE}" == "darwin"* ]]; then
|
|
57
|
+
PS1="${tmux_blue} macOS ${tmux_purple}β ${tmux_white}\w \$(git_status) ${tmux_red}\$ ${reset}"
|
|
58
|
+
elif [[ "${OSTYPE}" == "linux"* ]]; then
|
|
59
|
+
PS1="${tmux_blue} π§ Linux ${tmux_purple}β ${tmux_white}\w \$(git_status) ${tmux_red}\$ ${reset}"
|
|
60
|
+
elif [[ "${OSTYPE}" == "msys"* || "${OSTYPE}" == "mingw"* ]]; then
|
|
61
|
+
PS1="${tmux_blue} πͺ Windows ${tmux_purple}β ${tmux_white}\w \$(git_status) ${tmux_red}\$ ${reset}"
|
|
62
|
+
else
|
|
63
|
+
PS1="${tmux_blue} π Unknown ${tmux_purple}β ${tmux_white}\w \$(git_status) ${tmux_red}\$ ${reset}"
|
|
64
|
+
fi
|
|
65
|
+
export PS1
|
|
66
|
+
|
|
67
|
+
# Zsh prompt configuration
|
|
68
|
+
elif [[ -n "${ZSH_VERSION}" ]]; then
|
|
69
|
+
setup_zsh_git
|
|
70
|
+
|
|
71
|
+
if [[ "${OSTYPE}" == "darwin"* ]]; then
|
|
72
|
+
PROMPT="%F{33} macOS %F{55}β %F{15}%~ \${vcs_info_msg_0_} %F{196}\$ %f"
|
|
73
|
+
elif [[ "${OSTYPE}" == "linux"* ]]; then
|
|
74
|
+
PROMPT="%F{33} π§ Linux %F{55}β %F{15}%~ \${vcs_info_msg_0_} %F{196}\$ %f"
|
|
75
|
+
elif [[ "${OSTYPE}" == "msys"* || "${OSTYPE}" == "mingw"* ]]; then
|
|
76
|
+
PROMPT="%F{33} πͺ Windows %F{55}β %F{15}%~ \${vcs_info_msg_0_} %F{196}\$ %f"
|
|
77
|
+
else
|
|
78
|
+
PROMPT="%F{33} π Unknown %F{55}β %F{15}%~ \${vcs_info_msg_0_} %F{196}\$ %f"
|
|
79
|
+
fi
|
|
80
|
+
export PROMPT
|
|
81
|
+
fi
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
-
# Made with β₯ in London, UK by
|
|
3
|
-
# Copyright (c) 2015-
|
|
1
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.469) - <https://dotfiles.io>
|
|
2
|
+
# Made with β₯ in London, UK by Sebastien Rousseau
|
|
3
|
+
# Copyright (c) 2015-2025. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
6
6
|
## π
³π
΄π
΅π
°ππ
»π
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
1
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.469) - <https://dotfiles.io>
|
|
2
2
|
|
|
3
|
-
# Made with β₯ in London, UK by
|
|
3
|
+
# Made with β₯ in London, UK by Sebastien Rousseau
|
|
4
4
|
|
|
5
|
-
# Copyright (c) 2015-
|
|
5
|
+
# Copyright (c) 2015-2025. All rights reserved
|
|
6
6
|
|
|
7
7
|
# License: MIT
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
-
# Made with β₯ in London, UK by
|
|
3
|
-
# Copyright (c) 2015-
|
|
1
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.469) - <https://dotfiles.io>
|
|
2
|
+
# Made with β₯ in London, UK by Sebastien Rousseau
|
|
3
|
+
# Copyright (c) 2015-2025. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
6
6
|
## π
»π
Έπ
½ππ π
Ύπ
½π
»π
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
-
# Made with β₯ in London, UK by
|
|
3
|
-
# Copyright (c) 2015-
|
|
1
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.469) - <https://dotfiles.io>
|
|
2
|
+
# Made with β₯ in London, UK by Sebastien Rousseau
|
|
3
|
+
# Copyright (c) 2015-2025. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
6
6
|
## π
½π
°π
π
Έπ
Άπ
°ππ
Έπ
Ύπ
½
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
-
# Made with β₯ in London, UK by
|
|
3
|
-
# Copyright (c) 2015-
|
|
1
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.469) - <https://dotfiles.io>
|
|
2
|
+
# Made with β₯ in London, UK by Sebastien Rousseau
|
|
3
|
+
# Copyright (c) 2015-2025. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
6
6
|
## π
Ώπ
°π
½π
΄π
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
-
# Made with β₯ in London, UK by
|
|
3
|
-
# Copyright (c) 2015-
|
|
1
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.469) - <https://dotfiles.io>
|
|
2
|
+
# Made with β₯ in London, UK by Sebastien Rousseau
|
|
3
|
+
# Copyright (c) 2015-2025. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
6
6
|
## ππ
·π
΄π
Όπ
΄
|
|
@@ -22,7 +22,7 @@ set -g status-justify centre # Status bar justification (left, right, centre, ab
|
|
|
22
22
|
set -g status-left-length 50 # Status bar left length
|
|
23
23
|
set -g status-right-length 50 # Status bar right length
|
|
24
24
|
set -g status-right "#[fg=#FFFFFF] #[bg=#14222A] β¬ #I #[bg=#007ACC] #H #[bg=#EB0000] %_d %B %I:%M%p "
|
|
25
|
-
set -g window-status-current-format "#[bg=#2D1681]Dotfiles (v0.2.
|
|
25
|
+
set -g window-status-current-format "#[bg=#2D1681]Dotfiles (v0.2.469)" # Current window status format
|
|
26
26
|
set -g window-status-current-style "bg=#EB0000" # Current window status style
|
|
27
27
|
set -g window-status-separator "" # Window status separator
|
|
28
28
|
set-window-option -g clock-mode-colour "#FFFFFF" # Clock mode color
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
-
# Made with β₯ in London, UK by
|
|
3
|
-
# Copyright (c) 2015-
|
|
1
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.469) - <https://dotfiles.io>
|
|
2
|
+
# Made with β₯ in London, UK by Sebastien Rousseau
|
|
3
|
+
# Copyright (c) 2015-2025. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
6
6
|
bind r source-file ~/.tmux.conf \; display ".tmux.conf reloaded" \; \
|