@sebastienrousseau/dotfiles 0.2.458 → 0.2.460

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 (115) hide show
  1. package/README.md +62 -11
  2. package/dist/Makefile +35 -57
  3. package/dist/bin/backup.js.map +1 -1
  4. package/dist/bin/constants.d.ts +2 -2
  5. package/dist/bin/constants.d.ts.map +1 -1
  6. package/dist/bin/constants.js +1 -1
  7. package/dist/bin/constants.js.map +1 -1
  8. package/dist/bin/dotfiles.js +1 -1
  9. package/dist/bin/dotfiles.js.map +1 -1
  10. package/dist/bin/download.js.map +1 -1
  11. package/dist/bin/transfer.js.map +1 -1
  12. package/dist/bin/unpack.js.map +1 -1
  13. package/dist/filesizes.txt +107 -59
  14. package/dist/lib/aliases/default/default.aliases.sh +2 -8
  15. package/dist/lib/aliases/gcloud/gcloud.aliases.sh +116 -117
  16. package/dist/lib/aliases/git/git.aliases.sh +6 -47
  17. package/dist/lib/aliases/heroku/heroku.aliases.sh +673 -673
  18. package/dist/lib/aliases/jekyll/jekyll.aliases.sh +26 -26
  19. package/dist/lib/aliases/pnpm/pnpm.aliases.sh +36 -36
  20. package/dist/lib/aliases/subversion/subversion.aliases.sh +80 -80
  21. package/dist/lib/aliases/tmux/tmux.aliases.sh +1 -1
  22. package/dist/lib/aliases.sh +1 -1
  23. package/dist/lib/configurations/bash/bashrc +24 -24
  24. package/dist/lib/configurations/curl/curlrc +1 -1
  25. package/dist/lib/configurations/default/color.sh +1 -1
  26. package/dist/lib/configurations/default/constants.sh +41 -0
  27. package/dist/lib/configurations/default/editor.sh +1 -1
  28. package/dist/lib/configurations/default/prompt.sh +1 -1
  29. package/dist/lib/configurations/gem/gemrc +9 -0
  30. package/dist/lib/configurations/{inputrc → input}/inputrc +1 -1
  31. package/dist/lib/configurations/nano/nanorc +34 -0
  32. package/dist/lib/configurations/profile/profile +1 -1
  33. package/dist/lib/configurations/tmux/default +1 -1
  34. package/dist/lib/configurations/tmux/display +1 -1
  35. package/dist/lib/configurations/tmux/linux +1 -1
  36. package/dist/lib/configurations/tmux/navigation +1 -1
  37. package/dist/lib/configurations/tmux/panes +1 -1
  38. package/dist/lib/configurations/tmux/theme +4 -4
  39. package/dist/lib/configurations/tmux/tmux +1 -1
  40. package/dist/lib/configurations/tmux/vi +1 -1
  41. package/dist/lib/configurations/vim/vimrc +1 -1
  42. package/dist/lib/configurations/wget/wgetrc +1 -1
  43. package/dist/lib/configurations/zsh/zshrc +15 -16
  44. package/dist/lib/configurations.sh +1 -1
  45. package/dist/lib/exit.sh +1 -1
  46. package/dist/lib/functions/cdls.sh +1 -1
  47. package/dist/lib/functions/changediskpwd.tmp +17 -0
  48. package/dist/lib/functions/code.tmp +16 -0
  49. package/dist/lib/functions/countdown.tmp +33 -0
  50. package/dist/lib/functions/curlheader.sh +2 -2
  51. package/dist/lib/functions/curltime.sh +3 -4
  52. package/dist/lib/functions/encode64.sh +1 -1
  53. package/dist/lib/functions/environment.sh +2 -3
  54. package/dist/lib/functions/extract.sh +1 -1
  55. package/dist/lib/functions/genpwd.sh +6 -6
  56. package/dist/lib/functions/goto.sh +1 -1
  57. package/dist/lib/functions/headers.tmp +4 -0
  58. package/dist/lib/functions/hidehiddenfiles.sh +1 -1
  59. package/dist/lib/functions/history-all.tmp +7 -0
  60. package/dist/lib/functions/hostinfo.sh +1 -1
  61. package/dist/lib/functions/hstats.sh +2 -2
  62. package/dist/lib/functions/httpdebug.sh +1 -1
  63. package/dist/lib/functions/keygen.sh +1 -1
  64. package/dist/lib/functions/last.sh +1 -1
  65. package/dist/lib/functions/logout.sh +1 -1
  66. package/dist/lib/functions/lowercase.sh +16 -17
  67. package/dist/lib/functions/macos.sh +14 -15
  68. package/dist/lib/functions/matrix.sh +7 -2
  69. package/dist/lib/functions/mcd.sh +1 -1
  70. package/dist/lib/functions/mount_read_only.sh +1 -1
  71. package/dist/lib/functions/myproc.sh +1 -1
  72. package/dist/lib/functions/prependpath.sh +2 -2
  73. package/dist/lib/functions/print.tmp +13 -0
  74. package/dist/lib/functions/ql.sh +1 -1
  75. package/dist/lib/functions/rd.sh +3 -3
  76. package/dist/lib/functions/remove_disk.sh +2 -2
  77. package/dist/lib/functions/ren.sh +1 -1
  78. package/dist/lib/functions/rm.tmp +13 -0
  79. package/dist/lib/functions/rps.tmp +103 -0
  80. package/dist/lib/functions/showhiddenfiles.sh +1 -1
  81. package/dist/lib/functions/size.sh +1 -1
  82. package/dist/lib/functions/stopwatch.sh +1 -1
  83. package/dist/lib/functions/trash.tmp +13 -0
  84. package/dist/lib/functions/tree.tmp +13 -0
  85. package/dist/lib/functions/uppercase.sh +16 -17
  86. package/dist/lib/functions/uuidgen.tmp +27 -0
  87. package/dist/lib/functions/view-source.sh +2 -3
  88. package/dist/lib/functions/vscode.sh +1 -2
  89. package/dist/lib/functions/whoisport.sh +1 -1
  90. package/dist/lib/functions/zipf.sh +2 -2
  91. package/dist/lib/functions.sh +1 -1
  92. package/dist/lib/history.sh +22 -22
  93. package/dist/lib/paths/ant/ant.paths.sh +1 -1
  94. package/dist/lib/paths/default/default.paths.sh +10 -10
  95. package/dist/lib/paths/homebrew/homebrew.paths.sh +1 -1
  96. package/dist/lib/paths/java/java.paths.sh +1 -1
  97. package/dist/lib/paths/maven/maven.paths.sh +1 -1
  98. package/dist/lib/paths/node/node.paths.sh +1 -1
  99. package/dist/lib/paths/nvm/nvm.paths.sh +1 -1
  100. package/dist/lib/paths/pnpm/pnpm.paths.sh +1 -1
  101. package/dist/lib/paths/python/python.paths.sh +3 -3
  102. package/dist/lib/paths/ruby/ruby.paths.sh +1 -1
  103. package/dist/lib/paths/tmux/tmux.paths.sh +1 -1
  104. package/dist/lib/paths.sh +1 -1
  105. package/dist/scripts/backup.sh +89 -0
  106. package/dist/scripts/banner.sh +18 -0
  107. package/dist/scripts/build.sh +39 -0
  108. package/dist/scripts/clean.sh +29 -0
  109. package/dist/scripts/compile.sh +52 -0
  110. package/dist/scripts/copy.sh +106 -0
  111. package/dist/scripts/dotfiles.sh +61 -0
  112. package/dist/scripts/download.sh +33 -0
  113. package/dist/scripts/help.sh +55 -0
  114. package/dist/scripts/unpack.sh +26 -0
  115. package/package.json +14 -37
@@ -0,0 +1,103 @@
1
+ #!/usr/bin/env bash
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.460) - 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.458) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.460) - 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.458) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.460) - 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.458) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.460) - 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.460) - 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.460) - 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,28 +1,27 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.458) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.460) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
6
6
  # uppercase: Function to move filenames or directory names to uppercase
7
- uppercase()
8
- {
7
+ uppercase() {
9
8
  if [[ "$#" != 1 ]]; then
10
9
  echo "[ERROR] The filename or directory name is incorrect." >&2
11
10
  return 1
12
11
  fi
13
- for file ; do
14
- filename=${file##*/}
15
- case "${filename}" in
16
- */*) dirname=${file%/*} ;;
17
- *) dirname=.;;
18
- esac
19
- nf=$(echo "${filename}" | tr '[:upper:]' '[:lower:]')
20
- newname="${dirname}/${nf}"
21
- if [[ "${nf}" != "${filename}" ]]; then
22
- mv "${file}" "${newname}"
23
- echo "[INFO] Renaming ${file} to uppercase: ${newname}"
24
- else
25
- echo "[ERROR] The operation is not valid, ${file} has not changed."
26
- fi
12
+ for file; do
13
+ filename=${file##*/}
14
+ case "${filename}" in
15
+ */*) dirname=${file%/*} ;;
16
+ *) dirname=. ;;
17
+ esac
18
+ nf=$(echo "${filename}" | tr '[:upper:]' '[:lower:]')
19
+ newname="${dirname}/${nf}"
20
+ if [[ "${nf}" != "${filename}" ]]; then
21
+ mv "${file}" "${newname}"
22
+ echo "[INFO] Renaming ${file} to uppercase: ${newname}"
23
+ else
24
+ echo "[ERROR] The operation is not valid, ${file} has not changed."
25
+ fi
27
26
  done
28
27
  }
@@ -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,8 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.458) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.460) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
6
6
  # view-source: Function to view the source of a website.
7
- view-source () { /usr/bin/curl -L -k -A 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.0) Gecko/20100101 Firefox/25.0' "$@" ; }
8
-
7
+ view-source() { /usr/bin/curl -L -k -A 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.0) Gecko/20100101 Firefox/25.0' "$@"; }
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.458) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.460) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -28,4 +28,3 @@ fi
28
28
  alias vs="code"
29
29
  alias vsc="code"
30
30
  alias vscode="code"
31
-
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.458) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.460) - 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.458) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.460) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -10,5 +10,5 @@ function zipf() {
10
10
  return 1
11
11
  fi
12
12
  echo "[INFO] Creating the ZIP archive folder $1.zip"
13
- zip -r "$1".zip "$1";
13
+ zip -r "$1".zip "$1"
14
14
  }
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.458) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.460) - 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.458) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.460) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -78,28 +78,28 @@ if [[ -n "${ZSH_VERSION}" ]]; then
78
78
  elif [[ -n "${BASH_VERSION}" ]]; then
79
79
  # echo "Running shell is bash"
80
80
  # Shopt settings
81
- shopt -s autocd # autocd - automatically cd to a directory when it is the only argument to a command
82
- shopt -s cdspell # cdspell - spell check the path when changing directories.
83
- shopt -s checkhash # checkhash - check hash table for commands before running them.
84
- shopt -s checkjobs # checkjobs - check for stopped jobs after each command and report them to the user.
85
- shopt -s checkwinsize # checkwinsize - check the window size after each command and, if necessary, update the values of LINES and COLUMNS.
86
- shopt -s cmdhist # cmdhist - save multi-line commands as one entry in history.
87
- shopt -s dirspell # dirspell - spell check the path when changing directories.
88
- shopt -s dotglob # dotglob - include dotfiles in globbing.
89
- shopt -s extglob # extglob - extended globbing.
90
- shopt -s globstar # globstar - allow ** to match multiple directories.
91
- shopt -s histappend # histappend - append to the history file, don't overwrite it.
92
- shopt -s histverify # histverify - verify commands from history before executing them.
93
- shopt -s hostcomplete # hostcomplete - complete hostnames when using the ssh command.
94
- shopt -s lithist # lithist - save multi-line commands as one entry in history.
95
- shopt -s huponexit # huponexit - send SIGHUP to jobs when the shell exits.
81
+ shopt -s autocd # autocd - automatically cd to a directory when it is the only argument to a command
82
+ shopt -s cdspell # cdspell - spell check the path when changing directories.
83
+ shopt -s checkhash # checkhash - check hash table for commands before running them.
84
+ shopt -s checkjobs # checkjobs - check for stopped jobs after each command and report them to the user.
85
+ shopt -s checkwinsize # checkwinsize - check the window size after each command and, if necessary, update the values of LINES and COLUMNS.
86
+ shopt -s cmdhist # cmdhist - save multi-line commands as one entry in history.
87
+ shopt -s dirspell # dirspell - spell check the path when changing directories.
88
+ shopt -s dotglob # dotglob - include dotfiles in globbing.
89
+ shopt -s extglob # extglob - extended globbing.
90
+ shopt -s globstar # globstar - allow ** to match multiple directories.
91
+ shopt -s histappend # histappend - append to the history file, don't overwrite it.
92
+ shopt -s histverify # histverify - verify commands from history before executing them.
93
+ shopt -s hostcomplete # hostcomplete - complete hostnames when using the ssh command.
94
+ shopt -s lithist # lithist - save multi-line commands as one entry in history.
95
+ shopt -s huponexit # huponexit - send SIGHUP to jobs when the shell exits.
96
96
  shopt -s no_empty_cmd_completion # no_empty_cmd_completion - don't complete empty commands.
97
- shopt -s nocaseglob # nocaseglob - case insensitive globbing.
98
- shopt -s nocasematch # nocasematch - case insensitive matching.
99
- shopt -s nullglob # nullglob - if no matches are found, the pattern expands to nothing.
100
- shopt -s progcomp # progcomp - programmable completion.
101
- shopt -s promptvars # promptvars - allow prompt strings to contain shell variables.
102
- shopt -s sourcepath # sourcepath - search the PATH for the directory containing a sourced script before using the current directory.
97
+ shopt -s nocaseglob # nocaseglob - case insensitive globbing.
98
+ shopt -s nocasematch # nocasematch - case insensitive matching.
99
+ shopt -s nullglob # nullglob - if no matches are found, the pattern expands to nothing.
100
+ shopt -s progcomp # progcomp - programmable completion.
101
+ shopt -s promptvars # promptvars - allow prompt strings to contain shell variables.
102
+ shopt -s sourcepath # sourcepath - search the PATH for the directory containing a sourced script before using the current directory.
103
103
 
104
104
  else
105
105
  echo "Unsupported shell: ${SHELL}"
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.458) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.460) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.458) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.460) - 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
  ### Add 'PATH' entries.
9
- export PATH=/usr/local/bin:"${PATH}" # Add /usr/local/bin to the path
10
- export PATH=/usr/local/sbin:"${PATH}" # Add /usr/local/sbin to the path
11
- export PATH=/usr/bin:"${PATH}" # Add /usr/bin to the path
12
- export PATH=/bin:"${PATH}" # Add /bin to the path
13
- export PATH=/usr/sbin:"${PATH}" # Add /usr/sbin to the path
14
- export PATH=/sbin:"${PATH}" # Add /sbin to the path
15
- export PATH="${HOME}"/.cargo/bin:"${PATH}" # Add ~/.cargo/bin to the path
16
- export PATH="${HOME}"/.yarn/bin:"${PATH}" # Add ~/.yarn/bin to the path
17
- export PATH="${HOME}"/go/bin:"${PATH}" # Add ~/go/bin to the path
9
+ export PATH=/usr/local/bin:"${PATH}" # Add /usr/local/bin to the path
10
+ export PATH=/usr/local/sbin:"${PATH}" # Add /usr/local/sbin to the path
11
+ export PATH=/usr/bin:"${PATH}" # Add /usr/bin to the path
12
+ export PATH=/bin:"${PATH}" # Add /bin to the path
13
+ export PATH=/usr/sbin:"${PATH}" # Add /usr/sbin to the path
14
+ export PATH=/sbin:"${PATH}" # Add /sbin to the path
15
+ export PATH="${HOME}"/.cargo/bin:"${PATH}" # Add ~/.cargo/bin to the path
16
+ export PATH="${HOME}"/.yarn/bin:"${PATH}" # Add ~/.yarn/bin to the path
17
+ export PATH="${HOME}"/go/bin:"${PATH}" # Add ~/go/bin to the path
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.458) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.460) - 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.458) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.460) - 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.458) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.460) - 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.458) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.460) - 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.458) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.460) - 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.458) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.460) - 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.458) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.460) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -15,10 +15,10 @@ elif [[ "${OSTYPE}" == "linux-gnu"* ]]; then
15
15
  fi
16
16
 
17
17
  # Encoding[:errors] used for stdin/stdout/stderr.
18
- export PYTHONIOENCODING='UTF-8';
18
+ export PYTHONIOENCODING='UTF-8'
19
19
 
20
20
  # If set to 1, enables the UTF-8 mode.
21
- export PYTHONUTF8=1;
21
+ export PYTHONUTF8=1
22
22
 
23
23
  # Export PYTHONHOME variable
24
24
  export PYTHONHOME
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.458) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.460) - 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.458) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.460) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
package/dist/lib/paths.sh CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.458) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.460) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -0,0 +1,89 @@
1
+ #!/usr/bin/env bash
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.460) - 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
+ if [[ -d "${DF_BACKUPDIR}${DF_TIMESTAMP}/${DF}" ]]; then
36
+ mv -f "${DF_DOTFILESDIR}" "${DF_BACKUPDIR}${DF_TIMESTAMP}/${DF}"
37
+ else
38
+ mkdir -p "${DF_BACKUPDIR}${DF_TIMESTAMP}/${DF}"
39
+ mv -f "${DF_DOTFILESDIR}" "${DF_BACKUPDIR}${DF_TIMESTAMP}/${DF}"
40
+ fi
41
+ fi
42
+
43
+ # File list (use trailing slash for directories)
44
+ FILES="
45
+ .alias
46
+ .bash_aliases
47
+ .bash_profile
48
+ .bash_prompt
49
+ .bashrc
50
+ .curlrc
51
+ .dir_colors
52
+ .exports
53
+ .functions
54
+ .gitattributes
55
+ .gitconfig
56
+ .gitignore
57
+ .gitmessage
58
+ .inputrc
59
+ .npmrc
60
+ .path
61
+ .profile
62
+ .tmux.conf
63
+ .vimrc
64
+ .wgetrc
65
+ .yarnrc
66
+ .zshenv
67
+ .zshrc
68
+ cacert.pem
69
+ "
70
+
71
+ for file in ${FILES}; do
72
+ # shellcheck disable=SC2292
73
+ if [ -e "${HOME}/${file}" ]; then
74
+ echo "${GREEN} ✔${NC} Backing up '${YELLOW}${file}${NC}'"
75
+ cp -f "${HOME}"/"${file}" "${DF_BACKUPDIR}"/"${file}"
76
+ fi
77
+ done
78
+
79
+ # shellcheck disable=SC2154
80
+ echo "${GREEN} ✔${NC} All files have been backed up to '${CYAN}${DF_BACKUPDIR}${NC}'"
81
+ echo ""
82
+ }
83
+
84
+ args=$* # Arguments passed to script.
85
+ export args="${args}" # Exporting arguments.
86
+ if [[ ${args} = "backup" ]]; then
87
+ echo "$*"
88
+ backup
89
+ fi
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env bash
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.460) - 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,39 @@
1
+ #!/usr/bin/env bash
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.460) - 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
+ ## 🅱🆄🅸🅻🅳 - Build the dotfiles on your system.
22
+ build() {
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
+ }
33
+
34
+ args=$* # Arguments passed to script.
35
+ export args="${args}" # Exporting arguments.
36
+ if [[ ${args} = "build" ]]; then
37
+ echo "$*"
38
+ build
39
+ fi
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env bash
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.460) - 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