@sebastienrousseau/dotfiles 0.2.452 → 0.2.454
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 +268 -189
- package/{Makefile → dist/Makefile} +7 -8
- package/dist/bin/compile.sh +16 -0
- package/dist/bin/copy.sh +21 -0
- package/{bin → dist/bin}/dotfiles.sh +67 -32
- package/dist/filesizes.txt +176 -0
- package/{shell → dist/shell}/README.md +0 -0
- package/{shell → dist/shell}/aliases/default/default.aliases.sh +1 -1
- package/{shell → dist/shell}/aliases/gcloud/gcloud.aliases.sh +1 -1
- package/{shell → dist/shell}/aliases/heroku/heroku.aliases.sh +1 -1
- package/{shell → dist/shell}/aliases/jekyll/jekyll.aliases.sh +1 -1
- package/{shell → dist/shell}/aliases/pnpm/pnpm.aliases.sh +1 -1
- package/{shell → dist/shell}/aliases/subversion/subversion.aliases.sh +1 -1
- package/{shell → dist/shell}/aliases/tmux/tmux.aliases.sh +1 -1
- package/{shell → dist/shell}/aliases.sh +1 -1
- package/{shell/aliases/pnpm → dist/shell/configurations}/README.md +0 -0
- package/{shell → dist/shell}/configurations/bash/bashrc +2 -2
- package/{shell → dist/shell}/configurations/curl/cacert.pem +0 -0
- package/{shell → dist/shell}/configurations/curl/curlrc +1 -1
- package/{shell → dist/shell}/configurations/default/color.sh +1 -1
- package/{shell → dist/shell}/configurations/default/editor.sh +1 -1
- package/{shell → dist/shell}/configurations/default/prompt.sh +6 -6
- package/{shell → dist/shell}/configurations/inputrc/inputrc +2 -2
- package/{shell → dist/shell}/configurations/jshint/jshintrc +0 -0
- package/{shell → dist/shell}/configurations/profile/profile +1 -1
- package/{shell → dist/shell}/configurations/tmux/tmux +2 -2
- package/{shell → dist/shell}/configurations/vim/vimrc +1 -1
- package/{shell → dist/shell}/configurations/wget/wgetrc +1 -1
- package/{shell → dist/shell}/configurations/zsh/zshrc +12 -2
- package/{shell → dist/shell}/configurations.sh +1 -1
- package/{shell → dist/shell}/exit.sh +1 -1
- package/{shell/configurations → dist/shell/functions}/README.md +0 -0
- package/{shell → dist/shell}/functions/cdls.sh +1 -1
- package/{shell → dist/shell}/functions/curlheader.sh +1 -1
- package/{shell → dist/shell}/functions/curltime.sh +1 -1
- package/{shell → dist/shell}/functions/encode64.sh +1 -1
- package/{shell → dist/shell}/functions/environment.sh +8 -8
- package/{shell → dist/shell}/functions/extract.sh +2 -2
- package/{shell → dist/shell}/functions/filehead.sh +0 -0
- package/{shell → dist/shell}/functions/genpwd.sh +1 -1
- package/{shell → dist/shell}/functions/goto.sh +2 -2
- package/{shell → dist/shell}/functions/hidehiddenfiles.sh +1 -1
- package/{shell → dist/shell}/functions/hostinfo.sh +1 -1
- package/{shell → dist/shell}/functions/hstats.sh +1 -1
- package/{shell → dist/shell}/functions/httpdebug.sh +1 -1
- package/{shell → dist/shell}/functions/keygen.sh +4 -4
- package/{shell → dist/shell}/functions/last.sh +1 -1
- package/{shell → dist/shell}/functions/logout.sh +1 -1
- package/{shell → dist/shell}/functions/lowercase.sh +1 -1
- package/{shell → dist/shell}/functions/macos.sh +1 -1
- package/{shell → dist/shell}/functions/matrix.sh +1 -1
- package/{shell → dist/shell}/functions/mcd.sh +1 -1
- package/{shell → dist/shell}/functions/mount_read_only.sh +1 -1
- package/{shell → dist/shell}/functions/myproc.sh +2 -2
- package/{shell → dist/shell}/functions/prependpath.sh +1 -1
- package/{shell → dist/shell}/functions/ql.sh +1 -1
- package/{shell → dist/shell}/functions/rd.sh +1 -1
- package/{shell → dist/shell}/functions/remove_disk.sh +1 -1
- package/{shell → dist/shell}/functions/ren.sh +2 -2
- package/{shell → dist/shell}/functions/showhiddenfiles.sh +1 -1
- package/{shell → dist/shell}/functions/size.sh +1 -1
- package/{shell → dist/shell}/functions/stopwatch.sh +1 -1
- package/{shell → dist/shell}/functions/uppercase.sh +2 -2
- package/{shell → dist/shell}/functions/view-source.sh +1 -1
- package/{shell → dist/shell}/functions/vscode.sh +1 -1
- package/{shell → dist/shell}/functions/whoisport.sh +1 -1
- package/{shell → dist/shell}/functions/zipf.sh +1 -1
- package/{shell → dist/shell}/functions.sh +1 -1
- package/{shell → dist/shell}/history.sh +3 -6
- package/dist/shell/index.d.ts +2 -0
- package/dist/shell/index.d.ts.map +1 -0
- package/dist/shell/index.js +2 -0
- package/dist/shell/index.js.map +1 -0
- package/{shell → dist/shell}/paths/ant/ant.paths.sh +1 -1
- package/{shell → dist/shell}/paths/default/default.paths.sh +1 -1
- package/{shell → dist/shell}/paths/homebrew/homebrew.paths.sh +4 -1
- package/{shell → dist/shell}/paths/java/java.paths.sh +1 -1
- package/{shell → dist/shell}/paths/maven/maven.paths.sh +3 -2
- package/{shell → dist/shell}/paths/node/node.paths.sh +2 -2
- package/{shell → dist/shell}/paths/nvm/nvm.paths.sh +1 -1
- package/{shell → dist/shell}/paths/pnpm/pnpm.paths.sh +2 -2
- package/dist/shell/paths/python/python.paths.sh +29 -0
- package/{shell → dist/shell}/paths/ruby/ruby.paths.sh +1 -1
- package/{shell → dist/shell}/paths/tmux/tmux.paths.sh +3 -3
- package/{shell → dist/shell}/paths.sh +1 -1
- package/package.json +33 -27
- package/COPYRIGHT +0 -5
- package/index.js +0 -24
- package/pnpm-lock.yaml +0 -178
- package/pnpm-workspace.yaml +0 -2
- package/shell/aliases/README.md +0 -327
- package/shell/aliases/default/README.md +0 -0
- package/shell/aliases/gcloud/README.md +0 -117
- package/shell/aliases/git/README.md +0 -279
- package/shell/aliases/git/git.aliases.wip +0 -586
- package/shell/aliases/heroku/README.md +0 -457
- package/shell/aliases/jekyll/README.md +0 -32
- package/shell/aliases/subversion/README.md +0 -54
- package/shell/aliases/tmux/README.md +0 -0
- package/shell/functions/README.md +0 -3
- package/shell/functions/changediskpwd.sh +0 -19
- package/shell/functions/code.sh +0 -18
- package/shell/functions/countdown.sh +0 -33
- package/shell/functions/headers.sh +0 -4
- package/shell/functions/history-all.sh +0 -7
- package/shell/functions/print.sh +0 -13
- package/shell/functions/rm.sh +0 -13
- package/shell/functions/rps.sh +0 -103
- package/shell/functions/trash.sh +0 -13
- package/shell/functions/tree.sh +0 -13
- package/shell/functions/uuidgen.sh +0 -27
package/shell/functions/print.sh
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - https://dotfiles.io
|
|
3
|
-
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
|
-
# License: MIT
|
|
5
|
-
|
|
6
|
-
# print: Function to display the argument given
|
|
7
|
-
print() {
|
|
8
|
-
if [[ "$#" != 1 ]]; then
|
|
9
|
-
echo "[ERROR] Please add one argument" >&2
|
|
10
|
-
return 1
|
|
11
|
-
fi
|
|
12
|
-
echo "--- $1"
|
|
13
|
-
}
|
package/shell/functions/rm.sh
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - https://dotfiles.io
|
|
3
|
-
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
|
-
# License: MIT
|
|
5
|
-
|
|
6
|
-
# rm: Function to make 'rm' move files to the trash
|
|
7
|
-
# function rm() {
|
|
8
|
-
# if [[ "$#" != 1 ]]; then
|
|
9
|
-
# echo "[ERROR] Please add one argument" >&2
|
|
10
|
-
# return 1
|
|
11
|
-
# fi
|
|
12
|
-
# rm "$1"
|
|
13
|
-
# }
|
package/shell/functions/rps.sh
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - https://dotfiles.io
|
|
3
|
-
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
|
-
# License: MIT
|
|
5
|
-
|
|
6
|
-
# Adapted from https://github.com/Ananta-Gupta/Rock-Paper-Scissors
|
|
7
|
-
|
|
8
|
-
# rps: Function to play Rock Paper Scissors
|
|
9
|
-
|
|
10
|
-
# check() {
|
|
11
|
-
# if [ "$1" == "$2" ]; then
|
|
12
|
-
# echo "Draw!"
|
|
13
|
-
# elif [ "$1" = 1 ] && [ "$2" = 2 ]; then
|
|
14
|
-
# echo "You Lose! Paper beats Rock!"
|
|
15
|
-
# elif [ "$1" = 2 ] && [ "$2" = 3 ]; then
|
|
16
|
-
# echo "You Lose! Scissor beats Paper!"
|
|
17
|
-
# elif [ "$1" = 3 ] && [ "$2" = 1 ]; then
|
|
18
|
-
# echo "You Lose! Rock beats Scissor!"
|
|
19
|
-
# elif [ "$1" != 1 ] && [ "$1" != 2 ] && [ "$1" != 3 ]; then
|
|
20
|
-
# echo "Invalid input! You have not entered a valid number"
|
|
21
|
-
# else
|
|
22
|
-
# echo " ❭ You Win! 👏🏻"
|
|
23
|
-
# fi
|
|
24
|
-
# }
|
|
25
|
-
|
|
26
|
-
# print() {
|
|
27
|
-
# echo ""
|
|
28
|
-
# echo "┌──────────────────────────────────────┐"
|
|
29
|
-
# echo "│ │"
|
|
30
|
-
# echo "│ Rock, Paper, Scissors │"
|
|
31
|
-
# echo "│ │"
|
|
32
|
-
# echo "└──────────────────────────────────────┘"
|
|
33
|
-
# echo ""
|
|
34
|
-
# echo "Enter a choice :"
|
|
35
|
-
# echo "1 for Rock"
|
|
36
|
-
# echo "2 for Paper"
|
|
37
|
-
# echo "3 for Scissor"
|
|
38
|
-
# echo ""
|
|
39
|
-
# }
|
|
40
|
-
|
|
41
|
-
# rps() {
|
|
42
|
-
|
|
43
|
-
# clr=0
|
|
44
|
-
# i=0
|
|
45
|
-
# while [ $i != 1 ]; do
|
|
46
|
-
# if [ $clr = 0 ]; then
|
|
47
|
-
# clr=0
|
|
48
|
-
# clear
|
|
49
|
-
# print 1
|
|
50
|
-
# fi
|
|
51
|
-
# read -r ch1
|
|
52
|
-
# echo ""
|
|
53
|
-
|
|
54
|
-
# case $ch1 in
|
|
55
|
-
# 1)
|
|
56
|
-
# echo "You chose rock"
|
|
57
|
-
# ;;
|
|
58
|
-
# 2)
|
|
59
|
-
# echo "You chose paper"
|
|
60
|
-
# ;;
|
|
61
|
-
# 3)
|
|
62
|
-
# echo "You chose scissor"
|
|
63
|
-
# ;;
|
|
64
|
-
# esac
|
|
65
|
-
|
|
66
|
-
# if [ "$ch1" = 0 ] && [ "$ch1" = 3 ]; then
|
|
67
|
-
# echo "please choose from 1, 2 or 3."
|
|
68
|
-
# clr=1
|
|
69
|
-
# continue
|
|
70
|
-
# fi
|
|
71
|
-
|
|
72
|
-
# ch2=$(echo "$RANDOM%3+1" | bc)
|
|
73
|
-
|
|
74
|
-
# case $ch2 in
|
|
75
|
-
# 1)
|
|
76
|
-
# echo "The computer chose rock"
|
|
77
|
-
# ;;
|
|
78
|
-
# 2)
|
|
79
|
-
# echo "The computer chose paper"
|
|
80
|
-
# ;;
|
|
81
|
-
# 3)
|
|
82
|
-
# echo "The computer chose scissor"
|
|
83
|
-
# ;;
|
|
84
|
-
# esac
|
|
85
|
-
|
|
86
|
-
# check "${ch1}" "${ch2}"
|
|
87
|
-
# echo "To exit press 0"
|
|
88
|
-
# echo "To play again press p : "
|
|
89
|
-
# read -r ch3
|
|
90
|
-
# if [ "$ch3" = p ]; then
|
|
91
|
-
# rep=6
|
|
92
|
-
# while [ $rep != 0 ]; do
|
|
93
|
-
# clear
|
|
94
|
-
# print 1
|
|
95
|
-
# echo "Starting in $($rep - 1) seconds!!!"
|
|
96
|
-
# rep=$($rep - 1)
|
|
97
|
-
# done
|
|
98
|
-
# continue
|
|
99
|
-
# else
|
|
100
|
-
# exit
|
|
101
|
-
# fi
|
|
102
|
-
# done
|
|
103
|
-
# }
|
package/shell/functions/trash.sh
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - https://dotfiles.io
|
|
3
|
-
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
|
-
# License: MIT
|
|
5
|
-
|
|
6
|
-
# trash: Function to moves a file to the MacOS trash
|
|
7
|
-
#trash(){
|
|
8
|
-
# if [ "$#" != 1 ]; then
|
|
9
|
-
# echo "[ERROR] Please add one argument" >&2
|
|
10
|
-
# return 1
|
|
11
|
-
# fi
|
|
12
|
-
# rm "$1"
|
|
13
|
-
#}
|
package/shell/functions/tree.sh
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - https://dotfiles.io
|
|
3
|
-
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
|
-
# License: MIT
|
|
5
|
-
|
|
6
|
-
# tree: Function to generates a tree view from the current directory
|
|
7
|
-
#if [ ! -e /usr/local/bin/tree ]; then
|
|
8
|
-
# tree(){
|
|
9
|
-
# pwd
|
|
10
|
-
# ls -R | grep ":$" | \
|
|
11
|
-
# sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'
|
|
12
|
-
# }
|
|
13
|
-
#fi
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - https://dotfiles.io
|
|
3
|
-
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
|
-
# License: MIT
|
|
5
|
-
|
|
6
|
-
# uuid: Function to generate a UUID (Universally Unique IDentifier)
|
|
7
|
-
uuidgen() {
|
|
8
|
-
local N B C='89ab' # 89ab is the hexadecimal value of 10, 11, 12, 13, 14, 15 in decimal
|
|
9
|
-
for ((N = 0; N < 16; ++N)); do
|
|
10
|
-
B=$(("$RANDOM" % 256))
|
|
11
|
-
case $N in
|
|
12
|
-
6)
|
|
13
|
-
printf '4%x' $((B % 16))
|
|
14
|
-
;;
|
|
15
|
-
8)
|
|
16
|
-
printf '%c%x' ${C:$RANDOM%${#C}:1} ${B % 16}
|
|
17
|
-
;;
|
|
18
|
-
3 | 5 | 7 | 9)
|
|
19
|
-
printf '%02x-' "${B}"
|
|
20
|
-
;;
|
|
21
|
-
*)
|
|
22
|
-
printf '%02x' "${B}"
|
|
23
|
-
;;
|
|
24
|
-
esac
|
|
25
|
-
done
|
|
26
|
-
echo
|
|
27
|
-
}
|