@sebastienrousseau/dotfiles 0.2.459 β†’ 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 (108) hide show
  1. package/README.md +5 -5
  2. package/dist/Makefile +13 -13
  3. package/dist/bin/backup.js.map +1 -1
  4. package/dist/bin/constants.d.ts +2 -2
  5. package/dist/bin/constants.js +1 -1
  6. package/dist/bin/download.js.map +1 -1
  7. package/dist/bin/transfer.js.map +1 -1
  8. package/dist/bin/unpack.js.map +1 -1
  9. package/dist/filesizes.txt +63 -63
  10. package/dist/lib/aliases/default/default.aliases.sh +1 -1
  11. package/dist/lib/aliases/gcloud/gcloud.aliases.sh +116 -117
  12. package/dist/lib/aliases/git/git.aliases.sh +2 -43
  13. package/dist/lib/aliases/heroku/heroku.aliases.sh +673 -673
  14. package/dist/lib/aliases/jekyll/jekyll.aliases.sh +26 -26
  15. package/dist/lib/aliases/pnpm/pnpm.aliases.sh +36 -36
  16. package/dist/lib/aliases/subversion/subversion.aliases.sh +80 -80
  17. package/dist/lib/aliases/tmux/tmux.aliases.sh +1 -1
  18. package/dist/lib/aliases.sh +1 -1
  19. package/dist/lib/configurations/bash/bashrc +2 -2
  20. package/dist/lib/configurations/curl/curlrc +1 -1
  21. package/dist/lib/configurations/default/color.sh +1 -1
  22. package/dist/lib/configurations/default/constants.sh +6 -4
  23. package/dist/lib/configurations/default/editor.sh +1 -1
  24. package/dist/lib/configurations/default/prompt.sh +1 -1
  25. package/dist/lib/configurations/input/inputrc +1 -1
  26. package/dist/lib/configurations/nano/nanorc +1 -1
  27. package/dist/lib/configurations/profile/profile +1 -1
  28. package/dist/lib/configurations/tmux/default +1 -1
  29. package/dist/lib/configurations/tmux/display +1 -1
  30. package/dist/lib/configurations/tmux/linux +1 -1
  31. package/dist/lib/configurations/tmux/navigation +1 -1
  32. package/dist/lib/configurations/tmux/panes +1 -1
  33. package/dist/lib/configurations/tmux/theme +2 -2
  34. package/dist/lib/configurations/tmux/tmux +1 -1
  35. package/dist/lib/configurations/tmux/vi +1 -1
  36. package/dist/lib/configurations/vim/vimrc +1 -1
  37. package/dist/lib/configurations/wget/wgetrc +1 -1
  38. package/dist/lib/configurations/zsh/zshrc +2 -2
  39. package/dist/lib/configurations.sh +1 -1
  40. package/dist/lib/exit.sh +1 -1
  41. package/dist/lib/functions/cdls.sh +1 -1
  42. package/dist/lib/functions/changediskpwd.tmp +1 -3
  43. package/dist/lib/functions/code.tmp +1 -3
  44. package/dist/lib/functions/countdown.tmp +1 -1
  45. package/dist/lib/functions/curlheader.sh +2 -2
  46. package/dist/lib/functions/curltime.sh +3 -4
  47. package/dist/lib/functions/encode64.sh +1 -1
  48. package/dist/lib/functions/environment.sh +2 -3
  49. package/dist/lib/functions/extract.sh +1 -1
  50. package/dist/lib/functions/genpwd.sh +6 -6
  51. package/dist/lib/functions/goto.sh +1 -1
  52. package/dist/lib/functions/hidehiddenfiles.sh +1 -1
  53. package/dist/lib/functions/history-all.tmp +1 -1
  54. package/dist/lib/functions/hostinfo.sh +1 -1
  55. package/dist/lib/functions/hstats.sh +2 -2
  56. package/dist/lib/functions/httpdebug.sh +1 -1
  57. package/dist/lib/functions/keygen.sh +1 -1
  58. package/dist/lib/functions/last.sh +1 -1
  59. package/dist/lib/functions/logout.sh +1 -1
  60. package/dist/lib/functions/lowercase.sh +16 -17
  61. package/dist/lib/functions/macos.sh +14 -15
  62. package/dist/lib/functions/matrix.sh +1 -1
  63. package/dist/lib/functions/mcd.sh +1 -1
  64. package/dist/lib/functions/mount_read_only.sh +1 -1
  65. package/dist/lib/functions/myproc.sh +1 -1
  66. package/dist/lib/functions/prependpath.sh +2 -2
  67. package/dist/lib/functions/print.tmp +1 -1
  68. package/dist/lib/functions/ql.sh +1 -1
  69. package/dist/lib/functions/rd.sh +3 -3
  70. package/dist/lib/functions/remove_disk.sh +2 -2
  71. package/dist/lib/functions/ren.sh +1 -1
  72. package/dist/lib/functions/rm.tmp +1 -1
  73. package/dist/lib/functions/rps.tmp +1 -1
  74. package/dist/lib/functions/showhiddenfiles.sh +1 -1
  75. package/dist/lib/functions/size.sh +1 -1
  76. package/dist/lib/functions/stopwatch.sh +1 -1
  77. package/dist/lib/functions/trash.tmp +1 -1
  78. package/dist/lib/functions/tree.tmp +1 -1
  79. package/dist/lib/functions/uppercase.sh +16 -17
  80. package/dist/lib/functions/view-source.sh +2 -3
  81. package/dist/lib/functions/vscode.sh +1 -2
  82. package/dist/lib/functions/whoisport.sh +1 -1
  83. package/dist/lib/functions/zipf.sh +2 -2
  84. package/dist/lib/functions.sh +1 -1
  85. package/dist/lib/history.sh +22 -22
  86. package/dist/lib/paths/ant/ant.paths.sh +1 -1
  87. package/dist/lib/paths/default/default.paths.sh +10 -10
  88. package/dist/lib/paths/homebrew/homebrew.paths.sh +1 -1
  89. package/dist/lib/paths/java/java.paths.sh +1 -1
  90. package/dist/lib/paths/maven/maven.paths.sh +1 -1
  91. package/dist/lib/paths/node/node.paths.sh +1 -1
  92. package/dist/lib/paths/nvm/nvm.paths.sh +1 -1
  93. package/dist/lib/paths/pnpm/pnpm.paths.sh +1 -1
  94. package/dist/lib/paths/python/python.paths.sh +3 -3
  95. package/dist/lib/paths/ruby/ruby.paths.sh +1 -1
  96. package/dist/lib/paths/tmux/tmux.paths.sh +1 -1
  97. package/dist/lib/paths.sh +1 -1
  98. package/dist/scripts/backup.sh +8 -3
  99. package/dist/scripts/banner.sh +1 -1
  100. package/dist/scripts/{assemble.sh β†’ build.sh} +10 -3
  101. package/dist/scripts/clean.sh +1 -1
  102. package/dist/scripts/compile.sh +1 -1
  103. package/dist/scripts/copy.sh +2 -2
  104. package/dist/scripts/dotfiles.sh +1 -1
  105. package/dist/scripts/download.sh +14 -4
  106. package/dist/scripts/help.sh +3 -3
  107. package/dist/scripts/unpack.sh +1 -1
  108. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - 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
 
@@ -16,5 +16,5 @@ curlheader() {
16
16
  fi
17
17
  }
18
18
 
19
- alias clh='curlheader' # Alias for curlheader
19
+ alias clh='curlheader' # Alias for curlheader
20
20
  alias crlhd='curlheader' # Alias for curlheader
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - 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,7 +15,7 @@
15
15
  ## get the timings for a curl to a URL
16
16
  ## usage: curltime $url
17
17
  curltime() {
18
- curl -w "\n\
18
+ curl -w "\n\
19
19
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”\n\
20
20
  β”‚Time appconnect: %{time_appconnect}s β”‚\n\
21
21
  β”‚Time connect: %{time_connect}s β”‚\n\
@@ -26,6 +26,5 @@ curl -w "\n\
26
26
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜\n\
27
27
  Time total: %{time_total}s\n\n" -o /dev/null -s "$1"
28
28
  }
29
- alias clh='curlheader' # Alias for curlheader
29
+ alias clh='curlheader' # Alias for curlheader
30
30
  alias crlhd='curlheader' # Alias for curlheader
31
-
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - 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,11 +1,10 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - 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
  # environment: Function to detect the current environment
7
- environment ()
8
- {
7
+ environment() {
9
8
  # Define a fallback `OS`
10
9
  LOCAL_OS="other"
11
10
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - 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,14 +1,14 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - 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
  # genpwd: Function to generates a strong random password of 20 characters (similar to Apple)
7
7
  genpwd() {
8
- m=$(openssl rand -base64 32 | cut -c 1-6);
9
- a=$(openssl rand -base64 32 | cut -c 1-6);
10
- c=$(openssl rand -base64 32 | cut -c 1-6);
11
- pwd="$m-$a-$c";
8
+ m=$(openssl rand -base64 32 | cut -c 1-6)
9
+ a=$(openssl rand -base64 32 | cut -c 1-6)
10
+ c=$(openssl rand -base64 32 | cut -c 1-6)
11
+ pwd="$m-$a-$c"
12
12
  echo "[INFO] The password has been copied to the clipboard: $pwd"
13
- echo "$pwd"| pbcopy | pbpaste;
13
+ echo "$pwd" | pbcopy | pbpaste
14
14
  }
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - 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.459) - 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.459) - 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.459) - 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,9 +1,9 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - 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
  # hstats: Function to display Ze Shell history stats informaton
7
7
  hstats() {
8
- history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n20
8
+ history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n20
9
9
  }
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - 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.459) - 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.459) - 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.459) - 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,28 +1,27 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - 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
  # lowercase: Function to move filenames or directory names to lowercase
7
- lowercase()
8
- {
7
+ lowercase() {
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 lowercase: ${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 lowercase: ${newname}"
23
+ else
24
+ echo "[ERROR] The operation is not valid, ${file} has not changed."
25
+ fi
27
26
  done
28
27
  }
@@ -1,28 +1,28 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - 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
- alias clds='find . -type f -name "*.DS_Store" -ls -delete' # clds: Recursively delete .DS_Store files.
8
+ alias clds='find . -type f -name "*.DS_Store" -ls -delete' # clds: Recursively delete .DS_Store files.
9
9
  alias clls='/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user && killall Finder' # clls: Clean up LaunchServices to remove duplicates in the 'Open With' menu.
10
- alias emptytrash='rm -rf ~/.Trash/*' # Empty the Trash on all mounted volumes and the main HDD.
11
- alias finderHideHidden='defaults write com.apple.finder ShowAllFiles FALSE' # finderHideHidden: Hide hidden files in Finder.
12
- alias finderShowHidden='defaults write com.apple.finder ShowAllFiles TRUE' # finderShowHidden: Show hidden files in Finder.
13
- alias iphone='open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app' # iphone: Open the device simulators.
10
+ alias emptytrash='rm -rf ~/.Trash/*' # Empty the Trash on all mounted volumes and the main HDD.
11
+ alias finderHideHidden='defaults write com.apple.finder ShowAllFiles FALSE' # finderHideHidden: Hide hidden files in Finder.
12
+ alias finderShowHidden='defaults write com.apple.finder ShowAllFiles TRUE' # finderShowHidden: Show hidden files in Finder.
13
+ alias iphone='open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app' # iphone: Open the device simulators.
14
14
  alias noDS='defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true'
15
- alias ofd='open $PWD' # Open the current directory in a Finder window.
16
- alias purge='rm -rf ~/library/Developer/Xcode/DerivedData/*' # purge: Purging Xcode DerivedData.
15
+ alias ofd='open $PWD' # Open the current directory in a Finder window.
16
+ alias purge='rm -rf ~/library/Developer/Xcode/DerivedData/*' # purge: Purging Xcode DerivedData.
17
17
  alias screensaverDesktop='/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background' # screensaverDesktop: Run a screensaver on the Desktop.
18
- alias vp='diskutil verifyPermissions /' # vp: Verify macOS Permissions.
19
- alias vv='diskutil verifyvolume /' # vv: Verify macOS Volume.
20
- alias xcode='open -a xcode' # xcode: Launch XCode app in macOS.
18
+ alias vp='diskutil verifyPermissions /' # vp: Verify macOS Permissions.
19
+ alias vv='diskutil verifyvolume /' # vv: Verify macOS Volume.
20
+ alias xcode='open -a xcode' # xcode: Launch XCode app in macOS.
21
21
 
22
22
  # πŸ…ΌπŸ…°πŸ…²πŸ…ΎπŸ†‚ πŸ…ΏπŸ…»πŸ†„πŸ…ΆπŸ…ΈπŸ…½πŸ…Ά πŸ…΅πŸ†„πŸ…½πŸ…²πŸ†ƒπŸ…ΈπŸ…ΎπŸ…½πŸ†‚
23
23
 
24
24
  # Erases purgeable disk space with 0s on the selected disk
25
- freespace(){
25
+ freespace() {
26
26
  if [[ -z "$1" ]]; then
27
27
  echo "Usage: $0 <disk>"
28
28
  echo "Example: $0 /dev/disk1s1"
@@ -38,10 +38,9 @@ freespace(){
38
38
 
39
39
  mp() {
40
40
  # Don't let Preview.app steal focus if the man page doesn't exist
41
- man -w "$@" > /dev/null 2>&1 || man -t "$@" | open -f -a Preview || man "$@"
41
+ man -w "$@" >/dev/null 2>&1 || man -t "$@" | open -f -a Preview || man "$@"
42
42
  }
43
43
 
44
44
  ql() {
45
- (( $# > 0 )) && qlmanage -p "$*" &>/dev/null &
45
+ (($# > 0)) && qlmanage -p "$*" &>/dev/null &
46
46
  }
47
-
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - 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.459) - 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.459) - 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.459) - 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.459) - 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
 
@@ -13,7 +13,7 @@
13
13
 
14
14
  # prependpath: Prepend $PATH without duplicates
15
15
  prependpath() {
16
- if ! echo "${PATH}" | tr ":" "\n" | grep -qx "$1" ; then
16
+ if ! echo "${PATH}" | tr ":" "\n" | grep -qx "$1"; then
17
17
  PATH="$1:${PATH}"
18
18
  fi
19
19
  }
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - 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.459) - 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.459) - 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,6 +10,6 @@ rd() {
10
10
  return 1
11
11
  fi
12
12
  echo "[INFO] The operation completed successfully, directory listing of $1:"
13
- rm -rf "$1" || exit;
14
- ls -lh;
13
+ rm -rf "$1" || exit
14
+ ls -lh
15
15
  }
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - 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
  # remove_disk: spin down unneeded disk
7
- remove_disk () {
7
+ remove_disk() {
8
8
  diskutil eject "$1"
9
9
  }
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - 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.459) - 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.459) - 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.459) - 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.459) - 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.459) - 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.459) - 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.459) - 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,28 +1,27 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - 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
  }
@@ -1,8 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - 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.459) - 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.459) - 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.459) - 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.459) - 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.459) - 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.459) - 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