@sebastienrousseau/dotfiles 0.2.452 → 0.2.453

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 (97) hide show
  1. package/COPYRIGHT +1 -1
  2. package/Makefile +1 -1
  3. package/README.md +111 -48
  4. package/bin/dotfiles.sh +13 -6
  5. package/package.json +2 -2
  6. package/pnpm-lock.yaml +140 -86
  7. package/shell/aliases/default/default.aliases.sh +1 -1
  8. package/shell/aliases/gcloud/gcloud.aliases.sh +1 -1
  9. package/shell/aliases/git/git.aliases.wip +1 -1
  10. package/shell/aliases/heroku/heroku.aliases.sh +1 -1
  11. package/shell/aliases/jekyll/jekyll.aliases.sh +1 -1
  12. package/shell/aliases/pnpm/pnpm.aliases.sh +1 -1
  13. package/shell/aliases/subversion/subversion.aliases.sh +1 -1
  14. package/shell/aliases/tmux/tmux.aliases.sh +1 -1
  15. package/shell/aliases.sh +1 -1
  16. package/shell/configurations/bash/bashrc +2 -2
  17. package/shell/configurations/curl/curlrc +1 -1
  18. package/shell/configurations/default/color.sh +1 -1
  19. package/shell/configurations/default/editor.sh +1 -1
  20. package/shell/configurations/default/prompt.sh +6 -6
  21. package/shell/configurations/inputrc/inputrc +2 -2
  22. package/shell/configurations/profile/profile +1 -1
  23. package/shell/configurations/tmux/tmux +2 -2
  24. package/shell/configurations/vim/vimrc +1 -1
  25. package/shell/configurations/wget/wgetrc +1 -1
  26. package/shell/configurations/zsh/zshrc +12 -2
  27. package/shell/configurations.sh +1 -1
  28. package/shell/exit.sh +1 -1
  29. package/shell/functions/cdls.sh +1 -1
  30. package/shell/functions/{changediskpwd.sh → changediskpwd.wip} +1 -1
  31. package/shell/functions/{code.sh → code.wip} +1 -1
  32. package/shell/functions/{countdown.sh → countdown.wip} +1 -1
  33. package/shell/functions/curlheader.sh +1 -1
  34. package/shell/functions/curltime.sh +1 -1
  35. package/shell/functions/encode64.sh +1 -1
  36. package/shell/functions/environment.sh +8 -8
  37. package/shell/functions/extract.sh +2 -2
  38. package/shell/functions/genpwd.sh +1 -1
  39. package/shell/functions/goto.sh +2 -2
  40. package/shell/functions/{headers.sh → headers.wip} +0 -0
  41. package/shell/functions/hidehiddenfiles.sh +1 -1
  42. package/shell/functions/{history-all.sh → history-all.wip} +1 -1
  43. package/shell/functions/hostinfo.sh +1 -1
  44. package/shell/functions/hstats.sh +1 -1
  45. package/shell/functions/httpdebug.sh +1 -1
  46. package/shell/functions/keygen.sh +4 -4
  47. package/shell/functions/last.sh +1 -1
  48. package/shell/functions/logout.sh +1 -1
  49. package/shell/functions/lowercase.sh +1 -1
  50. package/shell/functions/macos.sh +1 -1
  51. package/shell/functions/matrix.sh +1 -1
  52. package/shell/functions/mcd.sh +1 -1
  53. package/shell/functions/mount_read_only.sh +1 -1
  54. package/shell/functions/myproc.sh +2 -2
  55. package/shell/functions/prependpath.sh +1 -1
  56. package/shell/functions/print.wip +13 -0
  57. package/shell/functions/ql.sh +1 -1
  58. package/shell/functions/rd.sh +1 -1
  59. package/shell/functions/remove_disk.sh +1 -1
  60. package/shell/functions/ren.sh +2 -2
  61. package/shell/functions/{rm.sh → rm.wip} +1 -1
  62. package/shell/functions/{rps.sh → rps.wip} +1 -1
  63. package/shell/functions/showhiddenfiles.sh +1 -1
  64. package/shell/functions/size.sh +1 -1
  65. package/shell/functions/stopwatch.sh +1 -1
  66. package/shell/functions/{trash.sh → trash.wip} +1 -1
  67. package/shell/functions/{tree.sh → tree.wip} +1 -1
  68. package/shell/functions/uppercase.sh +2 -2
  69. package/shell/functions/uuidgen.wip +27 -0
  70. package/shell/functions/view-source.sh +1 -1
  71. package/shell/functions/vscode.sh +1 -1
  72. package/shell/functions/whoisport.sh +1 -1
  73. package/shell/functions/zipf.sh +1 -1
  74. package/shell/functions.sh +1 -1
  75. package/shell/history.sh +3 -6
  76. package/shell/paths/ant/ant.paths.sh +1 -1
  77. package/shell/paths/default/default.paths.sh +1 -1
  78. package/shell/paths/homebrew/homebrew.paths.sh +4 -1
  79. package/shell/paths/java/java.paths.sh +1 -1
  80. package/shell/paths/maven/maven.paths.sh +3 -2
  81. package/shell/paths/node/node.paths.sh +2 -2
  82. package/shell/paths/nvm/nvm.paths.sh +1 -1
  83. package/shell/paths/pnpm/pnpm.paths.sh +2 -2
  84. package/shell/paths/python/python.paths.sh +19 -0
  85. package/shell/paths/ruby/ruby.paths.sh +1 -1
  86. package/shell/paths/tmux/tmux.paths.sh +2 -3
  87. package/shell/paths.sh +1 -1
  88. package/shell/aliases/README.md +0 -327
  89. package/shell/aliases/gcloud/README.md +0 -117
  90. package/shell/aliases/git/README.md +0 -279
  91. package/shell/aliases/heroku/README.md +0 -457
  92. package/shell/aliases/jekyll/README.md +0 -32
  93. package/shell/aliases/pnpm/README.md +0 -3
  94. package/shell/aliases/subversion/README.md +0 -54
  95. package/shell/aliases/tmux/README.md +0 -0
  96. package/shell/functions/print.sh +0 -13
  97. package/shell/functions/uuidgen.sh +0 -27
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -10,28 +10,28 @@ environment ()
10
10
  LOCAL_OS="other"
11
11
 
12
12
  # Mac
13
- if [ "$(uname -s | grep -c Darwin)" -gt 0 ]; then
14
- LOCAL_OS="darwin"
13
+ if [[ "$(uname -s | grep -c Darwin)" -gt 0 ]] || true; then
14
+ LOCAL_OS="mac"
15
15
 
16
16
  # Linux
17
- elif [ "$(uname -s | grep -c Linux)" -gt 0 ]; then
17
+ elif [[ "$(uname -s | grep -c Linux)" -gt 0 ]] || true; then
18
18
  LOCAL_OS="linux"
19
19
 
20
20
  # Windows via MING
21
- elif [ "$(uname -s | grep -c MING)" -gt 0 ]; then
21
+ elif [[ "$(uname -s | grep -c MING)" -gt 0 ]] || true; then
22
22
  LOCAL_OS="win"
23
23
 
24
24
  # Cygwin
25
- elif [ "$(uname -s | grep -c Cygwin)" -gt 0 ]; then
25
+ elif [[ "$(uname -s | grep -c Cygwin)" -gt 0 ]] || true; then
26
26
  LOCAL_OS="win"
27
27
 
28
28
  # Cygwin via Babun
29
- elif [ "$(uname -s | grep -c CYGWIN)" -gt 0 ]; then
29
+ elif [[ "$(uname -s | grep -c CYGWIN)" -gt 0 ]] || true; then
30
30
  LOCAL_OS="win"
31
31
 
32
32
  fi
33
33
 
34
34
  # Output the result
35
- echo "$LOCAL_OS"
35
+ echo "${LOCAL_OS}"
36
36
 
37
37
  }
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -10,7 +10,7 @@ extract() {
10
10
  return 1
11
11
  fi
12
12
 
13
- if [ -f "$1" ]; then
13
+ if [[ -f "$1" ]]; then
14
14
  echo "[INFO] Extracting $1"
15
15
  case $1 in
16
16
  *.tar.bz2) tar xjf "$1" ;;
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
6
6
  # goto: Function to change to the directory inputed
7
7
  goto() {
8
- if [ -e "$1" ]; then
8
+ if [[ -e "$1" ]]; then
9
9
  cd "$1" || exit
10
10
  l
11
11
  else
File without changes
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -12,11 +12,11 @@ keygen() {
12
12
  echo "What's the email associated with it? "
13
13
  read -r email
14
14
 
15
- ssh-keygen -t rsa -f ~/.ssh/id_rsa_"$name" -C "$email"
15
+ ssh-keygen -t rsa -f ~/.ssh/id_rsa_"${name}" -C "${email}"
16
16
 
17
- ssh-add ~/.ssh/id_rsa_"$name"
17
+ ssh-add ~/.ssh/id_rsa_"${name}"
18
18
 
19
- pbcopy <~/.ssh/id_rsa_"$name".pub
19
+ pbcopy <~/.ssh/id_rsa_"${name}".pub
20
20
 
21
21
  echo "[INFO] SSH Key id_rsa_$(name).pub copied in your clipboard"
22
22
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
6
6
  # myproc: Function to list processes owned by an user
7
- myproc() { ps "$@" -u "$USER" -o pid,%cpu,%mem,start,time,bsdtime,command; }
7
+ myproc() { ps "$@" -u "${USER}" -o pid,%cpu,%mem,start,time,bsdtime,command; }
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
6
6
  # ren: Function to rename files extension.
7
7
  ren() {
8
8
  for f in *."$1"; do
9
- mv "$f" "${f%."$1"}.$2"
9
+ mv "${f}" "${f%."$1"}.$2"
10
10
  done
11
11
  }
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -18,7 +18,7 @@ uppercase()
18
18
  esac
19
19
  nf=$(echo "${filename}" | tr '[:upper:]' '[:lower:]')
20
20
  newname="${dirname}/${nf}"
21
- if [ "${nf}" != "${filename}" ]; then
21
+ if [[ "${nf}" != "${filename}" ]]; then
22
22
  mv "${file}" "${newname}"
23
23
  echo "[INFO] Renaming ${file} to uppercase: ${newname}"
24
24
  else
@@ -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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
package/shell/history.sh CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -35,16 +35,13 @@ case ${HIST_STAMPS-} in
35
35
  esac
36
36
 
37
37
  # Command history configuration
38
- export HISTFILE=${HOME}/.history
38
+ export HISTFILE=${HOME}/.zsh_history
39
39
 
40
40
  # Don't put duplicate lines or lines starting with space in the history.
41
41
  export HISTCONTROL=ignoreboth
42
42
 
43
43
  # Number of histories saved in memory
44
- export HISTSIZE=100000
45
-
46
- # History file size limit in bytes
47
- export HISTFILESIZE=2000000
44
+ export HISTSIZE=10000
48
45
 
49
46
  # Number of histories saved in history file
50
47
  export SAVEHIST=1000
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -16,6 +16,9 @@ if [[ "${OSTYPE}" == "darwin"* ]]; then
16
16
  # Prevent Homebrew from reporting - https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md
17
17
  export HOMEBREW_NO_ANALYTICS=1
18
18
 
19
+ # Automatically update Homebrew once a day.
20
+ export HOMEBREW_AUTO_UPDATE_SECS=86400
21
+
19
22
  # set HOMEBREW_CASK_OPTS
20
23
  HOMEBREW_CASK_OPTS="--appdir=/Applications"
21
24
  export HOMEBREW_CASK_OPTS
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -1,16 +1,17 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
6
6
  ## 🅼🅰🆅🅴🅽 🅷🅾🅼🅴
7
7
  if [[ -z "${MAVEN_HOME}" ]]; then
8
8
  if [[ "${OSTYPE}" == "darwin"* ]]; then
9
- MAVEN_HOME="/opt/homebrew/Cellar/maven/"
9
+ MAVEN_HOME=/opt/homebrew/Cellar/maven/3.8.6/libexec
10
10
  elif [[ "${OSTYPE}" == "linux-gnu"* ]]; then
11
11
  MAVEN_HOME="/usr/share/maven/"
12
12
  fi
13
13
  M2_HOME="${MAVEN_HOME}"
14
14
  export MAVEN_HOME M2_HOME
15
15
  export PATH="${MAVEN_HOME}:${PATH}"
16
+ export MAVEN_OPTS="-Xms1g -Xmx1g"
16
17
  fi
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
6
6
  ## 🅽🅾🅳🅴 🅿🅰🆃🅷
7
7
  if [[ "${OSTYPE}" == "darwin"* ]]; then
8
- NODE_PATH=${HOME}/.nvm/versions/node/v18.9.1/bin/node
8
+ NODE_PATH=/opt/homebrew/Cellar/node@18/18.10.0
9
9
  elif [[ "${OSTYPE}" == "linux-gnu"* ]]; then
10
10
  NODE_PATH=${HOME}/.nvm/versions/node/v18.10.0/bin/node
11
11
  fi
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
6
6
  ## 🅿🅽🅿🅼 🅿🅰🆃🅷🆂
7
7
  if [[ "${OSTYPE}" == "darwin"* ]]; then
8
- PNPM_HOME="${HOME}"/Library/pnpm
8
+ PNPM_HOME=/opt/homebrew/Cellar/pnpm
9
9
  elif [[ "${OSTYPE}" == "linux-gnu"* ]]; then
10
10
  PNPM_HOME="${HOME}"/.local/share/pnpm
11
11
  fi
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env bash
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - https://dotfiles.io
3
+ # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
+ # License: MIT
5
+
6
+ ## 🅿🆈🆃🅷🅾🅽 🅿🅰🆃🅷
7
+ if [[ "${OSTYPE}" == "darwin"* ]]; then
8
+ if [[ -d "/opt/homebrew/opt/python/bin" ]]; then
9
+ PYTHONHOME="/opt/homebrew/opt/python/bin"
10
+ fi
11
+ elif [[ "${OSTYPE}" == "linux-gnu"* ]]; then
12
+ PYTHONHOME="/usr/lib/python*/"
13
+ fi
14
+
15
+ # Make Python use UTF-8 encoding for output to stdin, stdout, and stderr.
16
+ export PYTHONIOENCODING='UTF-8';
17
+
18
+ export PYTHONHOME
19
+ export PATH="${PYTHONHOME}:${PATH}"
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - 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.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -7,9 +7,8 @@
7
7
  if command -v 'tmux' >/dev/null; then
8
8
  TMUX_PATH=$(command -v tmux)
9
9
  export TMUX_PATH
10
-
11
10
  fi
12
11
 
13
12
  if [[ -z "${TMUX}" ]] && [[ ${UID} != 0 ]]; then
14
- tmux attach -t default || tmux new -s default
13
+ tmux new -s "Dotfiles"
15
14
  fi
package/shell/paths.sh CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.452) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.453) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5