@sebastienrousseau/dotfiles 0.2.459 β†’ 0.2.461

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 (120) hide show
  1. package/README.md +5 -5
  2. package/dist/Makefile +15 -14
  3. package/dist/bin/backup.d.ts.map +1 -1
  4. package/dist/bin/backup.js.map +1 -1
  5. package/dist/bin/constants.d.ts +2 -2
  6. package/dist/bin/constants.d.ts.map +1 -1
  7. package/dist/bin/constants.js +1 -1
  8. package/dist/bin/constants.js.map +1 -1
  9. package/dist/bin/copy.d.ts.map +1 -1
  10. package/dist/bin/copy.js.map +1 -1
  11. package/dist/bin/dotfiles.d.ts.map +1 -1
  12. package/dist/bin/dotfiles.js.map +1 -1
  13. package/dist/bin/download.d.ts.map +1 -1
  14. package/dist/bin/download.js.map +1 -1
  15. package/dist/bin/index.js.map +1 -1
  16. package/dist/bin/transfer.d.ts.map +1 -1
  17. package/dist/bin/transfer.js.map +1 -1
  18. package/dist/bin/unpack.d.ts.map +1 -1
  19. package/dist/bin/unpack.js.map +1 -1
  20. package/dist/filesizes.txt +104 -104
  21. package/dist/lib/aliases/default/default.aliases.sh +3 -2
  22. package/dist/lib/aliases/gcloud/gcloud.aliases.sh +119 -118
  23. package/dist/lib/aliases/git/git.aliases.sh +6 -45
  24. package/dist/lib/aliases/heroku/heroku.aliases.sh +677 -675
  25. package/dist/lib/aliases/jekyll/jekyll.aliases.sh +30 -28
  26. package/dist/lib/aliases/pnpm/pnpm.aliases.sh +38 -37
  27. package/dist/lib/aliases/subversion/subversion.aliases.sh +82 -81
  28. package/dist/lib/aliases/tmux/tmux.aliases.sh +3 -2
  29. package/dist/lib/aliases.sh +3 -2
  30. package/dist/lib/configurations/bash/bashrc +4 -3
  31. package/dist/lib/configurations/curl/curlrc +3 -2
  32. package/dist/lib/configurations/default/color.sh +3 -2
  33. package/dist/lib/configurations/default/constants.sh +8 -5
  34. package/dist/lib/configurations/default/editor.sh +3 -2
  35. package/dist/lib/configurations/default/prompt.sh +3 -2
  36. package/dist/lib/configurations/input/inputrc +3 -2
  37. package/dist/lib/configurations/nano/nanorc +3 -2
  38. package/dist/lib/configurations/profile/profile +3 -2
  39. package/dist/lib/configurations/tmux/default +3 -2
  40. package/dist/lib/configurations/tmux/display +3 -2
  41. package/dist/lib/configurations/tmux/linux +3 -2
  42. package/dist/lib/configurations/tmux/navigation +3 -2
  43. package/dist/lib/configurations/tmux/panes +3 -2
  44. package/dist/lib/configurations/tmux/theme +4 -3
  45. package/dist/lib/configurations/tmux/tmux +3 -2
  46. package/dist/lib/configurations/tmux/vi +3 -2
  47. package/dist/lib/configurations/vim/vimrc +1 -1
  48. package/dist/lib/configurations/wget/wgetrc +3 -2
  49. package/dist/lib/configurations/zsh/zshrc +4 -3
  50. package/dist/lib/configurations.sh +3 -2
  51. package/dist/lib/exit.sh +3 -2
  52. package/dist/lib/functions/cdls.sh +3 -2
  53. package/dist/lib/functions/changediskpwd.tmp +5 -5
  54. package/dist/lib/functions/code.tmp +5 -5
  55. package/dist/lib/functions/countdown.tmp +3 -2
  56. package/dist/lib/functions/curlheader.sh +4 -3
  57. package/dist/lib/functions/curltime.sh +7 -6
  58. package/dist/lib/functions/encode64.sh +3 -2
  59. package/dist/lib/functions/environment.sh +4 -4
  60. package/dist/lib/functions/extract.sh +3 -2
  61. package/dist/lib/functions/genpwd.sh +8 -7
  62. package/dist/lib/functions/goto.sh +3 -2
  63. package/dist/lib/functions/hidehiddenfiles.sh +3 -2
  64. package/dist/lib/functions/history-all.tmp +3 -2
  65. package/dist/lib/functions/hostinfo.sh +3 -2
  66. package/dist/lib/functions/hstats.sh +4 -3
  67. package/dist/lib/functions/httpdebug.sh +3 -2
  68. package/dist/lib/functions/keygen.sh +3 -2
  69. package/dist/lib/functions/last.sh +3 -2
  70. package/dist/lib/functions/logout.sh +3 -2
  71. package/dist/lib/functions/lowercase.sh +18 -18
  72. package/dist/lib/functions/macos.sh +16 -16
  73. package/dist/lib/functions/matrix.sh +3 -2
  74. package/dist/lib/functions/mcd.sh +3 -2
  75. package/dist/lib/functions/mount_read_only.sh +3 -2
  76. package/dist/lib/functions/myproc.sh +3 -2
  77. package/dist/lib/functions/prependpath.sh +4 -3
  78. package/dist/lib/functions/print.tmp +3 -2
  79. package/dist/lib/functions/ql.sh +3 -2
  80. package/dist/lib/functions/rd.sh +5 -4
  81. package/dist/lib/functions/remove_disk.sh +4 -3
  82. package/dist/lib/functions/ren.sh +3 -2
  83. package/dist/lib/functions/rm.tmp +3 -2
  84. package/dist/lib/functions/rps.tmp +3 -2
  85. package/dist/lib/functions/showhiddenfiles.sh +3 -2
  86. package/dist/lib/functions/size.sh +3 -2
  87. package/dist/lib/functions/stopwatch.sh +3 -2
  88. package/dist/lib/functions/trash.tmp +3 -2
  89. package/dist/lib/functions/tree.tmp +3 -2
  90. package/dist/lib/functions/uppercase.sh +18 -18
  91. package/dist/lib/functions/uuidgen.tmp +2 -1
  92. package/dist/lib/functions/view-source.sh +4 -4
  93. package/dist/lib/functions/vscode.sh +3 -3
  94. package/dist/lib/functions/whoisport.sh +3 -2
  95. package/dist/lib/functions/zipf.sh +4 -3
  96. package/dist/lib/functions.sh +3 -2
  97. package/dist/lib/history.sh +24 -23
  98. package/dist/lib/paths/ant/ant.paths.sh +3 -2
  99. package/dist/lib/paths/default/default.paths.sh +12 -11
  100. package/dist/lib/paths/homebrew/homebrew.paths.sh +3 -2
  101. package/dist/lib/paths/java/java.paths.sh +3 -2
  102. package/dist/lib/paths/maven/maven.paths.sh +3 -2
  103. package/dist/lib/paths/node/node.paths.sh +3 -2
  104. package/dist/lib/paths/nvm/nvm.paths.sh +3 -2
  105. package/dist/lib/paths/pnpm/pnpm.paths.sh +3 -2
  106. package/dist/lib/paths/python/python.paths.sh +5 -4
  107. package/dist/lib/paths/ruby/ruby.paths.sh +3 -2
  108. package/dist/lib/paths/tmux/tmux.paths.sh +3 -2
  109. package/dist/lib/paths.sh +3 -2
  110. package/dist/scripts/backup.sh +15 -5
  111. package/dist/scripts/banner.sh +3 -2
  112. package/dist/scripts/{assemble.sh β†’ build.sh} +12 -4
  113. package/dist/scripts/clean.sh +3 -2
  114. package/dist/scripts/compile.sh +3 -2
  115. package/dist/scripts/copy.sh +4 -3
  116. package/dist/scripts/dotfiles.sh +3 -2
  117. package/dist/scripts/download.sh +16 -5
  118. package/dist/scripts/help.sh +5 -4
  119. package/dist/scripts/unpack.sh +3 -2
  120. package/package.json +2 -1
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  ## πŸ…²πŸ…ΎπŸ…½πŸ…΅πŸ…ΈπŸ…ΆπŸ†„πŸ†πŸ…°πŸ†ƒπŸ…ΈπŸ…ΎπŸ…½πŸ†‚
package/dist/lib/exit.sh CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # When leaving the console clear the screen to increase privacy
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # Function to combine cd and ls.
@@ -1,18 +1,18 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
-
7
7
  # https://dotfiles.io
8
8
  #
9
9
  # Description: Mac OS X Dotfiles - Simply designed to fit your shell life.
10
10
  #
11
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
11
+ # Made with β™₯ in London, UK by @sebastienrousseau
12
+ # Copyright (c) 2022. All rights reserved
12
13
  # Licensed under the MIT license
13
14
  #
14
15
 
15
-
16
16
  # changediskpwd: Function to change the password on an encrypted disk image
17
17
  # changediskpwd() {
18
18
  # hdiutil chpass "$1"
@@ -1,18 +1,18 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
-
7
7
  # https://dotfiles.io
8
8
  #
9
9
  # Description: Mac OS X Dotfiles - Simply designed to fit your shell life.
10
10
  #
11
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
11
+ # Made with β™₯ in London, UK by @sebastienrousseau
12
+ # Copyright (c) 2022. All rights reserved
12
13
  # Licensed under the MIT license
13
14
  #
14
15
 
15
-
16
16
  # TODO: Fix code function
17
17
  # Add Visual Studio Code (code)
18
18
  # code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $"*" ;}
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # countdown: Function for countdown
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  ## curlheader: Function to return only a specific response header or all response headers for a given URL.
@@ -16,5 +17,5 @@ curlheader() {
16
17
  fi
17
18
  }
18
19
 
19
- alias clh='curlheader' # Alias for curlheader
20
+ alias clh='curlheader' # Alias for curlheader
20
21
  alias crlhd='curlheader' # Alias for curlheader
@@ -1,13 +1,15 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # https://dotfiles.io
7
8
  #
8
9
  # Description: Mac OS X Dotfiles - Simply designed to fit your shell life.
9
10
  #
10
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
11
+ # Made with β™₯ in London, UK by @sebastienrousseau
12
+ # Copyright (c) 2022. All rights reserved
11
13
  # Licensed under the MIT license
12
14
  #
13
15
 
@@ -15,7 +17,7 @@
15
17
  ## get the timings for a curl to a URL
16
18
  ## usage: curltime $url
17
19
  curltime() {
18
- curl -w "\n\
20
+ curl -w "\n\
19
21
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”\n\
20
22
  β”‚Time appconnect: %{time_appconnect}s β”‚\n\
21
23
  β”‚Time connect: %{time_connect}s β”‚\n\
@@ -26,6 +28,5 @@ curl -w "\n\
26
28
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜\n\
27
29
  Time total: %{time_total}s\n\n" -o /dev/null -s "$1"
28
30
  }
29
- alias clh='curlheader' # Alias for curlheader
31
+ alias clh='curlheader' # Alias for curlheader
30
32
  alias crlhd='curlheader' # Alias for curlheader
31
-
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # encode64: Function to encode a string to base64.
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # environment: Function to detect the current environment
7
- environment ()
8
- {
8
+ environment() {
9
9
  # Define a fallback `OS`
10
10
  LOCAL_OS="other"
11
11
 
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # extract: Function to extract most know archives with one command
@@ -1,14 +1,15 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # genpwd: Function to generates a strong random password of 20 characters (similar to Apple)
7
8
  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";
9
+ m=$(openssl rand -base64 32 | cut -c 1-6)
10
+ a=$(openssl rand -base64 32 | cut -c 1-6)
11
+ c=$(openssl rand -base64 32 | cut -c 1-6)
12
+ pwd="$m-$a-$c"
12
13
  echo "[INFO] The password has been copied to the clipboard: $pwd"
13
- echo "$pwd"| pbcopy | pbpaste;
14
+ echo "$pwd" | pbcopy | pbpaste
14
15
  }
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # goto: Function to change to the directory inputed
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # Hide hidden system and dotfile files
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # history-all: Function to display the full view of the history command
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # hostinfo: Function to display useful host related informaton
@@ -1,9 +1,10 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # hstats: Function to display Ze Shell history stats informaton
7
8
  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
9
+ 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
10
  }
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # httpdebug: Function to download a web page and show info on what took time
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # keygen: Function to generates SSH key
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # last: List the modified files within 60 minutes.
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # logout: Function to logout from OS X via the Terminal
@@ -1,28 +1,28 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # lowercase: Function to move filenames or directory names to lowercase
7
- lowercase()
8
- {
8
+ lowercase() {
9
9
  if [[ "$#" != 1 ]]; then
10
10
  echo "[ERROR] The filename or directory name is incorrect." >&2
11
11
  return 1
12
12
  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
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
27
27
  done
28
28
  }
@@ -1,28 +1,29 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # πŸ…ΌπŸ…°πŸ…²πŸ…ΎπŸ†‚ πŸ…ΏπŸ…»πŸ†„πŸ…ΆπŸ…ΈπŸ…½πŸ…Ά πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
7
8
 
8
- alias clds='find . -type f -name "*.DS_Store" -ls -delete' # clds: Recursively delete .DS_Store files.
9
+ alias clds='find . -type f -name "*.DS_Store" -ls -delete' # clds: Recursively delete .DS_Store files.
9
10
  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.
11
+ alias emptytrash='rm -rf ~/.Trash/*' # Empty the Trash on all mounted volumes and the main HDD.
12
+ alias finderHideHidden='defaults write com.apple.finder ShowAllFiles FALSE' # finderHideHidden: Hide hidden files in Finder.
13
+ alias finderShowHidden='defaults write com.apple.finder ShowAllFiles TRUE' # finderShowHidden: Show hidden files in Finder.
14
+ alias iphone='open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app' # iphone: Open the device simulators.
14
15
  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.
16
+ alias ofd='open $PWD' # Open the current directory in a Finder window.
17
+ alias purge='rm -rf ~/library/Developer/Xcode/DerivedData/*' # purge: Purging Xcode DerivedData.
17
18
  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.
19
+ alias vp='diskutil verifyPermissions /' # vp: Verify macOS Permissions.
20
+ alias vv='diskutil verifyvolume /' # vv: Verify macOS Volume.
21
+ alias xcode='open -a xcode' # xcode: Launch XCode app in macOS.
21
22
 
22
23
  # πŸ…ΌπŸ…°πŸ…²πŸ…ΎπŸ†‚ πŸ…ΏπŸ…»πŸ†„πŸ…ΆπŸ…ΈπŸ…½πŸ…Ά πŸ…΅πŸ†„πŸ…½πŸ…²πŸ†ƒπŸ…ΈπŸ…ΎπŸ…½πŸ†‚
23
24
 
24
25
  # Erases purgeable disk space with 0s on the selected disk
25
- freespace(){
26
+ freespace() {
26
27
  if [[ -z "$1" ]]; then
27
28
  echo "Usage: $0 <disk>"
28
29
  echo "Example: $0 /dev/disk1s1"
@@ -38,10 +39,9 @@ freespace(){
38
39
 
39
40
  mp() {
40
41
  # 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 "$@"
42
+ man -w "$@" >/dev/null 2>&1 || man -t "$@" | open -f -a Preview || man "$@"
42
43
  }
43
44
 
44
45
  ql() {
45
- (( $# > 0 )) && qlmanage -p "$*" &>/dev/null &
46
+ (($# > 0)) && qlmanage -p "$*" &>/dev/null &
46
47
  }
47
-
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # matrix: Function to Enable Matrix Effect in the terminal
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # mcd: Function to combine mkdir and cd.
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # mount_read_only: Function to mount a read-only disk image as read-write
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # myproc: Function to list processes owned by an user
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # ----------------------------------------------------------------------------
@@ -13,7 +14,7 @@
13
14
 
14
15
  # prependpath: Prepend $PATH without duplicates
15
16
  prependpath() {
16
- if ! echo "${PATH}" | tr ":" "\n" | grep -qx "$1" ; then
17
+ if ! echo "${PATH}" | tr ":" "\n" | grep -qx "$1"; then
17
18
  PATH="$1:${PATH}"
18
19
  fi
19
20
  }
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # print: Function to display the argument given
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # ql: Function to open any file in MacOS Quicklook Preview
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # rd: Function to remove a directory and its files
@@ -10,6 +11,6 @@ rd() {
10
11
  return 1
11
12
  fi
12
13
  echo "[INFO] The operation completed successfully, directory listing of $1:"
13
- rm -rf "$1" || exit;
14
- ls -lh;
14
+ rm -rf "$1" || exit
15
+ ls -lh
15
16
  }
@@ -1,9 +1,10 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # remove_disk: spin down unneeded disk
7
- remove_disk () {
8
+ remove_disk() {
8
9
  diskutil eject "$1"
9
10
  }
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # ren: Function to rename files extension.
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # rm: Function to make 'rm' move files to the trash
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # Adapted from https://github.com/Ananta-Gupta/Rock-Paper-Scissors
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # Show hidden system and dotfile files
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # size: Function to check a file size
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.459) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.461) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # stopwatch: Function for a stopwatch