@sebastienrousseau/dotfiles 0.2.466 β†’ 0.2.468

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 (166) hide show
  1. package/README.md +19 -15
  2. package/dist/Makefile +2 -2
  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/dotfiles.d.ts +2 -2
  7. package/dist/bin/dotfiles.d.ts.map +1 -1
  8. package/dist/bin/dotfiles.js +1 -2
  9. package/dist/bin/dotfiles.js.map +1 -1
  10. package/dist/bin/download.d.ts +2 -2
  11. package/dist/bin/download.d.ts.map +1 -1
  12. package/dist/bin/download.js +1 -2
  13. package/dist/bin/download.js.map +1 -1
  14. package/dist/bin/index.js +1 -1
  15. package/dist/bin/index.js.map +1 -1
  16. package/dist/filesizes.txt +85 -87
  17. package/dist/lib/README.md +9 -5
  18. package/dist/lib/aliases/README.md +8 -4
  19. package/dist/lib/aliases/archives/README.md +29 -26
  20. package/dist/lib/aliases/archives/archives.aliases.sh +148 -145
  21. package/dist/lib/aliases/cd/README.md +46 -44
  22. package/dist/lib/aliases/cd/cd.aliases.sh +63 -29
  23. package/dist/lib/aliases/chmod/README.md +8 -4
  24. package/dist/lib/aliases/chmod/chmod.aliases.sh +60 -42
  25. package/dist/lib/aliases/clear/README.md +8 -4
  26. package/dist/lib/aliases/clear/clear.aliases.sh +57 -28
  27. package/dist/lib/aliases/configuration/README.md +8 -4
  28. package/dist/lib/aliases/configuration/configuration.aliases.sh +56 -30
  29. package/dist/lib/aliases/default/README.md +8 -4
  30. package/dist/lib/aliases/default/default.aliases.sh +99 -86
  31. package/dist/lib/aliases/dig/README.md +8 -4
  32. package/dist/lib/aliases/dig/dig.aliases.sh +3 -3
  33. package/dist/lib/aliases/disk-usage/README.md +8 -4
  34. package/dist/lib/aliases/disk-usage/du.aliases.sh +2 -2
  35. package/dist/lib/aliases/editor/README.md +8 -4
  36. package/dist/lib/aliases/editor/editor.aliases.sh +3 -3
  37. package/dist/lib/aliases/find/README.md +8 -4
  38. package/dist/lib/aliases/find/find.aliases.sh +3 -3
  39. package/dist/lib/aliases/gcloud/README.md +8 -4
  40. package/dist/lib/aliases/gcloud/gcloud.aliases.sh +3 -3
  41. package/dist/lib/aliases/git/README.md +8 -4
  42. package/dist/lib/aliases/git/git.aliases.sh +2 -2
  43. package/dist/lib/aliases/gnu/README.md +8 -4
  44. package/dist/lib/aliases/gnu/gnucoreutils-aliases.sh +1 -1
  45. package/dist/lib/aliases/heroku/README.md +8 -4
  46. package/dist/lib/aliases/heroku/heroku.aliases.sh +2 -2
  47. package/dist/lib/aliases/interactive/README.md +29 -17
  48. package/dist/lib/aliases/interactive/interactive.aliases.sh +14 -17
  49. package/dist/lib/aliases/jekyll/README.md +8 -4
  50. package/dist/lib/aliases/jekyll/jekyll.aliases.sh +3 -3
  51. package/dist/lib/aliases/list/README.md +8 -4
  52. package/dist/lib/aliases/list/list.aliases.sh +2 -2
  53. package/dist/lib/aliases/macOS/README.md +8 -4
  54. package/dist/lib/aliases/macOS/macos.aliases.sh +2 -2
  55. package/dist/lib/aliases/make/README.md +8 -4
  56. package/dist/lib/aliases/make/make.aliases.sh +2 -2
  57. package/dist/lib/aliases/mkdir/README.md +8 -4
  58. package/dist/lib/aliases/mkdir/mkdir.aliases.sh +2 -2
  59. package/dist/lib/aliases/npm/README.md +8 -4
  60. package/dist/lib/aliases/npm/npm.aliases.sh +2 -2
  61. package/dist/lib/aliases/permission/README.md +8 -4
  62. package/dist/lib/aliases/permission/permission.aliases.sh +2 -2
  63. package/dist/lib/aliases/pnpm/README.md +8 -4
  64. package/dist/lib/aliases/pnpm/pnpm.aliases.sh +2 -2
  65. package/dist/lib/aliases/ps/README.md +8 -4
  66. package/dist/lib/aliases/ps/ps.aliases.sh +2 -2
  67. package/dist/lib/aliases/rsync/README.md +8 -4
  68. package/dist/lib/aliases/rsync/rsync.aliases.sh +2 -2
  69. package/dist/lib/aliases/rust/README.md +8 -4
  70. package/dist/lib/aliases/rust/rust.aliases.sh +23 -23
  71. package/dist/lib/aliases/subversion/README.md +8 -4
  72. package/dist/lib/aliases/subversion/subversion.aliases.sh +2 -2
  73. package/dist/lib/aliases/sudo/README.md +8 -4
  74. package/dist/lib/aliases/sudo/sudo.aliases.sh +2 -2
  75. package/dist/lib/aliases/tmux/README.md +8 -4
  76. package/dist/lib/aliases/tmux/tmux.aliases.sh +2 -2
  77. package/dist/lib/aliases/update/README.md +8 -4
  78. package/dist/lib/aliases/update/update.aliases.sh +2 -2
  79. package/dist/lib/aliases/uuid/README.md +8 -4
  80. package/dist/lib/aliases/uuid/uuid.aliases.sh +2 -2
  81. package/dist/lib/aliases/wget/README.md +8 -4
  82. package/dist/lib/aliases/wget/wget.aliases.sh +2 -2
  83. package/dist/lib/aliases.sh +42 -12
  84. package/dist/lib/configurations/README.md +8 -4
  85. package/dist/lib/configurations/bash/bashrc +3 -3
  86. package/dist/lib/configurations/curl/curlrc +2 -2
  87. package/dist/lib/configurations/default/color.sh +2 -2
  88. package/dist/lib/configurations/default/constants.sh +3 -3
  89. package/dist/lib/configurations/default/editor.sh +2 -2
  90. package/dist/lib/configurations/default/prompt.sh +2 -2
  91. package/dist/lib/configurations/input/inputrc +2 -2
  92. package/dist/lib/configurations/nano/nanorc +2 -2
  93. package/dist/lib/configurations/profile/profile +2 -2
  94. package/dist/lib/configurations/tmux/default +2 -2
  95. package/dist/lib/configurations/tmux/display +2 -2
  96. package/dist/lib/configurations/tmux/linux +2 -2
  97. package/dist/lib/configurations/tmux/navigation +2 -2
  98. package/dist/lib/configurations/tmux/panes +2 -2
  99. package/dist/lib/configurations/tmux/theme +3 -3
  100. package/dist/lib/configurations/tmux/tmux +2 -2
  101. package/dist/lib/configurations/vim/vimrc +1 -1
  102. package/dist/lib/configurations/wget/wgetrc +2 -2
  103. package/dist/lib/configurations/zsh/zshrc +11 -11
  104. package/dist/lib/configurations.sh +27 -9
  105. package/dist/lib/functions/README.md +8 -4
  106. package/dist/lib/functions/cdls.sh +2 -2
  107. package/dist/lib/functions/curlheader.sh +2 -2
  108. package/dist/lib/functions/curlstatus.sh +2 -2
  109. package/dist/lib/functions/curltime.sh +3 -3
  110. package/dist/lib/functions/encode64.sh +2 -2
  111. package/dist/lib/functions/environment.sh +2 -2
  112. package/dist/lib/functions/extract.sh +2 -2
  113. package/dist/lib/functions/freespace.sh +2 -2
  114. package/dist/lib/functions/genpwd.sh +4 -4
  115. package/dist/lib/functions/goto.sh +2 -2
  116. package/dist/lib/functions/hidehiddenfiles.sh +2 -2
  117. package/dist/lib/functions/hostinfo.sh +2 -2
  118. package/dist/lib/functions/hstats.sh +2 -2
  119. package/dist/lib/functions/httpdebug.sh +2 -2
  120. package/dist/lib/functions/keygen.sh +2 -2
  121. package/dist/lib/functions/last.sh +2 -2
  122. package/dist/lib/functions/logout.sh +2 -2
  123. package/dist/lib/functions/lowercase.sh +2 -2
  124. package/dist/lib/functions/matrix.sh +2 -2
  125. package/dist/lib/functions/mount_read_only.sh +2 -2
  126. package/dist/lib/functions/myproc.sh +2 -2
  127. package/dist/lib/functions/prependpath.sh +2 -2
  128. package/dist/lib/functions/ql.sh +2 -2
  129. package/dist/lib/functions/rd.sh +2 -2
  130. package/dist/lib/functions/remove_disk.sh +2 -2
  131. package/dist/lib/functions/ren.sh +2 -2
  132. package/dist/lib/functions/showhiddenfiles.sh +2 -2
  133. package/dist/lib/functions/size.sh +2 -2
  134. package/dist/lib/functions/stopwatch.sh +2 -2
  135. package/dist/lib/functions/uppercase.sh +2 -2
  136. package/dist/lib/functions/view-source.sh +2 -2
  137. package/dist/lib/functions/vscode.sh +2 -2
  138. package/dist/lib/functions/whoisport.sh +2 -2
  139. package/dist/lib/functions/zipf.sh +2 -2
  140. package/dist/lib/functions.sh +27 -10
  141. package/dist/lib/history.sh +58 -21
  142. package/dist/lib/paths/ant/ant.paths.sh +2 -2
  143. package/dist/lib/paths/default/default.paths.sh +2 -2
  144. package/dist/lib/paths/homebrew/homebrew.paths.sh +2 -2
  145. package/dist/lib/paths/java/java.paths.sh +2 -2
  146. package/dist/lib/paths/maven/maven.paths.sh +2 -2
  147. package/dist/lib/paths/node/node.paths.sh +2 -2
  148. package/dist/lib/paths/nvm/nvm.paths.sh +2 -2
  149. package/dist/lib/paths/pnpm/pnpm.paths.sh +2 -2
  150. package/dist/lib/paths/python/python.paths.sh +2 -2
  151. package/dist/lib/paths/ruby/ruby.paths.sh +2 -2
  152. package/dist/lib/paths/tmux/tmux.paths.sh +2 -2
  153. package/dist/lib/paths.sh +28 -12
  154. package/dist/scripts/backup.sh +2 -2
  155. package/dist/scripts/banner.sh +2 -2
  156. package/dist/scripts/build.sh +2 -2
  157. package/dist/scripts/clean.sh +2 -2
  158. package/dist/scripts/compile.sh +2 -2
  159. package/dist/scripts/copy.sh +2 -2
  160. package/dist/scripts/dotfiles.sh +2 -2
  161. package/dist/scripts/download.sh +2 -2
  162. package/dist/scripts/help.sh +2 -2
  163. package/dist/scripts/ssh.sh +2 -2
  164. package/dist/scripts/unpack.sh +2 -2
  165. package/package.json +6 -5
  166. package/dist/lib/configurations/tmux/vi +0 -9
@@ -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="261"
7
+ align="right"
8
+ />
5
9
 
6
10
  <!-- markdownlint-enable MD033 MD041 -->
7
11
 
8
- # Dotfiles (v0.2.466)
12
+ # Dotfiles (v0.2.468)
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.468
7
+ # Author: @wwdseb
8
+ # Copyright (c) 2015-2024. 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="261"
7
+ align="right"
8
+ />
5
9
 
6
10
  <!-- markdownlint-enable MD033 MD041 -->
7
11
 
8
- # Dotfiles (v0.2.466)
12
+ # Dotfiles (v0.2.468)
9
13
 
10
14
  Simply designed to fit your shell life 🐚
11
15
 
@@ -1,47 +1,73 @@
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.468
7
+ # Author: @wwdseb
8
+ # Copyright (c) 2015-2024. 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'
32
+
33
+ # Docker aliases
34
+ # ------------------------------------------------------------------------------
10
35
 
11
- # πŸ…²πŸ…ΎπŸ…½πŸ…΅πŸ…ΈπŸ…ΆπŸ†„πŸ†πŸ…°πŸ†ƒπŸ…ΈπŸ…ΎπŸ…½ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
36
+ # Open Docker Compose file in default text editor
37
+ alias edit_docker_compose='${EDITOR} docker-compose.yml'
12
38
 
13
- # Alias to open the Apache configuration file in the default text editor
14
- alias apconf='${=EDITOR} /etc/apache2/apache2.conf'
39
+ # General aliases
40
+ # ------------------------------------------------------------------------------
15
41
 
16
- # Alias to open the Bash configuration file in the default text editor
17
- alias bshrc='${=EDITOR} $HOME/.bashrc'
42
+ # Open current directory in default text editor
43
+ alias edit_current_directory='${EDITOR} .'
18
44
 
19
- # Alias to open the Bash profile in the default text editor
20
- alias bshp='${=EDITOR} $HOME/.bash_profile'
45
+ # Git aliases
46
+ # ------------------------------------------------------------------------------
21
47
 
22
- # Alias to open the Docker Compose file in the default text editor
23
- alias dockcomp='${=EDITOR} docker-compose.yml'
48
+ # Open Git configuration file in default text editor
49
+ alias edit_git_config='${EDITOR} $HOME/.gitconfig'
24
50
 
25
- # Alias to open the current directory in the default text editor
26
- alias eddir='${=EDITOR} .'
51
+ # Open Git ignore file in default text editor
52
+ alias edit_git_ignore='${EDITOR} $HOME/.gitignore'
27
53
 
28
- # Alias to open the Git configuration file in the default text editor
29
- alias gcfg='${=EDITOR} $HOME/.gitconfig'
54
+ # System config aliases
55
+ # ------------------------------------------------------------------------------
30
56
 
31
- # Alias to open the Git ignore file in the default text editor
32
- alias gign='${=EDITOR} $HOME/.gitignore'
57
+ # Open hosts file in default text editor
58
+ alias edit_hosts='${EDITOR} /etc/hosts'
33
59
 
34
- # Alias to open the hosts file in the default text editor
35
- alias hosts='${=EDITOR} /etc/hosts'
60
+ # Open Nginx configuration file in default text editor
61
+ alias edit_nginx_config='${EDITOR} /etc/nginx/nginx.conf'
36
62
 
37
- # Alias to open the Nginx configuration file in the default text editor
38
- alias ngconf='${=EDITOR} /etc/nginx/nginx.conf'
63
+ # Open SSH configuration file in default text editor
64
+ alias edit_ssh_config='${EDITOR} $HOME/.ssh/config'
39
65
 
40
- # Alias to open the SSH configuration file in the default text editor
41
- alias sshconf='${=EDITOR} $HOME/.ssh/config'
66
+ # Open Zsh configuration file in default text editor
67
+ alias edit_zshrc='${EDITOR} $HOME/.zshrc'
42
68
 
43
- # Alias to open the Zsh configuration file in the default text editor
44
- alias zshrc='${=EDITOR} $HOME/.zshrc'
69
+ # Open Zsh profile in default text editor
70
+ alias edit_zsh_profile='${EDITOR} $HOME/.zsh_profile'
45
71
 
46
- # Alias to open the Zsh profile in the default text editor
47
- alias zshp='${=EDITOR} $HOME/.zsh_profile'
72
+ # Add blank lines between groups
73
+ echo -e "\n\n"
@@ -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="261"
7
+ align="right"
8
+ />
5
9
 
6
10
  <!-- markdownlint-enable MD033 MD041 -->
7
11
 
8
- # Dotfiles (v0.2.466)
12
+ # Dotfiles (v0.2.468)
9
13
 
10
14
  Simply designed to fit your shell life 🐚
11
15
 
@@ -1,126 +1,139 @@
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: default.aliases.sh
8
- # Version: 0.2.466
6
+ # Version: 0.2.468
7
+ # Author: @wwdseb
8
+ # Copyright (c) 2015-2024. All rights reserved
9
+ # Description: Script containing default shell aliases
9
10
  # Website: https://dotfiles.io
11
+ # License: MIT
12
+ ################################################################################
10
13
 
11
- # πŸ…³πŸ…΄πŸ…΅πŸ…°πŸ†„πŸ…»πŸ†ƒ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
12
-
13
- ## General aliases
14
-
15
- # Shortcut for the `clear` command.
16
- alias c="clear"
17
-
18
- # Display the current date and time.
19
- alias da='date "+%Y-%m-%d %A %T %Z"'
20
-
21
- # Lists all recently used commands.
22
- alias h='history'
14
+ # Function: set_default_aliases
15
+ #
16
+ # Description:
17
+ # Sets default shell aliases for enhanced shell usage.
18
+ #
19
+ # Arguments:
20
+ # None
21
+ #
22
+ # Notes:
23
+ # - Some aliases are designed for enhanced shell navigation and utility.
24
+ # - Ensure to validate that all aliases work as expected in the bash shell.
23
25
 
24
- # Shortcut for `pwd` which returns working directory name.
25
- alias p='pwd'
26
+ set_default_aliases() {
27
+ fc -W
26
28
 
27
- # Display the $PATH variable on newlines.
28
- alias path='echo ${PATH//:/\\n}'
29
+ ## General aliases
30
+ # Shortcut for the `clear` command.
31
+ alias c="clear"
29
32
 
30
- # Reload the shell.
31
- alias r='reload'
33
+ # Display the current date and time.
34
+ alias da='date "+%Y-%m-%d %A %T %Z"'
32
35
 
33
- # Prints the last 10 lines of a text or log file, and then waits for new
34
- # additions to the file to print it in real time.
35
- alias t='tail -f'
36
+ # Shortcut for `pwd` which returns working directory name.
37
+ alias p='pwd'
36
38
 
37
- # wk: Show the current week number.
38
- alias wk='date +%V'
39
+ # Display the $PATH variable on newlines.
40
+ alias path='echo ${PATH//:/\\n}'
39
41
 
40
- ## Exit/shutdown aliases
42
+ # Reload the shell.
43
+ alias r='reload'
41
44
 
42
- # Shortcut for the `exit` command.
43
- alias ':q'='quit'
45
+ # Prints the last 10 lines of a text or log file, and then waits for new
46
+ # additions to the file to print it in real time.
47
+ alias t='tail -f'
44
48
 
45
- # Shortcut for the `exit` command.
46
- alias bye='quit'
49
+ # Show the current week number.
50
+ alias wk='date +%V'
47
51
 
48
- # Shortcut for the `exit` command.
49
- alias q='quit'
52
+ ## Exit/shutdown aliases
53
+ # Shortcut for the `exit` command.
54
+ alias ':q'='quit'
50
55
 
51
- # Shortcut for the `exit` command.
52
- alias x='quit'
56
+ # Shortcut for the `exit` command.
57
+ alias bye='quit'
53
58
 
54
- # Shortcut for the `exit` command.
55
- alias quit='exit'
59
+ # Shortcut for the `exit` command.
60
+ alias q='quit'
56
61
 
57
- # Shutdown the system.
58
- alias halt='sudo /sbin/halt'
62
+ # Shortcut for the `exit` command.
63
+ alias x='quit'
59
64
 
60
- # Poweroff the system.
61
- alias poweroff='sudo /sbin/shutdown'
65
+ # Shortcut for the `exit` command.
66
+ alias quit='exit'
62
67
 
63
- # Reboot the system.
64
- alias reboot='sudo /sbin/reboot'
68
+ # Shutdown the system.
69
+ alias halt='sudo /sbin/halt'
65
70
 
66
- ## Network aliases
71
+ # Alias to list recent commands
72
+ alias h='dotfiles_history'
67
73
 
68
- # Append sudo to ifconfig (configure network interface parameters)
69
- # command.
70
- alias ifconfig='sudo ifconfig'
74
+ # Alias to view history
75
+ alias history='dotfiles_history'
71
76
 
72
- # Get network interface parameters for en0.
73
- alias ipinfo='ipconfig getpacket en0'
77
+ # Poweroff the system.
78
+ alias poweroff='sudo /sbin/shutdown'
74
79
 
75
- # Show only active network listeners.
76
- alias nls='sudo lsof -i -P | grep LISTEN'
80
+ # Reboot the system.
81
+ alias reboot='sudo /sbin/reboot'
77
82
 
78
- # List of open ports.
79
- alias op='sudo lsof -i -P'
83
+ ## Network aliases
84
+ # Append sudo to ifconfig (configure network interface parameters)
85
+ # command.
86
+ alias ifconfig='sudo ifconfig'
80
87
 
81
- # Limit Ping to 5 ECHO_REQUEST packets.
82
- alias ping='ping -c 5'
88
+ # Get network interface parameters for en0.
89
+ alias ipinfo='ipconfig getpacket en0'
83
90
 
84
- # List all listening ports.
85
- alias ports='netstat -tulan'
91
+ # Show only active network listeners.
92
+ alias nls='sudo lsof -i -P | grep LISTEN'
86
93
 
87
- # Start a simple HTTP server.
88
- alias srv='python3 -m http.server'
94
+ # List of open ports.
95
+ alias op='sudo lsof -i -P'
89
96
 
90
- ## System monitoring aliases
97
+ # Limit Ping to 5 ECHO_REQUEST packets.
98
+ alias ping='ping -c 5'
91
99
 
92
- # Get the moon phase.
93
- alias moon='curl -s "wttr.in/?format=%m"'
100
+ # List all listening ports.
101
+ alias ports='netstat -tulan'
94
102
 
95
- # Allows the user to interactively monitor the system's vital resources
96
- # or server's processes in real time.
97
- alias top='sudo btop'
103
+ # Start a simple HTTP server to serve the current directory on port 8000.
104
+ alias srv='python3 -m http.server 8000 --bind 127.0.0.1'
98
105
 
99
- # Remove all log files in /private/var/log/asl/.
100
- alias spd='sudo rm -rf /private/var/log/asl/*'
106
+ ## System monitoring aliases
107
+ # Allows the user to interactively monitor the system's vital resources
108
+ # or server's processes in real time.
109
+ alias top='sudo btop'
101
110
 
102
- ## Utility aliases
111
+ # Remove all log files in /private/var/log/asl/.
112
+ alias spd='sudo rm -rf /private/var/log/asl/*'
103
113
 
104
- # Count the number of files in the current directory.
105
- alias ctf='echo $(ls -1 | wc -l)'
114
+ ## Utility aliases
115
+ # Count the number of files in the current directory.
116
+ alias ctf='echo $(ls -1 | wc -l)'
106
117
 
107
- # Use compression when transferring data.
108
- alias curl='curl --compressed'
118
+ # Use compression when transferring data.
119
+ alias curl='curl --compressed'
109
120
 
110
- # Quickly search for file.
111
- alias qfind='find . -name '
121
+ # Quickly search for file.
122
+ alias qfind='find . -name '
112
123
 
113
- # Reload the shell.
114
- alias reload='exec $SHELL -l'
124
+ # Reload the shell.
125
+ alias reload='exec $SHELL -l'
115
126
 
116
- # Get the weather.
117
- alias wth='curl -s "wttr.in/?format=3"'
127
+ # Get the weather.
128
+ alias wth='curl -s "wttr.in/?format=3"'
118
129
 
119
- # File system navigation aliases
130
+ ## File system navigation aliases
131
+ # Clear the terminal screen and print the contents of the current
132
+ # directory.
133
+ alias clc='clear && ls -a'
120
134
 
121
- # Clear the terminal screen and print the contents of the current
122
- # directory.
123
- alias clc='clear && ls -a'
135
+ # Clear the terminal screen and print
136
+ alias clp='pwd'
137
+ }
124
138
 
125
- # Clear the terminal screen and print
126
- alias clp='pwd'
139
+ set_default_aliases
@@ -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="261"
7
+ align="right"
8
+ />
5
9
 
6
10
  <!-- markdownlint-enable MD033 MD041 -->
7
11
 
8
- # Dotfiles (v0.2.466)
12
+ # Dotfiles (v0.2.468)
9
13
 
10
14
  Simply designed to fit your shell life 🐚
11
15
 
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.466) - <https://dotfiles.io>
3
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.468) - <https://dotfiles.io>
4
4
  # Made with β™₯ in London, UK by @wwdseb
5
- # Copyright (c) 2015-2023. All rights reserved
5
+ # Copyright (c) 2015-2024. All rights reserved
6
6
  # License: MIT
7
7
  # Script: dig.aliases.sh
8
- # Version: 0.2.466
8
+ # Version: 0.2.468
9
9
  # Website: https://dotfiles.io
10
10
 
11
11
  # πŸ…³πŸ…ΈπŸ…Ά πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
@@ -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="261"
7
+ align="right"
8
+ />
5
9
 
6
10
  <!-- markdownlint-enable MD033 MD041 -->
7
11
 
8
- # Dotfiles (v0.2.466)
12
+ # Dotfiles (v0.2.468)
9
13
 
10
14
  Simply designed to fit your shell life 🐚
11
15
 
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
3
  # Author: Sebastien Rousseau
4
- # Copyright (c) 2015-2023. All rights reserved
4
+ # Copyright (c) 2015-2024. All rights reserved
5
5
  # Description: Sets Disk Usage Aliases
6
6
  # License: MIT
7
7
  # Script: du.aliases.sh
8
- # Version: 0.2.466
8
+ # Version: 0.2.468
9
9
  # Website: https://dotfiles.io
10
10
 
11
11
  # πŸ…³πŸ…ΈπŸ†‚πŸ…Ί πŸ†„πŸ†‚πŸ…°πŸ…ΆπŸ…΄ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
@@ -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="261"
7
+ align="right"
8
+ />
5
9
 
6
10
  <!-- markdownlint-enable MD033 MD041 -->
7
11
 
8
- # Dotfiles (v0.2.466)
12
+ # Dotfiles (v0.2.468)
9
13
 
10
14
  Simply designed to fit your shell life 🐚
11
15
 
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.466) - <https://dotfiles.io>
3
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.468) - <https://dotfiles.io>
4
4
  # Made with β™₯ in London, UK by @wwdseb
5
- # Copyright (c) 2015-2023. All rights reserved
5
+ # Copyright (c) 2015-2024. All rights reserved
6
6
  # License: MIT
7
7
  # Script: editor.aliases.sh
8
- # Version: 0.2.466
8
+ # Version: 0.2.468
9
9
  # Website: https://dotfiles.io
10
10
 
11
11
  # πŸ…΄πŸ…³πŸ…ΈπŸ†ƒπŸ…ΎπŸ† πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
@@ -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="261"
7
+ align="right"
8
+ />
5
9
 
6
10
  <!-- markdownlint-enable MD033 MD041 -->
7
11
 
8
- # Dotfiles (v0.2.466)
12
+ # Dotfiles (v0.2.468)
9
13
 
10
14
  Simply designed to fit your shell life 🐚
11
15
 
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.466) - <https://dotfiles.io>
3
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.468) - <https://dotfiles.io>
4
4
  # Made with β™₯ in London, UK by @wwdseb
5
- # Copyright (c) 2015-2023. All rights reserved
5
+ # Copyright (c) 2015-2024. All rights reserved
6
6
  # License: MIT
7
7
  # Script: find.aliases.sh
8
- # Version: 0.2.466
8
+ # Version: 0.2.468
9
9
  # Website: https://dotfiles.io
10
10
 
11
11
  # πŸ…΅πŸ…ΈπŸ…½πŸ…³ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚