@sebastienrousseau/dotfiles 0.2.466 β†’ 0.2.469

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 (184) hide show
  1. package/README.md +19 -15
  2. package/dist/Makefile +126 -43
  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/dotfiles.d.ts +2 -2
  8. package/dist/bin/dotfiles.d.ts.map +1 -1
  9. package/dist/bin/dotfiles.js +1 -2
  10. package/dist/bin/dotfiles.js.map +1 -1
  11. package/dist/bin/download.d.ts +2 -2
  12. package/dist/bin/download.d.ts.map +1 -1
  13. package/dist/bin/download.js +1 -2
  14. package/dist/bin/download.js.map +1 -1
  15. package/dist/bin/index.js +1 -1
  16. package/dist/bin/index.js.map +1 -1
  17. package/dist/filesizes.txt +161 -161
  18. package/dist/lib/README.md +83 -5
  19. package/dist/lib/aliases/README.md +49 -43
  20. package/dist/lib/aliases/archives/README.md +126 -37
  21. package/dist/lib/aliases/archives/archives.aliases.sh +112 -152
  22. package/dist/lib/aliases/cd/README.md +138 -55
  23. package/dist/lib/aliases/cd/cd.aliases.sh +45 -33
  24. package/dist/lib/aliases/chmod/README.md +151 -96
  25. package/dist/lib/aliases/chmod/chmod.aliases.sh +103 -69
  26. package/dist/lib/aliases/clear/README.md +8 -4
  27. package/dist/lib/aliases/clear/clear.aliases.sh +57 -28
  28. package/dist/lib/aliases/configuration/README.md +8 -4
  29. package/dist/lib/aliases/configuration/configuration.aliases.sh +53 -30
  30. package/dist/lib/aliases/default/README.md +8 -4
  31. package/dist/lib/aliases/default/default.aliases.sh +99 -86
  32. package/dist/lib/aliases/dig/README.md +8 -4
  33. package/dist/lib/aliases/dig/dig.aliases.sh +4 -4
  34. package/dist/lib/aliases/disk-usage/README.md +8 -4
  35. package/dist/lib/aliases/disk-usage/du.aliases.sh +2 -2
  36. package/dist/lib/aliases/editor/README.md +8 -4
  37. package/dist/lib/aliases/editor/editor.aliases.sh +4 -4
  38. package/dist/lib/aliases/find/README.md +8 -4
  39. package/dist/lib/aliases/find/find.aliases.sh +4 -4
  40. package/dist/lib/aliases/gcloud/README.md +8 -4
  41. package/dist/lib/aliases/gcloud/gcloud.aliases.sh +4 -4
  42. package/dist/lib/aliases/git/README.md +8 -4
  43. package/dist/lib/aliases/git/git.aliases.sh +3 -3
  44. package/dist/lib/aliases/gnu/README.md +8 -4
  45. package/dist/lib/aliases/gnu/gnucoreutils-aliases.sh +2 -2
  46. package/dist/lib/aliases/heroku/README.md +8 -4
  47. package/dist/lib/aliases/heroku/heroku.aliases.sh +3 -3
  48. package/dist/lib/aliases/interactive/README.md +29 -17
  49. package/dist/lib/aliases/interactive/interactive.aliases.sh +15 -18
  50. package/dist/lib/aliases/list/README.md +118 -25
  51. package/dist/lib/aliases/list/list.aliases.sh +130 -84
  52. package/dist/lib/aliases/macOS/README.md +8 -4
  53. package/dist/lib/aliases/macOS/macos.aliases.sh +3 -3
  54. package/dist/lib/aliases/make/README.md +8 -4
  55. package/dist/lib/aliases/make/make.aliases.sh +3 -3
  56. package/dist/lib/aliases/mkdir/README.md +8 -4
  57. package/dist/lib/aliases/mkdir/mkdir.aliases.sh +3 -3
  58. package/dist/lib/aliases/npm/README.md +8 -4
  59. package/dist/lib/aliases/npm/npm.aliases.sh +3 -3
  60. package/dist/lib/aliases/permission/README.md +8 -4
  61. package/dist/lib/aliases/permission/permission.aliases.sh +3 -3
  62. package/dist/lib/aliases/pnpm/README.md +8 -4
  63. package/dist/lib/aliases/pnpm/pnpm.aliases.sh +3 -3
  64. package/dist/lib/aliases/ps/README.md +8 -4
  65. package/dist/lib/aliases/ps/ps.aliases.sh +3 -3
  66. package/dist/lib/aliases/python/python.aliases.sh +141 -0
  67. package/dist/lib/aliases/rsync/README.md +8 -4
  68. package/dist/lib/aliases/rsync/rsync.aliases.sh +3 -3
  69. package/dist/lib/aliases/rust/README.md +171 -46
  70. package/dist/lib/aliases/rust/rust.aliases.sh +109 -117
  71. package/dist/lib/aliases/subversion/README.md +8 -4
  72. package/dist/lib/aliases/subversion/subversion.aliases.sh +3 -3
  73. package/dist/lib/aliases/sudo/README.md +8 -4
  74. package/dist/lib/aliases/sudo/sudo.aliases.sh +3 -3
  75. package/dist/lib/aliases/tmux/README.md +8 -4
  76. package/dist/lib/aliases/tmux/tmux.aliases.sh +3 -3
  77. package/dist/lib/aliases/update/README.md +8 -4
  78. package/dist/lib/aliases/update/update.aliases.sh +307 -66
  79. package/dist/lib/aliases/uuid/README.md +8 -4
  80. package/dist/lib/aliases/uuid/uuid.aliases.sh +3 -3
  81. package/dist/lib/aliases/wget/README.md +8 -4
  82. package/dist/lib/aliases/wget/wget.aliases.sh +3 -3
  83. package/dist/lib/aliases.sh +42 -12
  84. package/dist/lib/configurations/README.md +8 -4
  85. package/dist/lib/configurations/bash/bashrc +163 -35
  86. package/dist/lib/configurations/curl/curlrc +3 -6
  87. package/dist/lib/configurations/default/color.sh +3 -3
  88. package/dist/lib/configurations/default/constants.sh +4 -4
  89. package/dist/lib/configurations/default/editor.sh +3 -3
  90. package/dist/lib/configurations/default/prompt.sh +20 -11
  91. package/dist/lib/configurations/input/inputrc +3 -3
  92. package/dist/lib/configurations/nano/nanorc +3 -3
  93. package/dist/lib/configurations/profile/profile +3 -3
  94. package/dist/lib/configurations/prompt/prompt.sh +81 -0
  95. package/dist/lib/configurations/tmux/default +3 -3
  96. package/dist/lib/configurations/tmux/display +3 -3
  97. package/dist/lib/configurations/tmux/linux +3 -3
  98. package/dist/lib/configurations/tmux/navigation +3 -3
  99. package/dist/lib/configurations/tmux/panes +3 -3
  100. package/dist/lib/configurations/tmux/theme +4 -4
  101. package/dist/lib/configurations/tmux/tmux +3 -3
  102. package/dist/lib/configurations/vim/vimrc +191 -71
  103. package/dist/lib/configurations/wget/wgetrc +3 -3
  104. package/dist/lib/configurations/zsh/zshrc +11 -12
  105. package/dist/lib/configurations.sh +39 -9
  106. package/dist/lib/functions/README.md +73 -55
  107. package/dist/lib/functions/apihealth.sh +277 -0
  108. package/dist/lib/functions/apilatency.sh +157 -0
  109. package/dist/lib/functions/apiload.sh +165 -0
  110. package/dist/lib/functions/backup.sh +143 -0
  111. package/dist/lib/functions/cdls.sh +52 -6
  112. package/dist/lib/functions/curlheader.sh +66 -10
  113. package/dist/lib/functions/curlstatus.sh +64 -7
  114. package/dist/lib/functions/curltime.sh +56 -14
  115. package/dist/lib/functions/encode64.sh +87 -7
  116. package/dist/lib/functions/environment.sh +65 -25
  117. package/dist/lib/functions/extract.sh +79 -27
  118. package/dist/lib/functions/freespace.sh +55 -9
  119. package/dist/lib/functions/genpwd.sh +93 -29
  120. package/dist/lib/functions/goto.sh +59 -8
  121. package/dist/lib/functions/hexdump.sh +96 -0
  122. package/dist/lib/functions/hiddenfiles.sh +77 -0
  123. package/dist/lib/functions/hostinfo.sh +92 -21
  124. package/dist/lib/functions/hstats.sh +69 -5
  125. package/dist/lib/functions/httpdebug.sh +109 -5
  126. package/dist/lib/functions/kebabcase.sh +61 -0
  127. package/dist/lib/functions/keygen.sh +188 -25
  128. package/dist/lib/functions/last.sh +106 -5
  129. package/dist/lib/functions/logout.sh +114 -6
  130. package/dist/lib/functions/lowercase.sh +49 -17
  131. package/dist/lib/functions/matrix.sh +205 -30
  132. package/dist/lib/functions/mount_read_only.sh +3 -3
  133. package/dist/lib/functions/myproc.sh +3 -3
  134. package/dist/lib/functions/prependpath.sh +3 -3
  135. package/dist/lib/functions/ql.sh +3 -3
  136. package/dist/lib/functions/rd.sh +3 -3
  137. package/dist/lib/functions/remove_disk.sh +3 -3
  138. package/dist/lib/functions/ren.sh +68 -8
  139. package/dist/lib/functions/sentencecase.sh +63 -0
  140. package/dist/lib/functions/showhiddenfiles.sh +3 -3
  141. package/dist/lib/functions/size.sh +6 -5
  142. package/dist/lib/functions/snakecase.sh +61 -0
  143. package/dist/lib/functions/stopwatch.sh +3 -3
  144. package/dist/lib/functions/sysinfo.sh +145 -0
  145. package/dist/lib/functions/titlecase.sh +65 -0
  146. package/dist/lib/functions/uppercase.sh +51 -19
  147. package/dist/lib/functions/view-source.sh +3 -3
  148. package/dist/lib/functions/vscode.sh +3 -3
  149. package/dist/lib/functions/whoisport.sh +3 -3
  150. package/dist/lib/functions/zipf.sh +3 -3
  151. package/dist/lib/functions.sh +41 -10
  152. package/dist/lib/history.sh +68 -83
  153. package/dist/lib/paths/README.md +52 -0
  154. package/dist/lib/paths/custom.paths.sh +40 -0
  155. package/dist/lib/paths/default.paths.sh +37 -0
  156. package/dist/lib/paths.sh +40 -11
  157. package/dist/scripts/backup.sh +3 -3
  158. package/dist/scripts/banner.sh +3 -3
  159. package/dist/scripts/build.sh +3 -3
  160. package/dist/scripts/clean.sh +3 -3
  161. package/dist/scripts/compile.sh +3 -3
  162. package/dist/scripts/copy.sh +3 -3
  163. package/dist/scripts/dotfiles.sh +3 -3
  164. package/dist/scripts/download.sh +3 -3
  165. package/dist/scripts/help.sh +3 -3
  166. package/dist/scripts/ssh.sh +3 -3
  167. package/dist/scripts/unpack.sh +3 -3
  168. package/package.json +10 -9
  169. package/dist/lib/aliases/jekyll/README.md +0 -37
  170. package/dist/lib/aliases/jekyll/jekyll.aliases.sh +0 -54
  171. package/dist/lib/configurations/tmux/vi +0 -9
  172. package/dist/lib/functions/filehead.sh +0 -4
  173. package/dist/lib/functions/hidehiddenfiles.sh +0 -14
  174. package/dist/lib/paths/ant/ant.paths.sh +0 -15
  175. package/dist/lib/paths/default/default.paths.sh +0 -19
  176. package/dist/lib/paths/homebrew/homebrew.paths.sh +0 -27
  177. package/dist/lib/paths/java/java.paths.sh +0 -19
  178. package/dist/lib/paths/maven/maven.paths.sh +0 -18
  179. package/dist/lib/paths/node/node.paths.sh +0 -15
  180. package/dist/lib/paths/nvm/nvm.paths.sh +0 -23
  181. package/dist/lib/paths/pnpm/pnpm.paths.sh +0 -15
  182. package/dist/lib/paths/python/python.paths.sh +0 -36
  183. package/dist/lib/paths/ruby/ruby.paths.sh +0 -25
  184. package/dist/lib/paths/tmux/tmux.paths.sh +0 -12
@@ -1,73 +1,107 @@
1
1
  #!/usr/bin/env bash
2
- # Author: Sebastien Rousseau
3
- # Copyright (c) 2015-2023. All rights reserved
4
- # Description: Sets aliases for the `chmod` command.
2
+
3
+ ################################################################################
4
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ - Change directory aliases
5
+ # Made with β™₯ by Sebastien Rousseau
5
6
  # License: MIT
6
- # Script: chmod.aliases.sh
7
- # Version: 0.2.466
8
- # Website: https://dotfiles.io
9
-
10
- # πŸ…²πŸ…·πŸ…ΌπŸ…ΎπŸ…³ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
11
- if command -v 'chmod' >/dev/null; then
12
-
13
- # Shortcuts to change permissions
14
- alias 000='chmod -R 000' # 000: (chmod a-rwx) sets permissions so that, (U)ser / owner can't read, can't write and can't execute. (G)roup can't read, can't write and can't execute. (O)thers can't read, can't write and can't execute.
15
- alias 400='chmod -R 400' # 400: (chmod a-rw) sets permissions so that, (U)ser / owner can't read, can't write and can execute. (G)roup can't read, can't write and can execute. (O)thers can't read, can't write and can execute.
16
- alias 444='chmod -R 444' # 444: (chmod a-r) sets permissions so that, (U)ser / owner can't read, can't write and can execute. (G)roup can't read, can't write and can execute. (O)thers can't read, can't write and can execute.
17
- alias 600='chmod -R 600' # 600: (chmod a+rwx,u-x,g-rwx,o-rwx) sets permissions so that, (U)ser / owner can read, can write and can't execute. (G)roup can't read, can't write and can't execute. (O)thers can't read, can't write and can't execute.
18
- alias 644='chmod -R 644' # 644: (chmod a+rwx,u-x,g-wx,o-wx) sets permissions so that, (U)ser / owner can read, can write and can't execute. (G)roup can read, can't write and can't execute. (O)thers can read, can't write and can't execute.
19
- alias 666='chmod -R 666' # 666: (chmod a+rwx,u-x,g-x,o-x) sets permissions so that, (U)ser / owner can read, can write and can't execute. (G)roup can read, can write and can't execute. (O)thers can read, can write and can't execute.
20
- alias 755='chmod -R 755' # 755: (chmod a+rwx,g-w,o-w) sets permissions so that, (U)ser / owner can read, can write and can execute. (G)roup can read, can't write and can execute. (O)thers can read, can't write and can execute.
21
- alias 764='chmod -R 764' # 764: (chmod a+rwx,g-x,o-wx) sets permissions so that, (U)ser / owner can read, can write and can execute. (G)roup can read, can write and can't execute. (O)thers can read, can't write and can't execute.
22
- alias 777='chmod -R 777' # 777: (chmod a+rwx) sets permissions so that, (U)ser / owner can read, can write and can execute. (G)roup can read, can write and can execute. (O)thers can read, can write and can execute.
23
-
24
- # Shortcuts to change ownership
25
- alias chgrp='chgrp -v' # chgrp: Change group ownership of files or directories.
26
- alias chgrpr='chgrp -Rv' # chgrpr: Change group ownership of files or directories recursively.
27
- alias chgrpu='chgrp -Rv ${USER}' # chgrpu: Change group ownership of files or directories recursively to the current user.
28
- alias chmod='chmod -v' # chmod: Change file mode bits.
29
- alias chmodr='chmod -Rv' # chmodr: Change file mode bits recursively.
30
- alias chmodu='chmod -Rv u+rwX' # chmodu: Change file mode bits recursively to the current user.
31
- alias chmox='chmod +x' # chmox: Make a file executable.
32
- alias chown='chown -v' # chown: Change file owner and group.
33
- alias chownr='chown -Rv' # chownr: Change file owner and group recursively.
34
- alias chownu='chown -Rv ${USER}' # chownu: Change file owner and group recursively to the current user.
35
-
36
- # Shortcuts to set permissions for specific file types
37
- alias 755d='find . -type d -exec chmod 755 {} \;' # 755d: Set permissions of all directories to rwxr-xr-x.
38
- alias 644f='find . -type f -exec chmod 644 {} \;' # 644f: Set permissions of all files to rw-r--r--.
39
-
40
- # Shortcuts to set permissions for specific user types
41
- alias u+x='chmod u+x' # u+x: Add execute permission for the owner of the file.
42
- alias u-x='chmod u-x' # u-x: Remove execute permission for the owner of the file.
43
- alias u+w='chmod u+w' # u+w: Add write permission for the owner of the file.
44
- alias u-w='chmod u-w' # u-w: Remove write permission for the owner of the file.
45
- alias u+r='chmod u+r' # u+r: Add read permission for the owner of the file.
46
- alias u-r='chmod u-r' # u-r: Remove read permission for the owner of the file.
47
-
48
- alias g+x='chmod g+x' # g+x: Add execute permission for the group owner of the file.
49
- alias g-x='chmod g-x' # g-x: Remove execute permission for the group owner of the file.
50
- alias g+w='chmod g+w' # g+w: Add write permission for the group owner of the file.
51
- alias g-w='chmod g-w' # g-w: Remove write permission for the group owner of the file.
52
- alias g+r='chmod g+r' # g+r: Add read permission for the group owner of the file.
53
- alias g-r='chmod g-r' # g-r: Remove read permission for the group owner of the file.
54
-
55
- alias o+x='chmod o+x' # o+x: Add execute permission for others.
56
- alias o-x='chmod o-x' # o-x: Remove execute permission for others.
57
- alias o+w='chmod o+w' # o+w: Add write permission for others.
58
- alias o-w='chmod o-w' # o-w: Remove write permission for others.
59
- alias o+r='chmod o+r' # o+r: Add read permission for others.
60
- alias o-r='chmod o-r' # o-r: Remove read permission for others.
61
-
62
- # Shortcuts to set permissions based on octal notation
63
- alias 000='chmod 000' # 000: Set permissions to ----------
64
- alias 400='chmod 400' # 400: Set permissions to r--------
65
- alias 444='chmod 444' # 444: Set permissions to r--r--r--
66
- alias 600='chmod 600' # 600: Set permissions to rw-------
67
- alias 644='chmod 644' # 644: Set permissions to rw-r--r--.
68
- alias 664='chmod 664' # 664: Set permissions to rw-rw-r--.
69
- alias 755='chmod 755' # 755: Set permissions to rwxr-xr-x.
70
- alias 775='chmod 775' # 775: Set permissions to rwxrwxr-x.
71
- alias 777='chmod 777' # 777: Set permissions to rwxrwxrwx.
7
+ # Enhanced chmod command aliases with safety features, input validation, and structured organization.
8
+ ################################################################################
9
+
10
+
11
+ # Ensure chmod exists before proceeding
12
+ if command -v chmod >/dev/null; then
13
+
14
+ #-----------------------------------------------------------------------------
15
+ # Function: Validate input
16
+ # Description: Checks permission format and path validity.
17
+ #-----------------------------------------------------------------------------
18
+ validate_input() {
19
+ local permission="$1"
20
+ local path="$2"
21
+
22
+ # Check permission format (e.g., numeric octal: ###)
23
+ if ! [[ ${permission} =~ ^[0-7]{3}$ ]]; then
24
+ echo "Error: Invalid permission format '${permission}'. Expected format: ### (e.g., 644)."
25
+ return 1
26
+ fi
27
+
28
+ # Check if the path exists
29
+ if ! [[ -e "${path}" ]]; then
30
+ echo "Error: Path does not exist: '${path}'."
31
+ return 1
32
+ fi
33
+
34
+ return 0
35
+ }
36
+
37
+ #-----------------------------------------------------------------------------
38
+ # Function: Change permissions
39
+ # Description: Applies chmod with validation and optional recursive handling.
40
+ #-----------------------------------------------------------------------------
41
+ change_permission() {
42
+ local permission="$1"
43
+ local path="$2"
44
+ local recursive="${3:-}"
45
+
46
+ # Validate input
47
+ if ! validate_input "${permission}" "${path}"; then
48
+ return 1
49
+ fi
50
+
51
+ # Handle recursive changes with confirmation
52
+ if [[ "${recursive}" == "-R" ]]; then
53
+ local count
54
+ count=$(find "${path}" 2>/dev/null | wc -l)
55
+ read -rp "Confirm recursive change to '${permission}' for '${path}' (${count} items)? (y/N): " confirm
56
+ if [[ ${confirm} != [yY] ]]; then
57
+ echo "Operation cancelled."
58
+ return 1
59
+ fi
60
+ fi
61
+
62
+ # Apply permissions
63
+ chmod "${recursive}" "${permission}" "${path}" && \
64
+ echo "Permissions set to '${permission}' on '${path}'"
65
+ }
66
+
67
+ #-----------------------------------------------------------------------------
68
+ # Common Permission Aliases
69
+ #-----------------------------------------------------------------------------
70
+ alias chmod_000='change_permission 000' # No permissions
71
+ alias chmod_400='change_permission 400' # Read-only for owner
72
+ alias chmod_444='change_permission 444' # Read-only for all
73
+ alias chmod_600='change_permission 600' # Read/write for owner
74
+ alias chmod_644='change_permission 644' # Read/write for owner, read for others
75
+ alias chmod_666='change_permission 666' # Read/write for all
76
+ alias chmod_755='change_permission 755' # Full for owner, read/execute for others
77
+ alias chmod_764='change_permission 764' # Full for owner, read/write for group
78
+ alias chmod_777='change_permission 777' # Full permissions for all
79
+
80
+ #-----------------------------------------------------------------------------
81
+ # User, Group, and Other Shortcuts
82
+ #-----------------------------------------------------------------------------
83
+ # User
84
+ alias chmod_u+x='chmod u+x' # Add execute for owner
85
+ alias chmod_u-x='chmod u-x' # Remove execute for owner
86
+ alias chmod_u+w='chmod u+w' # Add write for owner
87
+ alias chmod_u-w='chmod u-w' # Remove write for owner
88
+ alias chmod_u+r='chmod u+r' # Add read for owner
89
+ alias chmod_u-r='chmod u-r' # Remove read for owner
90
+
91
+ # Group
92
+ alias chmod_g+x='chmod g+x' # Add execute for group
93
+ alias chmod_g-x='chmod g-x' # Remove execute for group
94
+ alias chmod_g+w='chmod g+w' # Add write for group
95
+ alias chmod_g-w='chmod g-w' # Remove write for group
96
+ alias chmod_g+r='chmod g+r' # Add read for group
97
+ alias chmod_g-r='chmod g-r' # Remove read for group
98
+
99
+ # Others
100
+ alias chmod_o+x='chmod o+x' # Add execute for others
101
+ alias chmod_o-x='chmod o-x' # Remove execute for others
102
+ alias chmod_o+w='chmod o+w' # Add write for others
103
+ alias chmod_o-w='chmod o-w' # Remove write for others
104
+ alias chmod_o+r='chmod o+r' # Add read for others
105
+ alias chmod_o-r='chmod o-r' # Remove read for others
72
106
 
73
107
  fi
@@ -1,11 +1,15 @@
1
- <!-- markdownlint-disable MD033 MD041 -->
1
+ <!-- markdownlint-disable MD033 MD041 MD043 -->
2
2
 
3
- <img src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
4
- alt="dotfiles logo" width="261" align="right" />
3
+ <img
4
+ src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
5
+ alt="dotfiles logo"
6
+ width="66"
7
+ align="right"
8
+ />
5
9
 
6
10
  <!-- markdownlint-enable MD033 MD041 -->
7
11
 
8
- # Dotfiles (v0.2.466)
12
+ # Dotfiles (v0.2.469)
9
13
 
10
14
  Simply designed to fit your shell life 🐚
11
15
 
@@ -1,42 +1,71 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.466) - <https://dotfiles.io>
4
- # Made with β™₯ in London, UK by @wwdseb
5
- # Copyright (c) 2015-2023. All rights reserved
6
- # License: MIT
3
+ ################################################################################
4
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚
7
5
  # Script: clear.aliases.sh
8
- # Version: 0.2.466
6
+ # Version: 0.2.469
7
+ # Author: Sebastien Rousseau
8
+ # Copyright (c) 2015-2025. All rights reserved
9
+ # Description: Enhances terminal interaction with aliases for clearing the screen,
10
+ # navigating directories, and displaying directory contents in an organized manner.
9
11
  # Website: https://dotfiles.io
12
+ # License: MIT
13
+ ################################################################################
10
14
 
11
- # πŸ…²πŸ…»πŸ…΄πŸ…°πŸ† πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
15
+ # Configurable paths
16
+ WORKSPACE_DIR="${HOME}/workspace"
12
17
 
13
- # Alias to change to the workspace directory
14
- alias cdw="cd ~/workspace"
18
+ # Validate directory existence
19
+ function validate_dir() {
20
+ if [[ ! -d "$1" ]]; then
21
+ echo "Directory $1 not found."
22
+ return 1
23
+ fi
24
+ return 0
25
+ }
15
26
 
16
- # Alias to clear the terminal screen
17
- alias c="clear"
27
+ # Functions for aliases
28
+ function cd_workspace() {
29
+ validate_dir "${WORKSPACE_DIR}" && cd "${WORKSPACE_DIR}" || return
30
+ }
18
31
 
19
- # Alias to clear the terminal screen and list the contents of the
20
- # current directory
21
- alias clc="clear && ls -a"
32
+ function clear_screen() {
33
+ clear
34
+ }
22
35
 
23
- # Alias to clear the terminal screen and print the current working
24
- # directory and the contents of the current directory
25
- alias cpl="clear && pwd && echo '' && ls -a && echo ''"
36
+ function clear_list_current() {
37
+ clear && ls -a
38
+ }
26
39
 
27
- # Alias to clear the terminal screen and print the current working
28
- # directory and the directory tree
29
- alias cplt="clear && pwd && echo '' && tree ./ && echo ''"
40
+ function clear_pwd_list() {
41
+ clear && pwd && echo '' && ls -a && echo ''
42
+ }
30
43
 
31
- # Alias to clear the terminal screen and print the command history
32
- alias clh="clear && history"
44
+ function clear_pwd_tree() {
45
+ clear && pwd && echo '' && tree ./ && echo ''
46
+ }
33
47
 
34
- # Alias to clear the terminal screen
35
- alias cl="c"
48
+ function clear_history() {
49
+ clear && history
50
+ }
36
51
 
37
- # Alias to clear the terminal screen and print the current
38
- # working directory
39
- alias clp="pwd"
52
+ function print_working_dir() {
53
+ pwd
54
+ }
55
+
56
+ function clear_print_tree() {
57
+ clear && tree
58
+ }
59
+
60
+ # πŸ…²πŸ…»πŸ…΄πŸ…°πŸ† πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
40
61
 
41
- # Alias to clear the terminal screen and print the directory tree
42
- alias clt="clear && tree"
62
+ # Alias definitions
63
+ alias cdw='cd_workspace'
64
+ alias c='clear_screen'
65
+ alias clc='clear_list_current'
66
+ alias cpl='clear_pwd_list'
67
+ alias cplt='clear_pwd_tree'
68
+ alias clh='clear_history'
69
+ alias cl='clear_screen'
70
+ alias clp='print_working_dir'
71
+ alias clt='clear_print_tree'
@@ -1,11 +1,15 @@
1
- <!-- markdownlint-disable MD033 MD041 -->
1
+ <!-- markdownlint-disable MD033 MD041 MD043 -->
2
2
 
3
- <img src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
4
- alt="dotfiles logo" width="261" align="right" />
3
+ <img
4
+ src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
5
+ alt="dotfiles logo"
6
+ width="66"
7
+ align="right"
8
+ />
5
9
 
6
10
  <!-- markdownlint-enable MD033 MD041 -->
7
11
 
8
- # Dotfiles (v0.2.466)
12
+ # Dotfiles (v0.2.469)
9
13
 
10
14
  Simply designed to fit your shell life 🐚
11
15
 
@@ -1,47 +1,70 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.466) - <https://dotfiles.io>
4
- # Made with β™₯ in London, UK by @wwdseb
5
- # Copyright (c) 2015-2023. All rights reserved
6
- # License: MIT
3
+ ################################################################################
4
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚
7
5
  # Script: configuration.aliases.sh
8
- # Version: 0.2.466
6
+ # Version: 0.2.469
7
+ # Author: Sebastien Rousseau
8
+ # Copyright (c) 2015-2025. All rights reserved
9
+ # Description: Script containing aliases to open configuration files in default
10
+ # editor
9
11
  # Website: https://dotfiles.io
12
+ # License: MIT
13
+ ################################################################################
14
+
15
+ # Set default text editor
16
+ EDITOR="${EDITOR:-vi}"
17
+
18
+ # Apache aliases
19
+ # ------------------------------------------------------------------------------
20
+
21
+ # Open Apache configuration file in default text editor
22
+ alias edit_apache_config='${EDITOR} /etc/apache2/apache2.conf'
23
+
24
+ # Bash aliases
25
+ # ------------------------------------------------------------------------------
26
+
27
+ # Open Bash configuration file in default text editor
28
+ alias edit_bashrc='${EDITOR} $HOME/.bashrc'
29
+
30
+ # Open Bash profile in default text editor
31
+ alias edit_bash_profile='${EDITOR} $HOME/.bash_profile'
10
32
 
11
- # πŸ…²πŸ…ΎπŸ…½πŸ…΅πŸ…ΈπŸ…ΆπŸ†„πŸ†πŸ…°πŸ†ƒπŸ…ΈπŸ…ΎπŸ…½ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
33
+ # Docker aliases
34
+ # ------------------------------------------------------------------------------
12
35
 
13
- # Alias to open the Apache configuration file in the default text editor
14
- alias apconf='${=EDITOR} /etc/apache2/apache2.conf'
36
+ # Open Docker Compose file in default text editor
37
+ alias edit_docker_compose='${EDITOR} docker-compose.yml'
15
38
 
16
- # Alias to open the Bash configuration file in the default text editor
17
- alias bshrc='${=EDITOR} $HOME/.bashrc'
39
+ # General aliases
40
+ # ------------------------------------------------------------------------------
18
41
 
19
- # Alias to open the Bash profile in the default text editor
20
- alias bshp='${=EDITOR} $HOME/.bash_profile'
42
+ # Open current directory in default text editor
43
+ alias edit_current_directory='${EDITOR} .'
21
44
 
22
- # Alias to open the Docker Compose file in the default text editor
23
- alias dockcomp='${=EDITOR} docker-compose.yml'
45
+ # Git aliases
46
+ # ------------------------------------------------------------------------------
24
47
 
25
- # Alias to open the current directory in the default text editor
26
- alias eddir='${=EDITOR} .'
48
+ # Open Git configuration file in default text editor
49
+ alias edit_git_config='${EDITOR} $HOME/.gitconfig'
27
50
 
28
- # Alias to open the Git configuration file in the default text editor
29
- alias gcfg='${=EDITOR} $HOME/.gitconfig'
51
+ # Open Git ignore file in default text editor
52
+ alias edit_git_ignore='${EDITOR} $HOME/.gitignore'
30
53
 
31
- # Alias to open the Git ignore file in the default text editor
32
- alias gign='${=EDITOR} $HOME/.gitignore'
54
+ # System config aliases
55
+ # ------------------------------------------------------------------------------
33
56
 
34
- # Alias to open the hosts file in the default text editor
35
- alias hosts='${=EDITOR} /etc/hosts'
57
+ # Open hosts file in default text editor
58
+ alias edit_hosts='${EDITOR} /etc/hosts'
36
59
 
37
- # Alias to open the Nginx configuration file in the default text editor
38
- alias ngconf='${=EDITOR} /etc/nginx/nginx.conf'
60
+ # Open Nginx configuration file in default text editor
61
+ alias edit_nginx_config='${EDITOR} /etc/nginx/nginx.conf'
39
62
 
40
- # Alias to open the SSH configuration file in the default text editor
41
- alias sshconf='${=EDITOR} $HOME/.ssh/config'
63
+ # Open SSH configuration file in default text editor
64
+ alias edit_ssh_config='${EDITOR} $HOME/.ssh/config'
42
65
 
43
- # Alias to open the Zsh configuration file in the default text editor
44
- alias zshrc='${=EDITOR} $HOME/.zshrc'
66
+ # Open Zsh configuration file in default text editor
67
+ alias edit_zshrc='${EDITOR} $HOME/.zshrc'
45
68
 
46
- # Alias to open the Zsh profile in the default text editor
47
- alias zshp='${=EDITOR} $HOME/.zsh_profile'
69
+ # Open Zsh profile in default text editor
70
+ alias edit_zsh_profile='${EDITOR} $HOME/.zsh_profile'
@@ -1,11 +1,15 @@
1
- <!-- markdownlint-disable MD033 MD041 -->
1
+ <!-- markdownlint-disable MD033 MD041 MD043 -->
2
2
 
3
- <img src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
4
- alt="dotfiles logo" width="261" align="right" />
3
+ <img
4
+ src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
5
+ alt="dotfiles logo"
6
+ width="66"
7
+ align="right"
8
+ />
5
9
 
6
10
  <!-- markdownlint-enable MD033 MD041 -->
7
11
 
8
- # Dotfiles (v0.2.466)
12
+ # Dotfiles (v0.2.469)
9
13
 
10
14
  Simply designed to fit your shell life 🐚
11
15