@sebastienrousseau/dotfiles 0.2.457 → 0.2.459

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/README.md +181 -96
  2. package/dist/Makefile +31 -53
  3. package/dist/bin/constants.d.ts +4 -2
  4. package/dist/bin/constants.d.ts.map +1 -1
  5. package/dist/bin/constants.js +1 -1
  6. package/dist/bin/constants.js.map +1 -1
  7. package/dist/bin/dotfiles.js +1 -2
  8. package/dist/bin/dotfiles.js.map +1 -1
  9. package/dist/bin/index.js +0 -0
  10. package/dist/filesizes.txt +288 -230
  11. package/dist/{shell → lib}/README.md +0 -0
  12. package/dist/lib/aliases/default/default.aliases.sh +177 -0
  13. package/dist/{shell → lib}/aliases/gcloud/gcloud.aliases.sh +1 -1
  14. package/dist/lib/aliases/git/git.aliases.sh +569 -0
  15. package/dist/{shell → lib}/aliases/heroku/heroku.aliases.sh +1 -1
  16. package/dist/{shell → lib}/aliases/jekyll/jekyll.aliases.sh +1 -1
  17. package/dist/{shell → lib}/aliases/pnpm/pnpm.aliases.sh +1 -1
  18. package/dist/{shell → lib}/aliases/subversion/subversion.aliases.sh +1 -1
  19. package/dist/{shell → lib}/aliases/tmux/tmux.aliases.sh +1 -1
  20. package/dist/{shell → lib}/aliases.sh +2 -2
  21. package/dist/{shell → lib}/configurations/README.md +0 -0
  22. package/dist/lib/configurations/bash/bashrc +36 -0
  23. package/dist/{shell → lib}/configurations/curl/cacert.pem +0 -0
  24. package/dist/{shell → lib}/configurations/curl/curlrc +1 -1
  25. package/dist/{shell → lib}/configurations/default/color.sh +1 -1
  26. package/dist/lib/configurations/default/constants.sh +39 -0
  27. package/dist/{shell → lib}/configurations/default/editor.sh +1 -1
  28. package/dist/{shell → lib}/configurations/default/prompt.sh +1 -1
  29. package/dist/lib/configurations/gem/gemrc +9 -0
  30. package/dist/{shell → lib}/configurations/input/inputrc +1 -1
  31. package/dist/{shell → lib}/configurations/jshint/jshintrc +0 -0
  32. package/dist/lib/configurations/nano/nanorc +34 -0
  33. package/dist/{shell → lib}/configurations/profile/profile +1 -1
  34. package/dist/lib/configurations/tmux/default +17 -0
  35. package/dist/lib/configurations/tmux/display +25 -0
  36. package/dist/lib/configurations/tmux/linux +17 -0
  37. package/dist/lib/configurations/tmux/navigation +29 -0
  38. package/dist/lib/configurations/tmux/panes +9 -0
  39. package/dist/lib/configurations/tmux/theme +28 -0
  40. package/dist/lib/configurations/tmux/tmux +20 -0
  41. package/dist/lib/configurations/tmux/vi +5 -0
  42. package/dist/{shell → lib}/configurations/vim/vimrc +1 -1
  43. package/dist/{shell → lib}/configurations/wget/wgetrc +1 -1
  44. package/dist/lib/configurations/zsh/zshrc +49 -0
  45. package/dist/{shell → lib}/configurations.sh +2 -2
  46. package/dist/{shell → lib}/exit.sh +1 -1
  47. package/dist/{shell → lib}/functions/README.md +0 -0
  48. package/dist/{shell → lib}/functions/cdls.sh +1 -1
  49. package/dist/lib/functions/changediskpwd.tmp +19 -0
  50. package/dist/lib/functions/code.tmp +18 -0
  51. package/dist/lib/functions/countdown.tmp +33 -0
  52. package/dist/{shell → lib}/functions/curlheader.sh +1 -1
  53. package/dist/{shell → lib}/functions/curltime.sh +1 -1
  54. package/dist/{shell → lib}/functions/encode64.sh +1 -1
  55. package/dist/{shell → lib}/functions/environment.sh +1 -1
  56. package/dist/{shell → lib}/functions/extract.sh +1 -1
  57. package/dist/{shell → lib}/functions/filehead.sh +0 -0
  58. package/dist/{shell → lib}/functions/genpwd.sh +1 -1
  59. package/dist/{shell → lib}/functions/goto.sh +1 -1
  60. package/dist/lib/functions/headers.tmp +4 -0
  61. package/dist/{shell → lib}/functions/hidehiddenfiles.sh +1 -1
  62. package/dist/lib/functions/history-all.tmp +7 -0
  63. package/dist/{shell → lib}/functions/hostinfo.sh +1 -1
  64. package/dist/{shell → lib}/functions/hstats.sh +1 -1
  65. package/dist/{shell → lib}/functions/httpdebug.sh +1 -1
  66. package/dist/{shell → lib}/functions/keygen.sh +1 -1
  67. package/dist/{shell → lib}/functions/last.sh +1 -1
  68. package/dist/{shell → lib}/functions/logout.sh +1 -1
  69. package/dist/{shell → lib}/functions/lowercase.sh +1 -1
  70. package/dist/{shell → lib}/functions/macos.sh +1 -1
  71. package/dist/lib/functions/matrix.sh +14 -0
  72. package/dist/{shell → lib}/functions/mcd.sh +1 -1
  73. package/dist/{shell → lib}/functions/mount_read_only.sh +1 -1
  74. package/dist/{shell → lib}/functions/myproc.sh +1 -1
  75. package/dist/{shell → lib}/functions/prependpath.sh +1 -1
  76. package/dist/lib/functions/print.tmp +13 -0
  77. package/dist/{shell → lib}/functions/ql.sh +1 -1
  78. package/dist/{shell → lib}/functions/rd.sh +1 -1
  79. package/dist/{shell → lib}/functions/remove_disk.sh +1 -1
  80. package/dist/{shell → lib}/functions/ren.sh +1 -1
  81. package/dist/lib/functions/rm.tmp +13 -0
  82. package/dist/lib/functions/rps.tmp +103 -0
  83. package/dist/{shell → lib}/functions/showhiddenfiles.sh +1 -1
  84. package/dist/{shell → lib}/functions/size.sh +1 -1
  85. package/dist/{shell → lib}/functions/stopwatch.sh +1 -1
  86. package/dist/lib/functions/trash.tmp +13 -0
  87. package/dist/lib/functions/tree.tmp +13 -0
  88. package/dist/{shell → lib}/functions/uppercase.sh +1 -1
  89. package/dist/lib/functions/uuidgen.tmp +27 -0
  90. package/dist/{shell → lib}/functions/view-source.sh +1 -1
  91. package/dist/{shell → lib}/functions/vscode.sh +1 -1
  92. package/dist/{shell → lib}/functions/whoisport.sh +1 -1
  93. package/dist/{shell → lib}/functions/zipf.sh +1 -1
  94. package/dist/{shell → lib}/functions.sh +2 -2
  95. package/dist/{shell → lib}/history.sh +1 -1
  96. package/dist/{shell → lib}/paths/ant/ant.paths.sh +1 -1
  97. package/dist/{shell → lib}/paths/default/default.paths.sh +1 -1
  98. package/dist/{shell → lib}/paths/homebrew/homebrew.paths.sh +1 -1
  99. package/dist/{shell → lib}/paths/java/java.paths.sh +1 -1
  100. package/dist/{shell → lib}/paths/maven/maven.paths.sh +1 -1
  101. package/dist/{shell → lib}/paths/node/node.paths.sh +1 -1
  102. package/dist/{shell → lib}/paths/nvm/nvm.paths.sh +1 -1
  103. package/dist/{shell → lib}/paths/pnpm/pnpm.paths.sh +1 -1
  104. package/dist/{shell → lib}/paths/python/python.paths.sh +1 -1
  105. package/dist/{shell → lib}/paths/ruby/ruby.paths.sh +1 -1
  106. package/dist/{shell → lib}/paths/tmux/tmux.paths.sh +2 -2
  107. package/dist/{shell → lib}/paths.sh +2 -2
  108. package/dist/scripts/assemble.sh +32 -0
  109. package/dist/scripts/backup.sh +84 -0
  110. package/dist/scripts/banner.sh +18 -0
  111. package/dist/scripts/clean.sh +29 -0
  112. package/dist/scripts/compile.sh +52 -0
  113. package/dist/scripts/copy.sh +106 -0
  114. package/dist/scripts/dotfiles.sh +61 -0
  115. package/dist/scripts/download.sh +23 -0
  116. package/dist/scripts/help.sh +55 -0
  117. package/dist/scripts/unpack.sh +26 -0
  118. package/package.json +21 -44
  119. package/dist/bin/compile.sh +0 -16
  120. package/dist/bin/copy.sh +0 -21
  121. package/dist/bin/dotfiles.sh +0 -185
  122. package/dist/shell/aliases/default/default.aliases.sh +0 -199
  123. package/dist/shell/configurations/bash/bashrc +0 -36
  124. package/dist/shell/configurations/tmux/tmux +0 -95
  125. package/dist/shell/configurations/zsh/zshrc +0 -50
  126. package/dist/shell/functions/matrix.sh +0 -9
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env bash
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - 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
+ # }
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env bash
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - 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
+ # }
@@ -0,0 +1,103 @@
1
+ #!/usr/bin/env bash
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - 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
+ # }
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env bash
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - 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
+ #}
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env bash
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - 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,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -0,0 +1,27 @@
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
+ # }
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
6
6
  # Load custom executable functions
7
- for function in "${HOME}"/.dotfiles/shell/functions/[!.#]*.sh; do
7
+ for function in "${HOME}"/.dotfiles/lib/functions/[!.#]*.sh; do
8
8
  # shellcheck source=/dev/null
9
9
  source "${function}"
10
10
  done
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -11,5 +11,5 @@ fi
11
11
 
12
12
  if [[ -z "${TMUX}" ]] && [[ ${UID} != 0 ]]; then
13
13
  tmux kill-session -t 2>/dev/null
14
- tmux new-session -t
14
+ tmux
15
15
  fi
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
6
6
  ## 🅿🅰🆃🅷🆂
7
7
 
8
8
  # Load custom executable paths.
9
- for file in "${HOME}"/.dotfiles/shell/paths/[!.#]*/*.sh; do
9
+ for file in "${HOME}"/.dotfiles/lib/paths/[!.#]*/*.sh; do
10
10
  # shellcheck source=/dev/null
11
11
  . "${file}"
12
12
  done
@@ -0,0 +1,32 @@
1
+ #!/usr/bin/env bash
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
+ # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
+ # License: MIT
5
+
6
+ # shellcheck disable=SC1091
7
+ . "./lib/configurations/default/constants.sh"
8
+
9
+ # shellcheck disable=SC1091
10
+ . "./scripts/backup.sh"
11
+
12
+ # shellcheck disable=SC1091
13
+ . "./scripts/download.sh"
14
+
15
+ # shellcheck disable=SC1091
16
+ . "./scripts/unpack.sh"
17
+
18
+ # shellcheck disable=SC1091
19
+ . "./scripts/copy.sh"
20
+
21
+ ## 🅰🆂🆂🅴🅼🅱🅻🅴 - Assemble the dotfiles on your system.
22
+ assemble() {
23
+
24
+ # shellcheck disable=SC2154
25
+ echo "${RED}❭${NC} Preparing the dotfiles on your system."
26
+
27
+ backup &&
28
+ download &&
29
+ unpack &&
30
+ copy
31
+
32
+ }
@@ -0,0 +1,84 @@
1
+ #!/usr/bin/env bash
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
+ # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
+ # License: MIT
5
+
6
+ ## 🆅🅰🆁🅸🅰🅱🅻🅴🆂 - Set Dotfiles variable.
7
+ DF_DOTFILESDIR="${HOME}/.dotfiles" # Location of dotfiles.
8
+ export DF_DOTFILESDIR # Exporting Location of dotfiles.
9
+
10
+ ## 🅱🅰🅲🅺🆄🅿 - Backup existing files.
11
+ backup() {
12
+
13
+ # shellcheck disable=SC1091
14
+ . "./lib/configurations/default/constants.sh"
15
+
16
+ echo ""
17
+ # shellcheck disable=SC2154
18
+ echo "${RED}❭${NC} Starting Backup Procedure."
19
+ echo ""
20
+
21
+ # Create backup directory.
22
+ # shellcheck disable=SC2154
23
+ if [[ -d "${DF_BACKUPDIR}" ]]; then
24
+ echo "${RED} ✘${NC} Skipping folder creation."
25
+ else
26
+ # shellcheck disable=SC2154
27
+ echo "${GREEN} ✔${NC} Creating backup directory '${GREEN}${DF_BACKUPDIR}${NC}'..."
28
+ mkdir -p "${DF_BACKUPDIR}"
29
+ fi
30
+
31
+ # Backup existing Dotfiles directory.
32
+ if [[ -d "${HOME}"/.dotfiles ]]; then
33
+ echo "${GREEN} ✔${NC} Backing up previous Dotfiles installation to '${GREEN}${DF_BACKUPDIR}/${DF_TIMESTAMP}/${NC}'..."
34
+ # shellcheck disable=SC2154
35
+ mv -f "${DF_DOTFILESDIR}" "${HOME}"/dotfiles_backup/"${DF_TIMESTAMP}"/
36
+ fi
37
+
38
+ # File list (use trailing slash for directories)
39
+ FILES="
40
+ .alias
41
+ .bash_aliases
42
+ .bash_profile
43
+ .bash_prompt
44
+ .bashrc
45
+ .curlrc
46
+ .dir_colors
47
+ .exports
48
+ .functions
49
+ .gitattributes
50
+ .gitconfig
51
+ .gitignore
52
+ .gitmessage
53
+ .inputrc
54
+ .npmrc
55
+ .path
56
+ .profile
57
+ .tmux.conf
58
+ .vimrc
59
+ .wgetrc
60
+ .yarnrc
61
+ .zshenv
62
+ .zshrc
63
+ cacert.pem
64
+ "
65
+
66
+ for file in ${FILES}; do
67
+ # shellcheck disable=SC2292
68
+ if [ -e "${HOME}/${file}" ]; then
69
+ echo "${GREEN} ✔${NC} Backing up '${YELLOW}${file}${NC}'"
70
+ cp -f "${HOME}"/"${file}" "${DF_BACKUPDIR}"/"${file}"
71
+ fi
72
+ done
73
+
74
+ # shellcheck disable=SC2154
75
+ echo "${GREEN} ✔${NC} All files have been backed up to '${CYAN}${DF_BACKUPDIR}${NC}'"
76
+ echo ""
77
+ }
78
+
79
+ args=$* # Arguments passed to script.
80
+ export args="${args}" # Exporting arguments.
81
+ if [[ ${args} = "backup" ]]; then
82
+ echo "$*"
83
+ backup
84
+ fi
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env bash
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
+ # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
+ # License: MIT
5
+
6
+ ## 🅱🅰🅽🅽🅴🆁 - Display banner.
7
+
8
+ # shellcheck disable=SC2154
9
+ clear
10
+ cat <<EOF
11
+
12
+ ┌───────────────────────────────────────────────┐
13
+ │ $(echo -e "\033[1;96mDotfiles (v${DF_VERSION})\033[0m\n") │
14
+ ├───────────────────────────────────────────────┤
15
+ │ $(echo -e "\033[0;93mSimply designed to fit your shell life\033[0m\n") │
16
+ └───────────────────────────────────────────────┘
17
+
18
+ EOF
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env bash
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
+ # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
+ # License: MIT
5
+
6
+ ## 🅲🅻🅴🅰🅽 - Clean up.
7
+ clean() {
8
+
9
+ # shellcheck disable=SC1091
10
+ . "./lib/configurations/default/constants.sh"
11
+
12
+ echo ""
13
+ # shellcheck disable=SC2154
14
+ echo "${RED}❭${NC} Starting Cleanup."
15
+ echo ""
16
+
17
+ # shellcheck disable=SC2154
18
+ echo "${GREEN} ✔${NC} Cleaning up installation files."
19
+ rm -fr dist/
20
+ rm -f tsconfig.tsbuildinfo
21
+
22
+ }
23
+
24
+ args=$* # Arguments passed to script.
25
+ export args="${args}" # Exporting arguments.
26
+ if [[ ${args} = "clean" ]]; then
27
+ echo "$*"
28
+ clean
29
+ fi
@@ -0,0 +1,52 @@
1
+ #!/usr/bin/env bash
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
3
+ # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
+ # License: MIT
5
+
6
+ ## 🅲🅾🅼🅿🅸🅻🅴 🅳🅾🆃🅵🅸🅻🅴🆂 - Compile dotfiles.
7
+
8
+ compile() {
9
+
10
+ # shellcheck disable=SC1091
11
+ . "./lib/configurations/default/constants.sh"
12
+
13
+ echo ""
14
+ # shellcheck disable=SC2154
15
+ echo "${RED}❭${NC} Starting Compilation."
16
+ echo ""
17
+
18
+ echo "${GREEN} ✔${NC} Copying libraries."
19
+ # shellcheck disable=SC1091
20
+ cp -R ./lib ./dist/
21
+
22
+ echo "${GREEN} ✔${NC} Copying scripts."
23
+ # shellcheck disable=SC1091
24
+ cp -R ./scripts ./dist/
25
+
26
+ echo "${GREEN} ✔${NC} Removing temporary files."
27
+ # shellcheck disable=SC1091
28
+ rimraf \"./dist/lib/**/*.tmp\"
29
+
30
+ echo "${GREEN} ✔${NC} Copying JavaScript binaries."
31
+ cp -f -R ./bin ./dist/
32
+
33
+ echo "${GREEN} ✔${NC} Copying Makefile."
34
+ cp -f ./Makefile ./dist
35
+
36
+ echo "${GREEN} ✔${NC} Compressing JavaScript files."
37
+ jsmin ./bin/backup.js >dist/bin/backup.js && jsmin ./bin/constants.js >dist/bin/constants.js && jsmin ./bin/copy.js >dist/bin/copy.js && jsmin ./bin/dotfiles.js >dist/bin/dotfiles.js && jsmin ./bin/download.js >dist/bin/download.js && jsmin ./bin/index.js >dist/bin/index.js && jsmin ./bin/transfer.js >dist/bin/transfer.js && jsmin ./bin/unpack.js >dist/bin/unpack.js
38
+
39
+ echo "${GREEN} ✔${NC} Determining the file sizes."
40
+ filesizes ./dist/ >./dist/filesizes.txt
41
+
42
+ # shellcheck disable=SC2154
43
+ echo "${GREEN} ✔${NC} Compilation completed."
44
+ echo ""
45
+ }
46
+
47
+ args=$* # Arguments passed to script.
48
+ export args="${args}" # Exporting arguments.
49
+ if [[ ${args} = "compile" ]]; then
50
+ echo "$*"
51
+ compile
52
+ fi