@sebastienrousseau/dotfiles 0.2.469 → 0.2.499

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 (221) hide show
  1. package/docs/ARCHITECTURE.md +62 -0
  2. package/docs/COMPLIANCE.md +47 -0
  3. package/docs/COPYRIGHT +6 -0
  4. package/docs/OPERATIONS.md +103 -0
  5. package/docs/PLAN.md +161 -0
  6. package/docs/PR_DESCRIPTION.md +150 -0
  7. package/docs/ROADMAP.md +148 -0
  8. package/docs/ROADMAP_legacy.md +556 -0
  9. package/docs/SECURITY_CHECKLIST.md +25 -0
  10. package/docs/TASK.md +99 -0
  11. package/docs/WALKTHROUGH.md +46 -0
  12. package/package.json +64 -76
  13. package/scripts/backup.sh +142 -0
  14. package/{dist/scripts → scripts}/banner.sh +1 -1
  15. package/scripts/benchmark.sh +20 -0
  16. package/{dist/scripts → scripts}/build.sh +1 -1
  17. package/{dist/scripts → scripts}/clean.sh +1 -1
  18. package/{dist/scripts → scripts}/compile.sh +1 -1
  19. package/{dist/scripts → scripts}/copy.sh +1 -1
  20. package/scripts/detect-collisions.py +84 -0
  21. package/scripts/doctor.sh +79 -0
  22. package/{dist/scripts → scripts}/dotfiles.sh +1 -1
  23. package/{dist/scripts → scripts}/download.sh +1 -1
  24. package/{dist/scripts → scripts}/help.sh +1 -1
  25. package/scripts/lock-configs.sh +57 -0
  26. package/scripts/package.sh +46 -0
  27. package/{dist/scripts → scripts}/ssh.sh +1 -1
  28. package/scripts/teleport.sh +23 -0
  29. package/scripts/test-aliases.sh +25 -0
  30. package/scripts/test_smoke.sh +88 -0
  31. package/{dist/scripts → scripts}/unpack.sh +1 -1
  32. package/scripts/verify_state.sh +60 -0
  33. package/templates/projects/go/README.md +3 -0
  34. package/templates/projects/go/cmd/__PROJECT_NAME__/main.go +7 -0
  35. package/templates/projects/go/go.mod +3 -0
  36. package/templates/projects/node/README.md +3 -0
  37. package/templates/projects/node/package.json +10 -0
  38. package/templates/projects/node/src/index.js +2 -0
  39. package/templates/projects/python/README.md +3 -0
  40. package/templates/projects/python/pyproject.toml +10 -0
  41. package/templates/projects/python/src/__PROJECT_NAME__/__init__.py +1 -0
  42. package/templates/projects/python/tests/test_basic.py +2 -0
  43. package/LICENSE +0 -1283
  44. package/README.md +0 -398
  45. package/dist/Makefile +0 -140
  46. package/dist/bin/backup.d.ts +0 -3
  47. package/dist/bin/backup.d.ts.map +0 -1
  48. package/dist/bin/backup.js +0 -4
  49. package/dist/bin/backup.js.map +0 -1
  50. package/dist/bin/constants.d.ts +0 -7
  51. package/dist/bin/constants.d.ts.map +0 -1
  52. package/dist/bin/constants.js +0 -2
  53. package/dist/bin/constants.js.map +0 -1
  54. package/dist/bin/copy.d.ts +0 -3
  55. package/dist/bin/copy.d.ts.map +0 -1
  56. package/dist/bin/copy.js +0 -3
  57. package/dist/bin/copy.js.map +0 -1
  58. package/dist/bin/dotfiles.d.ts +0 -3
  59. package/dist/bin/dotfiles.d.ts.map +0 -1
  60. package/dist/bin/dotfiles.js +0 -2
  61. package/dist/bin/dotfiles.js.map +0 -1
  62. package/dist/bin/download.d.ts +0 -3
  63. package/dist/bin/download.d.ts.map +0 -1
  64. package/dist/bin/download.js +0 -2
  65. package/dist/bin/download.js.map +0 -1
  66. package/dist/bin/index.d.ts +0 -2
  67. package/dist/bin/index.d.ts.map +0 -1
  68. package/dist/bin/index.js +0 -1
  69. package/dist/bin/index.js.map +0 -1
  70. package/dist/bin/transfer.d.ts +0 -3
  71. package/dist/bin/transfer.d.ts.map +0 -1
  72. package/dist/bin/transfer.js +0 -4
  73. package/dist/bin/transfer.js.map +0 -1
  74. package/dist/bin/unpack.d.ts +0 -3
  75. package/dist/bin/unpack.d.ts.map +0 -1
  76. package/dist/bin/unpack.js +0 -3
  77. package/dist/bin/unpack.js.map +0 -1
  78. package/dist/filesizes.txt +0 -382
  79. package/dist/lib/README.md +0 -86
  80. package/dist/lib/aliases/README.md +0 -57
  81. package/dist/lib/aliases/archives/README.md +0 -145
  82. package/dist/lib/aliases/archives/archives.aliases.sh +0 -114
  83. package/dist/lib/aliases/cd/README.md +0 -146
  84. package/dist/lib/aliases/cd/cd.aliases.sh +0 -51
  85. package/dist/lib/aliases/chmod/README.md +0 -160
  86. package/dist/lib/aliases/chmod/chmod.aliases.sh +0 -107
  87. package/dist/lib/aliases/clear/README.md +0 -37
  88. package/dist/lib/aliases/clear/clear.aliases.sh +0 -71
  89. package/dist/lib/aliases/configuration/README.md +0 -39
  90. package/dist/lib/aliases/configuration/configuration.aliases.sh +0 -70
  91. package/dist/lib/aliases/default/README.md +0 -40
  92. package/dist/lib/aliases/default/default.aliases.sh +0 -139
  93. package/dist/lib/aliases/dig/README.md +0 -37
  94. package/dist/lib/aliases/dig/dig.aliases.sh +0 -43
  95. package/dist/lib/aliases/disk-usage/README.md +0 -36
  96. package/dist/lib/aliases/disk-usage/du.aliases.sh +0 -84
  97. package/dist/lib/aliases/editor/README.md +0 -53
  98. package/dist/lib/aliases/editor/editor.aliases.sh +0 -26
  99. package/dist/lib/aliases/find/README.md +0 -46
  100. package/dist/lib/aliases/find/find.aliases.sh +0 -60
  101. package/dist/lib/aliases/gcloud/README.md +0 -63
  102. package/dist/lib/aliases/gcloud/gcloud.aliases.sh +0 -335
  103. package/dist/lib/aliases/git/README.md +0 -153
  104. package/dist/lib/aliases/git/git.aliases.sh +0 -544
  105. package/dist/lib/aliases/gnu/README.md +0 -89
  106. package/dist/lib/aliases/gnu/gnucoreutils-aliases.sh +0 -150
  107. package/dist/lib/aliases/heroku/README.md +0 -430
  108. package/dist/lib/aliases/heroku/heroku.aliases.sh +0 -1053
  109. package/dist/lib/aliases/interactive/README.md +0 -55
  110. package/dist/lib/aliases/interactive/interactive.aliases.sh +0 -50
  111. package/dist/lib/aliases/list/README.md +0 -131
  112. package/dist/lib/aliases/list/list.aliases.sh +0 -132
  113. package/dist/lib/aliases/macOS/README.md +0 -42
  114. package/dist/lib/aliases/macOS/macos.aliases.sh +0 -65
  115. package/dist/lib/aliases/make/README.md +0 -32
  116. package/dist/lib/aliases/make/make.aliases.sh +0 -35
  117. package/dist/lib/aliases/mkdir/README.md +0 -30
  118. package/dist/lib/aliases/mkdir/mkdir.aliases.sh +0 -29
  119. package/dist/lib/aliases/npm/README.md +0 -41
  120. package/dist/lib/aliases/npm/npm.aliases.sh +0 -61
  121. package/dist/lib/aliases/permission/README.md +0 -47
  122. package/dist/lib/aliases/permission/permission.aliases.sh +0 -73
  123. package/dist/lib/aliases/pnpm/README.md +0 -53
  124. package/dist/lib/aliases/pnpm/pnpm.aliases.sh +0 -76
  125. package/dist/lib/aliases/ps/README.md +0 -29
  126. package/dist/lib/aliases/ps/ps.aliases.sh +0 -20
  127. package/dist/lib/aliases/python/python.aliases.sh +0 -141
  128. package/dist/lib/aliases/rsync/README.md +0 -25
  129. package/dist/lib/aliases/rsync/rsync.aliases.sh +0 -17
  130. package/dist/lib/aliases/rust/README.md +0 -182
  131. package/dist/lib/aliases/rust/rust.aliases.sh +0 -119
  132. package/dist/lib/aliases/subversion/README.md +0 -66
  133. package/dist/lib/aliases/subversion/subversion.aliases.sh +0 -47
  134. package/dist/lib/aliases/sudo/README.md +0 -27
  135. package/dist/lib/aliases/sudo/sudo.aliases.sh +0 -20
  136. package/dist/lib/aliases/tmux/README.md +0 -31
  137. package/dist/lib/aliases/tmux/tmux.aliases.sh +0 -36
  138. package/dist/lib/aliases/update/README.md +0 -38
  139. package/dist/lib/aliases/update/update.aliases.sh +0 -310
  140. package/dist/lib/aliases/uuid/README.md +0 -24
  141. package/dist/lib/aliases/uuid/uuid.aliases.sh +0 -19
  142. package/dist/lib/aliases/wget/README.md +0 -27
  143. package/dist/lib/aliases/wget/wget.aliases.sh +0 -22
  144. package/dist/lib/aliases.sh +0 -50
  145. package/dist/lib/configurations/README.md +0 -18
  146. package/dist/lib/configurations/bash/bashrc +0 -167
  147. package/dist/lib/configurations/curl/cacert.pem +0 -3460
  148. package/dist/lib/configurations/curl/curlrc +0 -53
  149. package/dist/lib/configurations/default/color.sh +0 -24
  150. package/dist/lib/configurations/default/constants.sh +0 -43
  151. package/dist/lib/configurations/default/editor.sh +0 -18
  152. package/dist/lib/configurations/default/prompt.sh +0 -48
  153. package/dist/lib/configurations/gem/gemrc +0 -9
  154. package/dist/lib/configurations/input/inputrc +0 -23
  155. package/dist/lib/configurations/jshint/jshintrc +0 -37
  156. package/dist/lib/configurations/nano/nanorc +0 -35
  157. package/dist/lib/configurations/profile/profile +0 -37
  158. package/dist/lib/configurations/prompt/prompt.sh +0 -81
  159. package/dist/lib/configurations/tmux/default +0 -18
  160. package/dist/lib/configurations/tmux/display +0 -30
  161. package/dist/lib/configurations/tmux/linux +0 -18
  162. package/dist/lib/configurations/tmux/navigation +0 -30
  163. package/dist/lib/configurations/tmux/panes +0 -10
  164. package/dist/lib/configurations/tmux/theme +0 -29
  165. package/dist/lib/configurations/tmux/tmux +0 -21
  166. package/dist/lib/configurations/vim/vimrc +0 -193
  167. package/dist/lib/configurations/wget/wgetrc +0 -40
  168. package/dist/lib/configurations/zsh/zshrc +0 -50
  169. package/dist/lib/configurations.sh +0 -45
  170. package/dist/lib/functions/README.md +0 -92
  171. package/dist/lib/functions/apihealth.sh +0 -277
  172. package/dist/lib/functions/apilatency.sh +0 -157
  173. package/dist/lib/functions/apiload.sh +0 -165
  174. package/dist/lib/functions/backup.sh +0 -143
  175. package/dist/lib/functions/cdls.sh +0 -60
  176. package/dist/lib/functions/curlheader.sh +0 -78
  177. package/dist/lib/functions/curlstatus.sh +0 -74
  178. package/dist/lib/functions/curltime.sh +0 -75
  179. package/dist/lib/functions/encode64.sh +0 -107
  180. package/dist/lib/functions/environment.sh +0 -78
  181. package/dist/lib/functions/extract.sh +0 -86
  182. package/dist/lib/functions/freespace.sh +0 -67
  183. package/dist/lib/functions/genpwd.sh +0 -105
  184. package/dist/lib/functions/goto.sh +0 -67
  185. package/dist/lib/functions/hexdump.sh +0 -96
  186. package/dist/lib/functions/hiddenfiles.sh +0 -77
  187. package/dist/lib/functions/hostinfo.sh +0 -98
  188. package/dist/lib/functions/hstats.sh +0 -75
  189. package/dist/lib/functions/httpdebug.sh +0 -113
  190. package/dist/lib/functions/kebabcase.sh +0 -61
  191. package/dist/lib/functions/keygen.sh +0 -194
  192. package/dist/lib/functions/last.sh +0 -112
  193. package/dist/lib/functions/logout.sh +0 -120
  194. package/dist/lib/functions/lowercase.sh +0 -61
  195. package/dist/lib/functions/matrix.sh +0 -216
  196. package/dist/lib/functions/mount_read_only.sh +0 -11
  197. package/dist/lib/functions/myproc.sh +0 -9
  198. package/dist/lib/functions/prependpath.sh +0 -21
  199. package/dist/lib/functions/ql.sh +0 -9
  200. package/dist/lib/functions/rd.sh +0 -17
  201. package/dist/lib/functions/remove_disk.sh +0 -11
  202. package/dist/lib/functions/ren.sh +0 -73
  203. package/dist/lib/functions/sentencecase.sh +0 -63
  204. package/dist/lib/functions/showhiddenfiles.sh +0 -14
  205. package/dist/lib/functions/size.sh +0 -16
  206. package/dist/lib/functions/snakecase.sh +0 -61
  207. package/dist/lib/functions/stopwatch.sh +0 -15
  208. package/dist/lib/functions/sysinfo.sh +0 -145
  209. package/dist/lib/functions/titlecase.sh +0 -65
  210. package/dist/lib/functions/uppercase.sh +0 -61
  211. package/dist/lib/functions/view-source.sh +0 -9
  212. package/dist/lib/functions/vscode.sh +0 -32
  213. package/dist/lib/functions/whoisport.sh +0 -14
  214. package/dist/lib/functions/zipf.sh +0 -16
  215. package/dist/lib/functions.sh +0 -46
  216. package/dist/lib/history.sh +0 -90
  217. package/dist/lib/paths/README.md +0 -52
  218. package/dist/lib/paths/custom.paths.sh +0 -40
  219. package/dist/lib/paths/default.paths.sh +0 -37
  220. package/dist/lib/paths.sh +0 -46
  221. package/dist/scripts/backup.sh +0 -95
@@ -1,107 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- ################################################################################
4
- # 🅳🅾🆃🅵🅸🅻🅴🆂 - Change directory aliases
5
- # Made with ♥ by Sebastien Rousseau
6
- # License: MIT
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
106
-
107
- fi
@@ -1,37 +0,0 @@
1
- <!-- markdownlint-disable MD033 MD041 MD043 -->
2
-
3
- <img
4
- src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
5
- alt="dotfiles logo"
6
- width="66"
7
- align="right"
8
- />
9
-
10
- <!-- markdownlint-enable MD033 MD041 -->
11
-
12
- # Dotfiles (v0.2.469)
13
-
14
- Simply designed to fit your shell life 🐚
15
-
16
- ![Dotfiles banner][banner]
17
-
18
- ## 🅲🅻🅴🅰🆁 🅰🅻🅸🅰🆂🅴🆂
19
-
20
- This code provides a set of command aliases to make working with the
21
- terminal easier and more efficient. The following aliases are included:
22
-
23
- - `c` clears the terminal screen.
24
- - `cdw` changes the current directory to the workspace directory.
25
- - `cl` is an alias for `c`, which clears the terminal screen.
26
- - `clc` clears the terminal screen and lists the contents of the current
27
- directory.
28
- - `clh` clears the terminal screen and prints the command history.
29
- - `clp` clears the terminal screen and prints the current working
30
- directory.
31
- - `clt` clears the terminal screen and prints the directory tree.
32
- - `cpl` clears the terminal screen and prints the current working
33
- directory and the contents of the current directory.
34
- - `cplt` clears the terminal screen and prints the current working
35
- directory and the directory tree.
36
-
37
- [banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
@@ -1,71 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- ################################################################################
4
- # 🅳🅾🆃🅵🅸🅻🅴🆂
5
- # Script: clear.aliases.sh
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.
11
- # Website: https://dotfiles.io
12
- # License: MIT
13
- ################################################################################
14
-
15
- # Configurable paths
16
- WORKSPACE_DIR="${HOME}/workspace"
17
-
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
- }
26
-
27
- # Functions for aliases
28
- function cd_workspace() {
29
- validate_dir "${WORKSPACE_DIR}" && cd "${WORKSPACE_DIR}" || return
30
- }
31
-
32
- function clear_screen() {
33
- clear
34
- }
35
-
36
- function clear_list_current() {
37
- clear && ls -a
38
- }
39
-
40
- function clear_pwd_list() {
41
- clear && pwd && echo '' && ls -a && echo ''
42
- }
43
-
44
- function clear_pwd_tree() {
45
- clear && pwd && echo '' && tree ./ && echo ''
46
- }
47
-
48
- function clear_history() {
49
- clear && history
50
- }
51
-
52
- function print_working_dir() {
53
- pwd
54
- }
55
-
56
- function clear_print_tree() {
57
- clear && tree
58
- }
59
-
60
- # 🅲🅻🅴🅰🆁 🅰🅻🅸🅰🆂🅴🆂
61
-
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,39 +0,0 @@
1
- <!-- markdownlint-disable MD033 MD041 MD043 -->
2
-
3
- <img
4
- src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
5
- alt="dotfiles logo"
6
- width="66"
7
- align="right"
8
- />
9
-
10
- <!-- markdownlint-enable MD033 MD041 -->
11
-
12
- # Dotfiles (v0.2.469)
13
-
14
- Simply designed to fit your shell life 🐚
15
-
16
- ![Dotfiles banner][banner]
17
-
18
- ## 🅲🅾🅽🅵🅸🅶🆄🆁🅰🆃🅸🅾🅽 🅰🅻🅸🅰🆂🅴🆂
19
-
20
- This code provides a set of command aliases to open important
21
- configuration files in default text editors quickly and easily. The
22
- following aliases are included:
23
-
24
- - `apconf` opens the Apache configuration file in the default text
25
- editor.
26
- - `bshrc` opens the Bash configuration file in the default text editor.
27
- - `bshp` opens the Bash profile in the default text editor.
28
- - `dockcomp` opens the Docker Compose file in the default text editor.
29
- - `eddir` opens the current directory in the default text editor.
30
- - `gcfg` opens the Git configuration file in the default text editor.
31
- - `gign` opens the Git ignore file in the default text editor.
32
- - `hosts` opens the hosts file in the default text editor.
33
- - `ngconf` opens the Nginx configuration file in the default text
34
- editor.
35
- - `sshconf` opens the SSH configuration file in the default text editor.
36
- - `zshrc` opens the Zsh configuration file in the default text editor.
37
- - `zshp` opens the Zsh profile in the default text editor.
38
-
39
- [banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
@@ -1,70 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- ################################################################################
4
- # 🅳🅾🆃🅵🅸🅻🅴🆂
5
- # Script: configuration.aliases.sh
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
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
- # ------------------------------------------------------------------------------
35
-
36
- # Open Docker Compose file in default text editor
37
- alias edit_docker_compose='${EDITOR} docker-compose.yml'
38
-
39
- # General aliases
40
- # ------------------------------------------------------------------------------
41
-
42
- # Open current directory in default text editor
43
- alias edit_current_directory='${EDITOR} .'
44
-
45
- # Git aliases
46
- # ------------------------------------------------------------------------------
47
-
48
- # Open Git configuration file in default text editor
49
- alias edit_git_config='${EDITOR} $HOME/.gitconfig'
50
-
51
- # Open Git ignore file in default text editor
52
- alias edit_git_ignore='${EDITOR} $HOME/.gitignore'
53
-
54
- # System config aliases
55
- # ------------------------------------------------------------------------------
56
-
57
- # Open hosts file in default text editor
58
- alias edit_hosts='${EDITOR} /etc/hosts'
59
-
60
- # Open Nginx configuration file in default text editor
61
- alias edit_nginx_config='${EDITOR} /etc/nginx/nginx.conf'
62
-
63
- # Open SSH configuration file in default text editor
64
- alias edit_ssh_config='${EDITOR} $HOME/.ssh/config'
65
-
66
- # Open Zsh configuration file in default text editor
67
- alias edit_zshrc='${EDITOR} $HOME/.zshrc'
68
-
69
- # Open Zsh profile in default text editor
70
- alias edit_zsh_profile='${EDITOR} $HOME/.zsh_profile'
@@ -1,40 +0,0 @@
1
- <!-- markdownlint-disable MD033 MD041 MD043 -->
2
-
3
- <img
4
- src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
5
- alt="dotfiles logo"
6
- width="66"
7
- align="right"
8
- />
9
-
10
- <!-- markdownlint-enable MD033 MD041 -->
11
-
12
- # Dotfiles (v0.2.469)
13
-
14
- Simply designed to fit your shell life 🐚
15
-
16
- ![Dotfiles banner][banner]
17
-
18
- ## 🅳🅴🅵🅰🆄🅻🆃 🅰🅻🅸🅰🆂🅴🆂
19
-
20
- This code provides a set of command aliases to make common tasks and
21
- commands more convenient and faster to execute. These aliases range from
22
- general purpose to system monitoring and file system navigation.
23
-
24
- Some of the most useful aliases include:
25
-
26
- - `c`: shortcut for the `clear` command to clear the terminal screen.
27
- - `p`: shortcut for the `pwd` command to display the current working
28
- directory.
29
- - `h`: lists all recently used commands.
30
- - `path`: displays the `$PATH` variable on new lines.
31
- - `quit`: shortcut for the `exit` command to exit the shell.
32
- - `halt`, `poweroff`, `reboot`: system shutdown and reboot commands.
33
- - `srv`: starts a simple HTTP server.
34
- - `top`: allows the user to interactively monitor the system's vital
35
- resources or server's processes in real-time.
36
- - `qfind`: quickly search for files.
37
- - `clc`: clear the terminal screen and print the contents of the current
38
- directory.
39
-
40
- [banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
@@ -1,139 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- ################################################################################
4
- # 🅳🅾🆃🅵🅸🅻🅴🆂
5
- # Script: default.aliases.sh
6
- # Version: 0.2.469
7
- # Author: Sebastien Rousseau
8
- # Copyright (c) 2015-2025. All rights reserved
9
- # Description: Script containing default shell aliases
10
- # Website: https://dotfiles.io
11
- # License: MIT
12
- ################################################################################
13
-
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.
25
-
26
- set_default_aliases() {
27
- fc -W
28
-
29
- ## General aliases
30
- # Shortcut for the `clear` command.
31
- alias c="clear"
32
-
33
- # Display the current date and time.
34
- alias da='date "+%Y-%m-%d %A %T %Z"'
35
-
36
- # Shortcut for `pwd` which returns working directory name.
37
- alias p='pwd'
38
-
39
- # Display the $PATH variable on newlines.
40
- alias path='echo ${PATH//:/\\n}'
41
-
42
- # Reload the shell.
43
- alias r='reload'
44
-
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'
48
-
49
- # Show the current week number.
50
- alias wk='date +%V'
51
-
52
- ## Exit/shutdown aliases
53
- # Shortcut for the `exit` command.
54
- alias ':q'='quit'
55
-
56
- # Shortcut for the `exit` command.
57
- alias bye='quit'
58
-
59
- # Shortcut for the `exit` command.
60
- alias q='quit'
61
-
62
- # Shortcut for the `exit` command.
63
- alias x='quit'
64
-
65
- # Shortcut for the `exit` command.
66
- alias quit='exit'
67
-
68
- # Shutdown the system.
69
- alias halt='sudo /sbin/halt'
70
-
71
- # Alias to list recent commands
72
- alias h='dotfiles_history'
73
-
74
- # Alias to view history
75
- alias history='dotfiles_history'
76
-
77
- # Poweroff the system.
78
- alias poweroff='sudo /sbin/shutdown'
79
-
80
- # Reboot the system.
81
- alias reboot='sudo /sbin/reboot'
82
-
83
- ## Network aliases
84
- # Append sudo to ifconfig (configure network interface parameters)
85
- # command.
86
- alias ifconfig='sudo ifconfig'
87
-
88
- # Get network interface parameters for en0.
89
- alias ipinfo='ipconfig getpacket en0'
90
-
91
- # Show only active network listeners.
92
- alias nls='sudo lsof -i -P | grep LISTEN'
93
-
94
- # List of open ports.
95
- alias op='sudo lsof -i -P'
96
-
97
- # Limit Ping to 5 ECHO_REQUEST packets.
98
- alias ping='ping -c 5'
99
-
100
- # List all listening ports.
101
- alias ports='netstat -tulan'
102
-
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'
105
-
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'
110
-
111
- # Remove all log files in /private/var/log/asl/.
112
- alias spd='sudo rm -rf /private/var/log/asl/*'
113
-
114
- ## Utility aliases
115
- # Count the number of files in the current directory.
116
- alias ctf='echo $(ls -1 | wc -l)'
117
-
118
- # Use compression when transferring data.
119
- alias curl='curl --compressed'
120
-
121
- # Quickly search for file.
122
- alias qfind='find . -name '
123
-
124
- # Reload the shell.
125
- alias reload='exec $SHELL -l'
126
-
127
- # Get the weather.
128
- alias wth='curl -s "wttr.in/?format=3"'
129
-
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'
134
-
135
- # Clear the terminal screen and print
136
- alias clp='pwd'
137
- }
138
-
139
- set_default_aliases
@@ -1,37 +0,0 @@
1
- <!-- markdownlint-disable MD033 MD041 MD043 -->
2
-
3
- <img
4
- src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
5
- alt="dotfiles logo"
6
- width="66"
7
- align="right"
8
- />
9
-
10
- <!-- markdownlint-enable MD033 MD041 -->
11
-
12
- # Dotfiles (v0.2.469)
13
-
14
- Simply designed to fit your shell life 🐚
15
-
16
- ![Dotfiles banner][banner]
17
-
18
- ## 🅳🅸🅶 🅰🅻🅸🅰🆂🅴🆂
19
-
20
- This code provides a set of command aliases to simplify working with DNS
21
- (Domain Name System) lookup using the dig command on a Unix-based system
22
- .
23
-
24
- The following aliases are included:
25
-
26
- - `d`: runs the dig command with default options.
27
- - `d4`: performs a DNS lookup for an IPv4 address.
28
- - `d6`: performs a DNS lookup for an IPv6 address.
29
- - `dga`: performs a DNS lookup for all records.
30
- - `dgs`: performs a DNS lookup for a short answer.
31
- - `digg`: performs a dig with Google's DNS.
32
- - `ip4`: retrieves your public IPv4 address.
33
- - `ip6`: retrieves your public IPv6 address.
34
- - `ips`: retrieves your public IPv4 and IPv6 addresses.
35
- - `wip`: retrieves your public IP address.
36
-
37
- [banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
@@ -1,43 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.469) - <https://dotfiles.io>
4
- # Made with ♥ in London, UK by Sebastien Rousseau
5
- # Copyright (c) 2015-2025. All rights reserved
6
- # License: MIT
7
- # Script: dig.aliases.sh
8
- # Version: 0.2.469
9
- # Website: https://dotfiles.io
10
-
11
- # 🅳🅸🅶 🅰🅻🅸🅰🆂🅴🆂
12
- if command -v dig &>/dev/null; then
13
- # d: Run the dig command with the default options.
14
- alias d='$(which dig)'
15
-
16
- # d4: Perform a DNS lookup for an IPv4 address.
17
- alias d4='$(which dig) +short -4'
18
-
19
- # d6: Perform a DNS lookup for an IPv6 address.
20
- alias d6='$(which dig) +short -6'
21
-
22
- # dga: Perform a DNS lookup for all records.
23
- alias dga='$(which dig) +all ANY'
24
-
25
- # dgs: Perform a DNS lookup for a short answer.
26
- alias dgs='$(which dig) +short'
27
-
28
- # digg: Dig with Google's DNS.
29
- alias digg='$(which dig) @8.8.8.8 +nocmd any +multiline +noall +answer'
30
-
31
- # ip4: Get your public IPv4 address.
32
- alias ip4='$(which dig) +short myip.opendns.com @resolver1.opendns.com -4'
33
-
34
- # ip6: Get your public IPv6 address.
35
- alias ip6='$(which dig) -6 AAAA +short myip.opendns.com. @resolver1.opendns.com.'
36
-
37
- # ips: Get your public IPv4 and IPv6 addresses.
38
- alias ips='ip4; ip6'
39
-
40
- # wip: Get your public IP address.
41
- alias wip='$(which dig) +short myip.opendns.com @resolver1.opendns.com'
42
-
43
- fi
@@ -1,36 +0,0 @@
1
- <!-- markdownlint-disable MD033 MD041 MD043 -->
2
-
3
- <img
4
- src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
5
- alt="dotfiles logo"
6
- width="66"
7
- align="right"
8
- />
9
-
10
- <!-- markdownlint-enable MD033 MD041 -->
11
-
12
- # Dotfiles (v0.2.469)
13
-
14
- Simply designed to fit your shell life 🐚
15
-
16
- ![Dotfiles banner][banner]
17
-
18
- ## 🅳🅸🆂🅺 🆄🆂🅰🅶🅴 🅰🅻🅸🅰🆂🅴🆂
19
-
20
- This code provides a set of command aliases to help users manage disk
21
- usage on a Unix-based system.
22
-
23
- The following aliases are provided:
24
-
25
- - `du`: Display the disk usage of the current directory.
26
- - `du1`: Show the file size of files and directories in the current
27
- directory.
28
- - `duh`: Show the file size of files and directories.
29
- - `ducks`: Display the top 10 largest files and directories in the
30
- current directory.
31
- - `dus`: Show the file size in human-readable format, sorted by size.
32
- - `dusym`: Show the file size of files and directories in the current
33
- directory, including symlinks.
34
- - `dut`: Show the total file size of the current directory.
35
-
36
- [banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg