@sebastienrousseau/dotfiles 0.2.463 β 0.2.465
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 +118 -281
- package/dist/Makefile +2 -2
- package/dist/bin/constants.d.ts +2 -2
- package/dist/bin/constants.d.ts.map +1 -1
- package/dist/bin/constants.js +1 -1
- package/dist/bin/constants.js.map +1 -1
- package/dist/filesizes.txt +170 -144
- package/dist/lib/README.md +6 -1
- package/dist/lib/aliases/README.md +47 -0
- package/dist/lib/aliases/archives/README.md +39 -67
- package/dist/lib/aliases/archives/archives.aliases.sh +128 -60
- package/dist/lib/aliases/cd/README.md +26 -9
- package/dist/lib/aliases/cd/cd.aliases.sh +1 -4
- package/dist/lib/aliases/chmod/README.md +48 -13
- package/dist/lib/aliases/chmod/chmod.aliases.sh +1 -1
- package/dist/lib/aliases/clear/README.md +33 -38
- package/dist/lib/aliases/clear/clear.aliases.sh +35 -33
- package/dist/lib/aliases/configuration/README.md +26 -37
- package/dist/lib/aliases/configuration/configuration.aliases.sh +40 -36
- package/dist/lib/aliases/default/README.md +26 -52
- package/dist/lib/aliases/default/default.aliases.sh +105 -44
- package/dist/lib/aliases/dig/README.md +23 -40
- package/dist/lib/aliases/dig/dig.aliases.sh +26 -29
- package/dist/lib/aliases/disk-usage/README.md +32 -0
- package/dist/lib/aliases/disk-usage/du.aliases.sh +84 -0
- package/dist/lib/aliases/editor/README.md +35 -33
- package/dist/lib/aliases/editor/editor.aliases.sh +13 -39
- package/dist/lib/aliases/find/README.md +42 -29
- package/dist/lib/aliases/find/find.aliases.sh +52 -26
- package/dist/lib/aliases/gcloud/README.md +59 -148
- package/dist/lib/aliases/gcloud/gcloud.aliases.sh +327 -138
- package/dist/lib/aliases/git/README.md +149 -0
- package/dist/lib/aliases/git/git.aliases.sh +535 -131
- package/dist/lib/aliases/gnu/README.md +85 -0
- package/dist/lib/aliases/gnu/gnucoreutils-aliases.sh +143 -109
- package/dist/lib/aliases/heroku/README.md +426 -0
- package/dist/lib/aliases/heroku/heroku.aliases.sh +1047 -288
- package/dist/lib/aliases/interactive/README.md +43 -0
- package/dist/lib/aliases/interactive/interactive.aliases.sh +48 -9
- package/dist/lib/aliases/jekyll/README.md +37 -0
- package/dist/lib/aliases/jekyll/jekyll.aliases.sh +49 -10
- package/dist/lib/aliases/list/README.md +38 -0
- package/dist/lib/aliases/list/list.aliases.sh +81 -30
- package/dist/lib/aliases/macos/README.md +38 -0
- package/dist/lib/aliases/macos/macos.aliases.sh +65 -0
- package/dist/lib/aliases/make/README.md +28 -0
- package/dist/lib/aliases/make/make.aliases.sh +30 -10
- package/dist/lib/aliases/mkdir/README.md +26 -0
- package/dist/lib/aliases/mkdir/mkdir.aliases.sh +24 -8
- package/dist/lib/aliases/npm/README.md +37 -0
- package/dist/lib/aliases/npm/npm.aliases.sh +54 -17
- package/dist/lib/aliases/permission/README.md +43 -0
- package/dist/lib/aliases/permission/permission.aliases.sh +73 -0
- package/dist/lib/aliases/pnpm/README.md +49 -0
- package/dist/lib/aliases/pnpm/pnpm.aliases.sh +70 -36
- package/dist/lib/aliases/ps/README.md +25 -0
- package/dist/lib/aliases/ps/ps.aliases.sh +14 -6
- package/dist/lib/aliases/rsync/README.md +21 -0
- package/dist/lib/aliases/rsync/rsync.aliases.sh +10 -4
- package/dist/lib/aliases/rust/README.md +57 -0
- package/dist/lib/aliases/rust/rust.aliases.sh +116 -39
- package/dist/lib/aliases/subversion/README.md +62 -0
- package/dist/lib/aliases/subversion/subversion.aliases.sh +4 -3
- package/dist/lib/aliases/sudo/README.md +23 -0
- package/dist/lib/aliases/sudo/sudo.aliases.sh +15 -6
- package/dist/lib/aliases/tmux/README.md +27 -0
- package/dist/lib/aliases/tmux/tmux.aliases.sh +29 -10
- package/dist/lib/aliases/update/README.md +34 -0
- package/dist/lib/aliases/update/update.aliases.sh +57 -26
- package/dist/lib/aliases/uuid/README.md +20 -0
- package/dist/lib/aliases/uuid/uuid.aliases.sh +13 -4
- package/dist/lib/aliases/wget/README.md +23 -0
- package/dist/lib/aliases/wget/wget.aliases.sh +15 -6
- package/dist/lib/aliases.sh +4 -3
- package/dist/lib/configurations/README.md +13 -2
- package/dist/lib/configurations/bash/bashrc +4 -3
- package/dist/lib/configurations/curl/curlrc +2 -2
- package/dist/lib/configurations/default/color.sh +3 -2
- package/dist/lib/configurations/default/constants.sh +4 -3
- package/dist/lib/configurations/default/editor.sh +3 -2
- package/dist/lib/configurations/default/prompt.sh +3 -2
- package/dist/lib/configurations/input/inputrc +2 -2
- package/dist/lib/configurations/nano/nanorc +2 -2
- package/dist/lib/configurations/profile/profile +2 -2
- package/dist/lib/configurations/tmux/default +2 -2
- package/dist/lib/configurations/tmux/display +6 -2
- package/dist/lib/configurations/tmux/linux +2 -2
- package/dist/lib/configurations/tmux/navigation +2 -2
- package/dist/lib/configurations/tmux/panes +2 -2
- package/dist/lib/configurations/tmux/theme +3 -3
- package/dist/lib/configurations/tmux/tmux +2 -2
- package/dist/lib/configurations/tmux/vi +2 -2
- package/dist/lib/configurations/vim/vimrc +1 -1
- package/dist/lib/configurations/wget/wgetrc +2 -2
- package/dist/lib/configurations/zsh/zshrc +2 -2
- package/dist/lib/configurations.sh +4 -3
- package/dist/lib/functions/README.md +69 -2
- package/dist/lib/functions/cdls.sh +3 -2
- package/dist/lib/functions/curlheader.sh +3 -2
- package/dist/lib/functions/curlstatus.sh +17 -0
- package/dist/lib/functions/curltime.sh +4 -3
- package/dist/lib/functions/encode64.sh +3 -2
- package/dist/lib/functions/environment.sh +3 -2
- package/dist/lib/functions/extract.sh +3 -2
- package/dist/lib/functions/filehead.sh +1 -1
- package/dist/lib/functions/freespace.sh +21 -0
- package/dist/lib/functions/genpwd.sh +33 -7
- package/dist/lib/functions/goto.sh +3 -2
- package/dist/lib/functions/hidehiddenfiles.sh +3 -2
- package/dist/lib/functions/hostinfo.sh +3 -2
- package/dist/lib/functions/hstats.sh +3 -2
- package/dist/lib/functions/httpdebug.sh +3 -2
- package/dist/lib/functions/keygen.sh +20 -13
- package/dist/lib/functions/last.sh +3 -2
- package/dist/lib/functions/logout.sh +3 -2
- package/dist/lib/functions/lowercase.sh +3 -2
- package/dist/lib/functions/matrix.sh +34 -8
- package/dist/lib/functions/mount_read_only.sh +3 -2
- package/dist/lib/functions/myproc.sh +4 -3
- package/dist/lib/functions/prependpath.sh +3 -2
- package/dist/lib/functions/ql.sh +3 -2
- package/dist/lib/functions/rd.sh +3 -2
- package/dist/lib/functions/remove_disk.sh +3 -2
- package/dist/lib/functions/ren.sh +3 -2
- package/dist/lib/functions/showhiddenfiles.sh +3 -2
- package/dist/lib/functions/size.sh +3 -2
- package/dist/lib/functions/stopwatch.sh +4 -3
- package/dist/lib/functions/uppercase.sh +3 -2
- package/dist/lib/functions/view-source.sh +3 -2
- package/dist/lib/functions/vscode.sh +3 -2
- package/dist/lib/functions/whoisport.sh +3 -2
- package/dist/lib/functions/zipf.sh +3 -2
- package/dist/lib/functions.sh +4 -3
- package/dist/lib/history.sh +20 -26
- package/dist/lib/paths/ant/ant.paths.sh +9 -10
- package/dist/lib/paths/default/default.paths.sh +3 -2
- package/dist/lib/paths/homebrew/homebrew.paths.sh +3 -2
- package/dist/lib/paths/java/java.paths.sh +3 -2
- package/dist/lib/paths/maven/maven.paths.sh +12 -13
- package/dist/lib/paths/node/node.paths.sh +3 -2
- package/dist/lib/paths/nvm/nvm.paths.sh +3 -2
- package/dist/lib/paths/pnpm/pnpm.paths.sh +3 -2
- package/dist/lib/paths/python/python.paths.sh +3 -2
- package/dist/lib/paths/ruby/ruby.paths.sh +3 -2
- package/dist/lib/paths/tmux/tmux.paths.sh +3 -7
- package/dist/lib/paths.sh +4 -3
- package/dist/scripts/backup.sh +3 -2
- package/dist/scripts/banner.sh +3 -2
- package/dist/scripts/build.sh +3 -2
- package/dist/scripts/clean.sh +3 -2
- package/dist/scripts/compile.sh +3 -2
- package/dist/scripts/copy.sh +3 -2
- package/dist/scripts/dotfiles.sh +3 -2
- package/dist/scripts/download.sh +3 -2
- package/dist/scripts/help.sh +3 -2
- package/dist/scripts/ssh.sh +3 -2
- package/dist/scripts/unpack.sh +3 -2
- package/package.json +7 -7
- package/dist/lib/aliases/du/README.md +0 -35
- package/dist/lib/aliases/du/du.aliases.sh +0 -37
- package/dist/lib/functions/changediskpwd.tmp +0 -19
- package/dist/lib/functions/code.tmp +0 -18
- package/dist/lib/functions/countdown.tmp +0 -34
- package/dist/lib/functions/headers.tmp +0 -4
- package/dist/lib/functions/history-all.tmp +0 -8
- package/dist/lib/functions/macos.sh +0 -47
- package/dist/lib/functions/mcd.tmp +0 -19
- package/dist/lib/functions/print.tmp +0 -14
- package/dist/lib/functions/rm.tmp +0 -14
- package/dist/lib/functions/rps.tmp +0 -104
- package/dist/lib/functions/trash.tmp +0 -14
- package/dist/lib/functions/tree.tmp +0 -14
- package/dist/lib/functions/uuidgen.tmp +0 -28
|
@@ -1,15 +1,41 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
7
8
|
# matrix: Function to Enable Matrix Effect in the terminal
|
|
8
9
|
matrix() {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
printf '\e[1;40m'
|
|
11
|
+
clear
|
|
12
|
+
while : || true; do
|
|
13
|
+
echo "${LINES} ${COLUMNS} $((RANDOM % COLUMNS)) $((RANDOM % 72))"
|
|
14
|
+
sleep 0.05 || true
|
|
15
|
+
done | awk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}'
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
# matrix: Function to Enable Matrix Effect in the terminal in color
|
|
19
|
+
matrix_color() {
|
|
20
|
+
printf '\e[1;40m'
|
|
21
|
+
clear
|
|
22
|
+
while : || true; do
|
|
23
|
+
echo "${LINES} ${COLUMNS} $((RANDOM % COLUMNS)) $((RANDOM % 72))"
|
|
24
|
+
sleep 0.05 || true
|
|
25
|
+
done | awk '{
|
|
26
|
+
letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()";
|
|
27
|
+
c=$4;
|
|
28
|
+
letter=substr(letters,c,1);
|
|
29
|
+
a[$3]=0;
|
|
30
|
+
for (x in a) {
|
|
31
|
+
o=a[x];
|
|
32
|
+
a[x]=a[x]+1;
|
|
33
|
+
color="\033[38;5;" int(rand()*255) "m";
|
|
34
|
+
printf "\033[%s;%sH%s%s",o,x,color,letter;
|
|
35
|
+
printf "\033[%s;%sH\033[0m%s\033[0;0H",a[x],x,letter;
|
|
36
|
+
if (a[x] >= $1) {
|
|
37
|
+
a[x]=0;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}'
|
|
15
41
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
7
8
|
# myproc: Function to list processes owned by an user
|
|
8
|
-
myproc() { ps "$@" -u "${USER}" -o pid,%cpu,%mem,start,time,
|
|
9
|
+
myproc() { ps "$@" -u "${USER}" -o pid,%cpu,%mem,start,time,command; }
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
package/dist/lib/functions/ql.sh
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
package/dist/lib/functions/rd.sh
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -8,7 +9,7 @@
|
|
|
8
9
|
stopwatch() {
|
|
9
10
|
date1=$(gdate +%s)
|
|
10
11
|
while true; do
|
|
11
|
-
echo -ne "$(gdate -u --date @$(($(date +%s) - date1)) +%H:%M:%S)\r"
|
|
12
|
+
echo -ne "$(gdate -u --date @$(($(date +%s) - date1)) +%H:%M:%S || true)\r"
|
|
12
13
|
sleep 0.1
|
|
13
14
|
done
|
|
14
15
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
package/dist/lib/functions.sh
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
3
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
4
|
-
# Description: Sets functions for the current shell.
|
|
5
6
|
# License: MIT
|
|
6
7
|
# Script: functions.sh
|
|
7
|
-
# Version: 0.2.
|
|
8
|
+
# Version: 0.2.465
|
|
8
9
|
# Website: https://dotfiles.io
|
|
9
10
|
|
|
10
11
|
# Load custom executable functions
|
package/dist/lib/history.sh
CHANGED
|
@@ -1,38 +1,32 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
|
-
# Description: Sets history options for the current shell.
|
|
6
6
|
# License: MIT
|
|
7
7
|
# Script: history.sh
|
|
8
|
-
# Version: 0.2.
|
|
8
|
+
# Version: 0.2.465
|
|
9
9
|
# Website: https://dotfiles.io
|
|
10
10
|
|
|
11
|
-
#
|
|
12
|
-
set -o errexit
|
|
13
|
-
|
|
14
|
-
# Exit if any undefined variables are used
|
|
15
|
-
set -o nounset
|
|
16
|
-
|
|
17
|
-
## History wrapper
|
|
11
|
+
# History wrapper
|
|
18
12
|
function dotfiles_history {
|
|
19
|
-
local
|
|
20
|
-
zparseopts -E c=
|
|
13
|
+
local clear_flag list_flag
|
|
14
|
+
zparseopts -E c=clear_flag l=list_flag
|
|
21
15
|
|
|
22
|
-
if [[ -n
|
|
23
|
-
#
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
16
|
+
if [[ -n ${clear_flag} ]]; then
|
|
17
|
+
# If -c flag is provided, clobber the history file and remove duplicates
|
|
18
|
+
fc -W
|
|
19
|
+
fc -R
|
|
20
|
+
echo "%F{magenta}History file deleted and duplicates removed. Reload the session to see its effects.%f" >&2
|
|
21
|
+
elif [[ -n ${list_flag} ]] || [[ $# -ne 0 ]]; then
|
|
22
|
+
# If -l flag is provided or arguments are passed, run as if calling `fc` directly
|
|
23
|
+
fc_output=$(builtin fc "$@")
|
|
24
|
+
printf '%s\n' "$(tput setaf 5)$(tput sgr0)$(tput setaf 2)$(echo "${fc_output//$'\e'/$(tput setaf 2)}" | sed -E "s/^([[:space:]]*[0-9]+)/$(tput setaf 2)\1$(tput sgr0)/")" || true
|
|
29
25
|
else
|
|
30
|
-
#
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
builtin fc -l 1
|
|
35
|
-
fi
|
|
26
|
+
# Otherwise, ensure the history file has no duplicates and show all history events starting from 1
|
|
27
|
+
fc -W # Remove duplicates from the history file
|
|
28
|
+
fc_output=$(builtin fc -li 1)
|
|
29
|
+
printf '%s\n' "$(tput setaf 5)$(tput sgr0)$(tput setaf 2)$(echo "${fc_output//$'\e'/$(tput setaf 2)}" | sed -E "s/^([[:space:]]*[0-9]+)/$(tput setaf 2)\1$(tput sgr0)/")" || true
|
|
36
30
|
fi
|
|
37
31
|
}
|
|
38
32
|
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
7
8
|
## π
°π
½π π
·π
Ύπ
Όπ
΄
|
|
8
|
-
if [[
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
ANT_HOME="/usr/share/ant/"
|
|
13
|
-
fi
|
|
14
|
-
export ANT_HOME
|
|
15
|
-
export PATH="${ANT_HOME}/bin:${PATH}"
|
|
9
|
+
if [[ "${OSTYPE}" == "darwin"* ]]; then
|
|
10
|
+
ANT_HOME="/opt/homebrew/Cellar/ant/"
|
|
11
|
+
elif [[ "${OSTYPE}" == "linux-gnu"* ]]; then
|
|
12
|
+
ANT_HOME="/usr/share/ant/"
|
|
16
13
|
fi
|
|
14
|
+
export ANT_HOME
|
|
15
|
+
export PATH="${ANT_HOME}/bin:${PATH}"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
7
8
|
## π
Όπ
°π
π
΄π
½ π
·π
Ύπ
Όπ
΄
|
|
8
|
-
if [[
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
MAVEN_HOME="/usr/share/maven/"
|
|
15
|
-
fi
|
|
16
|
-
export MAVEN_HOME
|
|
17
|
-
export PATH="${MAVEN_HOME}:${PATH}"
|
|
18
|
-
export MAVEN_OPTS="-Xms1g -Xmx1g"
|
|
9
|
+
if [[ "${OSTYPE}" == "darwin"* ]]; then
|
|
10
|
+
export M2_HOME=/opt/homebrew/Cellar/maven/3.9.0/libexec
|
|
11
|
+
export PATH=${PATH}:${M2_HOME}/bin
|
|
12
|
+
MAVEN_HOME=/opt/homebrew/Cellar/maven/3.9.0/libexec
|
|
13
|
+
elif [[ "${OSTYPE}" == "linux-gnu"* ]]; then
|
|
14
|
+
MAVEN_HOME="/usr/share/maven/"
|
|
19
15
|
fi
|
|
16
|
+
export MAVEN_HOME
|
|
17
|
+
export PATH="${MAVEN_HOME}:${PATH}"
|
|
18
|
+
export MAVEN_OPTS="-Xms1g -Xmx1g"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -9,8 +10,3 @@ if command -v 'tmux' >/dev/null; then
|
|
|
9
10
|
TMUX_PATH=$(command -v tmux)
|
|
10
11
|
export TMUX_PATH
|
|
11
12
|
fi
|
|
12
|
-
|
|
13
|
-
if [[ -z "${TMUX}" ]] && [[ ${UID} != 0 ]]; then
|
|
14
|
-
"${TMUX_PATH}" kill-session -t 2>/dev/null
|
|
15
|
-
"${TMUX_PATH}"
|
|
16
|
-
fi
|
package/dist/lib/paths.sh
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
3
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
4
|
-
# Description: Sets paths for the current shell.
|
|
5
6
|
# License: MIT
|
|
6
7
|
# Script: paths.sh
|
|
7
|
-
# Version: 0.2.
|
|
8
|
+
# Version: 0.2.465
|
|
8
9
|
# Website: https://dotfiles.io
|
|
9
10
|
|
|
10
11
|
## π
Ώπ
°ππ
·π
|
package/dist/scripts/backup.sh
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
package/dist/scripts/banner.sh
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
package/dist/scripts/build.sh
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
package/dist/scripts/clean.sh
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
package/dist/scripts/compile.sh
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
package/dist/scripts/copy.sh
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
package/dist/scripts/dotfiles.sh
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
package/dist/scripts/download.sh
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
package/dist/scripts/help.sh
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
package/dist/scripts/ssh.sh
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
package/dist/scripts/unpack.sh
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|