@sebastienrousseau/dotfiles 0.2.464 β†’ 0.2.465

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 (173) hide show
  1. package/README.md +118 -281
  2. package/dist/Makefile +2 -2
  3. package/dist/bin/constants.d.ts +2 -2
  4. package/dist/bin/constants.d.ts.map +1 -1
  5. package/dist/bin/constants.js +1 -1
  6. package/dist/bin/constants.js.map +1 -1
  7. package/dist/filesizes.txt +170 -144
  8. package/dist/lib/README.md +6 -1
  9. package/dist/lib/aliases/README.md +47 -0
  10. package/dist/lib/aliases/archives/README.md +39 -67
  11. package/dist/lib/aliases/archives/archives.aliases.sh +128 -60
  12. package/dist/lib/aliases/cd/README.md +26 -9
  13. package/dist/lib/aliases/cd/cd.aliases.sh +1 -4
  14. package/dist/lib/aliases/chmod/README.md +48 -13
  15. package/dist/lib/aliases/chmod/chmod.aliases.sh +1 -1
  16. package/dist/lib/aliases/clear/README.md +33 -38
  17. package/dist/lib/aliases/clear/clear.aliases.sh +35 -33
  18. package/dist/lib/aliases/configuration/README.md +26 -37
  19. package/dist/lib/aliases/configuration/configuration.aliases.sh +40 -36
  20. package/dist/lib/aliases/default/README.md +26 -52
  21. package/dist/lib/aliases/default/default.aliases.sh +105 -44
  22. package/dist/lib/aliases/dig/README.md +23 -40
  23. package/dist/lib/aliases/dig/dig.aliases.sh +26 -29
  24. package/dist/lib/aliases/disk-usage/README.md +32 -0
  25. package/dist/lib/aliases/disk-usage/du.aliases.sh +84 -0
  26. package/dist/lib/aliases/editor/README.md +35 -33
  27. package/dist/lib/aliases/editor/editor.aliases.sh +13 -39
  28. package/dist/lib/aliases/find/README.md +42 -29
  29. package/dist/lib/aliases/find/find.aliases.sh +52 -26
  30. package/dist/lib/aliases/gcloud/README.md +59 -148
  31. package/dist/lib/aliases/gcloud/gcloud.aliases.sh +327 -138
  32. package/dist/lib/aliases/git/README.md +149 -0
  33. package/dist/lib/aliases/git/git.aliases.sh +535 -131
  34. package/dist/lib/aliases/gnu/README.md +85 -0
  35. package/dist/lib/aliases/gnu/gnucoreutils-aliases.sh +143 -109
  36. package/dist/lib/aliases/heroku/README.md +426 -0
  37. package/dist/lib/aliases/heroku/heroku.aliases.sh +1047 -288
  38. package/dist/lib/aliases/interactive/README.md +43 -0
  39. package/dist/lib/aliases/interactive/interactive.aliases.sh +48 -9
  40. package/dist/lib/aliases/jekyll/README.md +37 -0
  41. package/dist/lib/aliases/jekyll/jekyll.aliases.sh +49 -10
  42. package/dist/lib/aliases/list/README.md +38 -0
  43. package/dist/lib/aliases/list/list.aliases.sh +81 -30
  44. package/dist/lib/aliases/macos/README.md +38 -0
  45. package/dist/lib/aliases/macos/macos.aliases.sh +65 -0
  46. package/dist/lib/aliases/make/README.md +28 -0
  47. package/dist/lib/aliases/make/make.aliases.sh +30 -10
  48. package/dist/lib/aliases/mkdir/README.md +26 -0
  49. package/dist/lib/aliases/mkdir/mkdir.aliases.sh +24 -8
  50. package/dist/lib/aliases/npm/README.md +37 -0
  51. package/dist/lib/aliases/npm/npm.aliases.sh +54 -17
  52. package/dist/lib/aliases/permission/README.md +43 -0
  53. package/dist/lib/aliases/permission/permission.aliases.sh +73 -0
  54. package/dist/lib/aliases/pnpm/README.md +49 -0
  55. package/dist/lib/aliases/pnpm/pnpm.aliases.sh +70 -36
  56. package/dist/lib/aliases/ps/README.md +25 -0
  57. package/dist/lib/aliases/ps/ps.aliases.sh +14 -6
  58. package/dist/lib/aliases/rsync/README.md +21 -0
  59. package/dist/lib/aliases/rsync/rsync.aliases.sh +10 -4
  60. package/dist/lib/aliases/rust/README.md +57 -0
  61. package/dist/lib/aliases/rust/rust.aliases.sh +116 -39
  62. package/dist/lib/aliases/subversion/README.md +62 -0
  63. package/dist/lib/aliases/subversion/subversion.aliases.sh +4 -3
  64. package/dist/lib/aliases/sudo/README.md +23 -0
  65. package/dist/lib/aliases/sudo/sudo.aliases.sh +15 -6
  66. package/dist/lib/aliases/tmux/README.md +27 -0
  67. package/dist/lib/aliases/tmux/tmux.aliases.sh +29 -10
  68. package/dist/lib/aliases/update/README.md +34 -0
  69. package/dist/lib/aliases/update/update.aliases.sh +57 -26
  70. package/dist/lib/aliases/uuid/README.md +20 -0
  71. package/dist/lib/aliases/uuid/uuid.aliases.sh +13 -4
  72. package/dist/lib/aliases/wget/README.md +23 -0
  73. package/dist/lib/aliases/wget/wget.aliases.sh +15 -6
  74. package/dist/lib/aliases.sh +4 -3
  75. package/dist/lib/configurations/README.md +13 -2
  76. package/dist/lib/configurations/bash/bashrc +4 -3
  77. package/dist/lib/configurations/curl/curlrc +2 -2
  78. package/dist/lib/configurations/default/color.sh +3 -2
  79. package/dist/lib/configurations/default/constants.sh +4 -3
  80. package/dist/lib/configurations/default/editor.sh +3 -2
  81. package/dist/lib/configurations/default/prompt.sh +3 -2
  82. package/dist/lib/configurations/input/inputrc +2 -2
  83. package/dist/lib/configurations/nano/nanorc +2 -2
  84. package/dist/lib/configurations/profile/profile +2 -2
  85. package/dist/lib/configurations/tmux/default +2 -2
  86. package/dist/lib/configurations/tmux/display +6 -2
  87. package/dist/lib/configurations/tmux/linux +2 -2
  88. package/dist/lib/configurations/tmux/navigation +2 -2
  89. package/dist/lib/configurations/tmux/panes +2 -2
  90. package/dist/lib/configurations/tmux/theme +3 -3
  91. package/dist/lib/configurations/tmux/tmux +2 -2
  92. package/dist/lib/configurations/tmux/vi +2 -2
  93. package/dist/lib/configurations/vim/vimrc +1 -1
  94. package/dist/lib/configurations/wget/wgetrc +2 -2
  95. package/dist/lib/configurations/zsh/zshrc +2 -2
  96. package/dist/lib/configurations.sh +4 -3
  97. package/dist/lib/functions/README.md +69 -2
  98. package/dist/lib/functions/cdls.sh +3 -2
  99. package/dist/lib/functions/curlheader.sh +3 -2
  100. package/dist/lib/functions/curlstatus.sh +17 -0
  101. package/dist/lib/functions/curltime.sh +4 -3
  102. package/dist/lib/functions/encode64.sh +3 -2
  103. package/dist/lib/functions/environment.sh +3 -2
  104. package/dist/lib/functions/extract.sh +3 -2
  105. package/dist/lib/functions/filehead.sh +1 -1
  106. package/dist/lib/functions/freespace.sh +21 -0
  107. package/dist/lib/functions/genpwd.sh +33 -7
  108. package/dist/lib/functions/goto.sh +3 -2
  109. package/dist/lib/functions/hidehiddenfiles.sh +3 -2
  110. package/dist/lib/functions/hostinfo.sh +3 -2
  111. package/dist/lib/functions/hstats.sh +3 -2
  112. package/dist/lib/functions/httpdebug.sh +3 -2
  113. package/dist/lib/functions/keygen.sh +20 -13
  114. package/dist/lib/functions/last.sh +3 -2
  115. package/dist/lib/functions/logout.sh +3 -2
  116. package/dist/lib/functions/lowercase.sh +3 -2
  117. package/dist/lib/functions/matrix.sh +15 -14
  118. package/dist/lib/functions/mount_read_only.sh +3 -2
  119. package/dist/lib/functions/myproc.sh +4 -3
  120. package/dist/lib/functions/prependpath.sh +3 -2
  121. package/dist/lib/functions/ql.sh +3 -2
  122. package/dist/lib/functions/rd.sh +3 -2
  123. package/dist/lib/functions/remove_disk.sh +3 -2
  124. package/dist/lib/functions/ren.sh +3 -2
  125. package/dist/lib/functions/showhiddenfiles.sh +3 -2
  126. package/dist/lib/functions/size.sh +3 -2
  127. package/dist/lib/functions/stopwatch.sh +4 -3
  128. package/dist/lib/functions/uppercase.sh +3 -2
  129. package/dist/lib/functions/view-source.sh +3 -2
  130. package/dist/lib/functions/vscode.sh +3 -2
  131. package/dist/lib/functions/whoisport.sh +3 -2
  132. package/dist/lib/functions/zipf.sh +3 -2
  133. package/dist/lib/functions.sh +4 -3
  134. package/dist/lib/history.sh +4 -4
  135. package/dist/lib/paths/ant/ant.paths.sh +3 -2
  136. package/dist/lib/paths/default/default.paths.sh +3 -2
  137. package/dist/lib/paths/homebrew/homebrew.paths.sh +3 -2
  138. package/dist/lib/paths/java/java.paths.sh +3 -2
  139. package/dist/lib/paths/maven/maven.paths.sh +3 -2
  140. package/dist/lib/paths/node/node.paths.sh +3 -2
  141. package/dist/lib/paths/nvm/nvm.paths.sh +3 -2
  142. package/dist/lib/paths/pnpm/pnpm.paths.sh +3 -2
  143. package/dist/lib/paths/python/python.paths.sh +3 -2
  144. package/dist/lib/paths/ruby/ruby.paths.sh +3 -2
  145. package/dist/lib/paths/tmux/tmux.paths.sh +3 -2
  146. package/dist/lib/paths.sh +4 -3
  147. package/dist/scripts/backup.sh +3 -2
  148. package/dist/scripts/banner.sh +3 -2
  149. package/dist/scripts/build.sh +3 -2
  150. package/dist/scripts/clean.sh +3 -2
  151. package/dist/scripts/compile.sh +3 -2
  152. package/dist/scripts/copy.sh +3 -2
  153. package/dist/scripts/dotfiles.sh +3 -2
  154. package/dist/scripts/download.sh +3 -2
  155. package/dist/scripts/help.sh +3 -2
  156. package/dist/scripts/ssh.sh +3 -2
  157. package/dist/scripts/unpack.sh +3 -2
  158. package/package.json +7 -7
  159. package/dist/lib/aliases/du/README.md +0 -35
  160. package/dist/lib/aliases/du/du.aliases.sh +0 -37
  161. package/dist/lib/functions/changediskpwd.tmp +0 -19
  162. package/dist/lib/functions/code.tmp +0 -18
  163. package/dist/lib/functions/countdown.tmp +0 -34
  164. package/dist/lib/functions/headers.tmp +0 -4
  165. package/dist/lib/functions/history-all.tmp +0 -8
  166. package/dist/lib/functions/macos.sh +0 -47
  167. package/dist/lib/functions/mcd.tmp +0 -19
  168. package/dist/lib/functions/print.tmp +0 -14
  169. package/dist/lib/functions/rm.tmp +0 -14
  170. package/dist/lib/functions/rps.tmp +0 -104
  171. package/dist/lib/functions/trash.tmp +0 -14
  172. package/dist/lib/functions/tree.tmp +0 -14
  173. package/dist/lib/functions/uuidgen.tmp +0 -28
@@ -0,0 +1,47 @@
1
+ <!-- markdownlint-disable MD033 MD041 -->
2
+
3
+ <img src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
4
+ alt="dotfiles logo" width="261" align="right" />
5
+
6
+ <!-- markdownlint-enable MD033 MD041 -->
7
+
8
+ # Dotfiles (v0.2.465)
9
+
10
+ Simply designed to fit your shell life 🐚
11
+
12
+ ![Dotfiles banner][banner]
13
+
14
+ - [Archives](archives/README.md) - Compress and extract files and directories in various formats on a Unix-based system.
15
+ - [Cd](cd/README.md) - Navigate the file system.
16
+ - [Chmod](chmod/README.md) - Change the permissions of files and directories.
17
+ - [Clear](clear/README.md) - Clear the terminal screen.
18
+ - [Configuration](configuration/README.md) - Configure the dotfiles.
19
+ - [Default](default/README.md) - Manage the default shell.
20
+ - [Dig](dig/README.md) - Query DNS name servers.
21
+ - [Disk Usage](disk-usage/README.md) - Display the disk usage of files and directories.
22
+ - [Editor](editor/README.md) - Manage the default text editor.
23
+ - [Find](find/README.md) - Search for files and directories.
24
+ - [gCloud](gcloud/README.md) - Manage the Google Cloud SDK.
25
+ - [Git](git/README.md) - Manage the Git version control system.
26
+ - [GNU](gnu/README.md) - Manage the GNU core utilities.
27
+ - [Heroku](heroku/README.md) - Manage the Heroku CLI.
28
+ - [Interactive](interactive/README.md) - Manage the interactive shell.
29
+ - [Jekyll](jekyll/README.md) - Manage the Jekyll static site generator.
30
+ - [List](list/README.md) - List files and directories.
31
+ - [macOS](macos/README.md) - Manage the macOS operating system.
32
+ - [make](make/README.md) - Manage the GNU make utility.
33
+ - [mkdir](mkdir/README.md) - Create directories.
34
+ - [npm](npm/README.md) - Manage the Node.js package manager.
35
+ - [permission](permission/README.md) - Manage the file permissions.
36
+ - [pnpm](pnpm/README.md) - Manage the pnpm package manager.
37
+ - [ps](ps/README.md) - Manage the process status.
38
+ - [rsync](rsync/README.md) - Manage the rsync file transfer utility.
39
+ - [rust](rust/README.md) - Manage the Rust programming language.
40
+ - [subversion](subversion/README.md) - Manage the Subversion version control system.
41
+ - [sudo](sudo/README.md) - Manage the superuser.
42
+ - [tmux](tmux/README.md) - Manage the tmux terminal multiplexer.
43
+ - [update](update/README.md) - Help users update the dotfiles.
44
+ - [uuid](uuid/README.md) - Help users generate UUIDs.
45
+ - [wget](wget/README.md) - Manage the wget utility.
46
+
47
+ [banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
@@ -1,84 +1,56 @@
1
- # Compression Aliases
1
+ <!-- markdownlint-disable MD033 MD041 -->
2
2
 
3
- This repository contains a set of shell aliases for various compression
4
- tools. These aliases can be added to your shell profile to make it easy
5
- to compress and extract files from the command line.
3
+ <img src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
4
+ alt="dotfiles logo" width="261" align="right" />
6
5
 
7
- ## Aliases
6
+ <!-- markdownlint-enable MD033 MD041 -->
8
7
 
9
- ### 7z
8
+ # Dotfiles (v0.2.465)
10
9
 
11
- - `c7z`: Compress a whole directory (including subdirectories) to a 7z file.
12
- - `e7z`: Extract a whole directory (including subdirectories) from a 7z file.
13
- - `l7z`: List contents of a 7z archive.
14
- - `t7z`: Test integrity of a 7z archive.
15
- - `x7z`: Extract files with full paths from a 7z archive.
10
+ Simply designed to fit your shell life 🐚
16
11
 
17
- ### bzip2
12
+ ![Dotfiles banner][banner]
18
13
 
19
- - `cbz2`: Compress a file to a bz2 file.
20
- - `ebz2`: Extract a file from a bz2 file.
14
+ ## πŸ…°πŸ†πŸ…²πŸ…·πŸ…ΈπŸ†…πŸ…΄πŸ†‚ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
21
15
 
22
- ### gzip
16
+ This code provides a set of command aliases to help users compress and
17
+ extract files and directories in various formats on a Unix-based system.
23
18
 
24
- - `cgz`: Compress a file to a gz file.
25
- - `egz`: Extract a file from a gz file.
19
+ The following compression formats are supported:
26
20
 
27
- ### jar
21
+ - 7z
22
+ - bzip2
23
+ - gzip
24
+ - jar
25
+ - lz4
26
+ - lzma
27
+ - lzo
28
+ - pigz
29
+ - tar
30
+ - xz
31
+ - zstd
32
+ - zip
28
33
 
29
- - `cjar`: Compress a whole directory (including subdirectories) to a jar file.
30
- - `ejar`: Extract a whole directory (including subdirectories) from a jar file.
34
+ These aliases enable users to compress or extract files and directories
35
+ quickly by using simple commands.
31
36
 
32
- ### lzma
37
+ For example:
33
38
 
34
- - `clzma`: Compress a file to a lzma file.
35
- - `elzma`: Extract a file from a lzma file.
39
+ - `c7z` can be used to compress a whole directory (including
40
+ subdirectories) to a 7z file.
41
+ - `e7z` can be used to extract a whole directory (including
42
+ subdirectories) from a 7z file.
36
43
 
37
- ### rar
44
+ Similarly, there are aliases for compressing and extracting files and
45
+ directories in all supported formats.
38
46
 
39
- - `crar`: Compress a file to a rar file.
40
- - `erar`: Extract a file from a rar file.
47
+ The aliases are designed to be easy to remember and use, and they should
48
+ make the compression and extraction process much simpler for users.
41
49
 
42
- ### tar
50
+ Please note that some of the compression formats may require additional
51
+ software to be installed on your system.
43
52
 
44
- - `ctar`: Compress a whole directory (including subdirectories) to a tar file.
45
- - `etar`: Extract a whole directory (including subdirectories) from a tar file.
46
- - `t7z`: Compress a whole directory (including subdirectories) to a 7z file.
47
- - `tbz`: Compress a whole directory (including subdirectories) to a bzip2 file.
48
- - `tgz`: Compress a whole directory (including subdirectories) to a tar.gz file.
49
- - `txz`: Compress a whole directory (including subdirectories) to a xz file.
50
- - `txzstd`: Compress a whole directory (including subdirectories) to a zstd file.
51
- - `tz`: Compress a whole directory (including subdirectories) to a gzip file.
52
- - `unzip`: Extract a whole directory (including subdirectories) from a zip file.
53
- - `x7z`: Extract a whole directory (including subdirectories) from a 7z file.
54
- - `xbz`: Extract a whole directory (including subdirectories) from a bzip2 file.
55
- - `xgz`: Extract a whole directory (including subdirectories) from a tar.gz file.
56
- - `xxz`: Extract a whole directory (including subdirectories) from a xz file.
57
- - `xxzstd`: Extract a whole directory (including subdirectories) from a zstd file.
58
- - `xz`: Extract a whole directory (including subdirectories) from a gzip file.
59
- - `zip`: Compress a whole directory (including subdirectories) to a zip file.
53
+ Enjoy the convenience of quickly compressing and extracting files and
54
+ directories with these command aliases!
60
55
 
61
- ### xz
62
-
63
- - `cxz`: Compress a file to a xz file.
64
- - `exz`: Extract a file from a xz file.
65
- - `tlz`: Compress a whole directory (including subdirectories) to a lz file.
66
- - `xlz`: Extract a whole directory (including subdirectories) from a lz file.
67
-
68
- ### zip
69
-
70
- - `cz`: Compress a whole directory (including subdirectories) to a zip file.
71
- - `ez`: Extract a whole directory (including subdirectories) from a zip file.
72
- - `tbz`: Compress a whole directory (including subdirectories) to a bzip2 file.
73
- - `txz`: Compress a whole directory (including subdirectories) to a xz file.
74
- - `tz`: Compress a whole directory (including subdirectories) to a gzip file.
75
- - `xbz`: Extract a whole directory (including subdirectories) from a bzip2 file.
76
- - `xxz`: Extract a whole directory (including subdirectories) from a xz file.
77
- - `xz`: Extract a whole directory (including subdirectories) from a gzip file.
78
-
79
- ### zstd
80
-
81
- - `czstd`: Compress a whole directory (including subdirectories) to a zstd file.
82
- - `ezstd`: Extract a whole directory (including subdirectories) from a zstd file.
83
- - `tzstd`: Compress a whole directory (including subdirectories) to a tar.zst file.
84
- - `xzstd`: Extract a whole directory (including subdirectories) from a tar.zst file.
56
+ [banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
@@ -1,86 +1,154 @@
1
1
  #!/usr/bin/env bash
2
- # Author: Sebastien Rousseau
2
+
3
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.465) - <https://dotfiles.io>
4
+ # Made with β™₯ in London, UK by @wwdseb
3
5
  # Copyright (c) 2015-2023. All rights reserved
4
- # Description: Sets aliases for archives.
5
6
  # License: MIT
6
7
  # Script: archives.aliases.sh
7
- # Version: 0.2.464
8
+ # Version: 0.2.465
8
9
  # Website: https://dotfiles.io
9
10
 
10
11
  # πŸ…°πŸ†πŸ…²πŸ…·πŸ…ΈπŸ†…πŸ…΄πŸ†‚ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
11
- if command -v '7z' >/dev/null; then
12
- alias c7z='7z a' # c7z: Compress a whole directory (including subdirectories) to a 7z file.
13
- alias e7z='7z x' # e7z: Extract a whole directory (including subdirectories) from a 7z file.
14
- alias l7z='7z l' # l7z: List contents of a 7z archive.
15
- alias t7z='7z t' # t7z: Test integrity of a 7z archive.
16
- alias x7z='7z x' # x7z: Extract files with full paths from a 7z archive.
12
+ if command -v 7z &>/dev/null; then
13
+ # Compress a whole directory (including subdirectories) to a 7z file.
14
+ alias c7z='7z a'
15
+ # Extract a whole directory (including subdirectories) from a 7z file.
16
+ alias e7z='7z x'
17
+ fi
18
+
19
+ if command -v tar &>/dev/null; then
20
+ # Compress a file to a bzip2 file.
21
+ alias cbzip2='tar -cvjf'
22
+ # Compress a whole directory (including subdirectories) to a tar file.
23
+ alias ctar='tar -cvf'
24
+ # Extract a whole directory (including subdirectories) from a tar
25
+ # file.
26
+ alias etar='tar -xvf'
27
+ # Compress a file to a gzip file.
28
+ alias cgzip='tar -zcvf'
29
+ # Compress a whole directory (including subdirectories) to an xz file.
30
+ alias cxz='tar -cvJf'
31
+ # Extract a file from a bzip2 file.
32
+ alias ebzip2='tar -xvjf'
33
+ # Extract a file from a gzip file.
34
+ alias egzip='tar -xvzf'
35
+ # Extract a whole directory (including subdirectories) from an xz
36
+ # file.
37
+ alias exz='tar -xvJf'
38
+ fi
39
+
40
+ if command -v jar &>/dev/null; then
41
+ # Compress a whole directory (including subdirectories) to a jar file.
42
+ alias cjar='jar -cvf'
43
+ # Extract a whole directory (including subdirectories) from a jar
44
+ # file.
45
+ alias ejar='jar -xvf'
46
+ fi
47
+
48
+ if command -v xz &>/dev/null; then
49
+ # Compress a whole directory (including subdirectories) to an xz file.
50
+ alias cxz2='xz -zcvf'
51
+ # Extract a whole directory (including subdirectories) from an xz
52
+ # file.
53
+ alias exz2='xz -zxvf'
54
+ fi
55
+
56
+ if command -v zip &>/dev/null; then
57
+ # Compress a whole directory (including subdirectories) to a zip file.
58
+ alias czip='zip -r'
59
+ # Extract a whole directory (including subdirectories) from a zip
60
+ # file.
61
+ alias ezip='unzip'
62
+ fi
63
+
64
+ if command -v zstd &>/dev/null; then
65
+ # Compress a whole directory (including subdirectories) to a zstd file.
66
+ alias czstd='zstd -zcvf'
67
+ # Extract a whole directory (including subdirectories) from a zstd
68
+ # file.
69
+ alias ezstd='zstd -zxvf'
70
+ fi
71
+
72
+ # Compress a file to a lzma file.
73
+ if command -v xz &>/dev/null; then
74
+ alias clzma='xz -zcvf'
75
+ alias elzma='xz -zxvf'
76
+ fi
77
+
78
+ # Compress a file to a z file.
79
+ if command -v gzip &>/dev/null; then
80
+ alias czlib='gzip -cv'
81
+ alias ezlib='gzip -dv'
82
+ fi
83
+
84
+ # Compress a file to a bz2 file.
85
+ if command -v bzip2 &>/dev/null; then
86
+ alias cbz2='bzip2 -zkvf'
87
+ alias ebz2='bzip2 -dkvf'
88
+ fi
89
+
90
+ # Compress a file to a lzo file.
91
+ if command -v lzop &>/dev/null; then
92
+ alias clzo='lzop -cv'
93
+ alias elzo='lzop -dv'
17
94
  fi
18
95
 
19
- if command -v 'bzip2' >/dev/null; then
20
- alias cbz2='tar -cvjf' # cbz2: Compress a file to a bz2 file.
21
- alias ebz2='tar -xvjf' # ebz2: Extract a file from a bz2 file.
96
+ # Compress a file to a lz4 file.
97
+ if command -v lz4 &>/dev/null; then
98
+ alias clz4='lz4 -zcv'
99
+ alias elz4='lz4 -dcv'
22
100
  fi
23
101
 
24
- if command -v 'gzip' >/dev/null; then
25
- alias cgz='tar -zcvf' # cgz: Compress a file to a gz file.
26
- alias egz='tar -xvzf' # egz: Extract a file from a gz file.
102
+ # Compress a file to a zst file.
103
+ if command -v zstd &>/dev/null; then
104
+ alias czst='zstd -zcv'
105
+ alias ezst='zstd -dcv'
27
106
  fi
28
107
 
29
- if command -v 'jar' >/dev/null; then
30
- alias cjar='jar -cvf' # cjar: Compress a whole directory (including subdirectories) to a jar file.
31
- alias ejar='jar -xvf' # ejar: Extract a whole directory (including subdirectories) from a jar file.
108
+ # Compress a file to a pigz file.
109
+ if command -v pigz &>/dev/null; then
110
+ alias cpgz='pigz -zkvf'
111
+ alias epgz='pigz -dkvf'
32
112
  fi
33
113
 
34
- if command -v 'lzma' >/dev/null; then
35
- alias clzma='xz -zcvf' # clzma: Compress a file to a lzma file.
36
- alias elzma='xz -zxvf' # elzma: Extract a file from a lzma file.
114
+ # Compress a whole directory (including subdirectories) to a tar.bz2
115
+ # file.
116
+ if command -v tar &>/dev/null && command -v bzip2 &>/dev/null; then
117
+ alias ctbz2='tar -cvjf'
118
+ alias etbz2='tar -xvjf'
37
119
  fi
38
120
 
39
- if command -v 'rar' >/dev/null; then
40
- alias crar='rar a' # crar: Compress a file to a rar file.
41
- alias erar='rar x' # erar: Extract a file from a rar file.
121
+ # Compress a whole directory (including subdirectories) to a tar.lzma
122
+ # file.
123
+ if command -v tar &>/dev/null && command -v xz &>/dev/null; then
124
+ alias ctlzma='tar --lzma -cvf'
125
+ alias etlzma='tar --lzma -xvf'
42
126
  fi
43
127
 
44
- if command -v 'tar' >/dev/null; then
45
- alias ctar='tar -cvf' # ctar: Compress a whole directory (including subdirectories) to a tar file.
46
- alias etar='tar -xvf' # etar: Extract a whole directory (including subdirectories) from a tar file.
47
- alias t7z='tar -cvf' # t7z: Compress a whole directory (including subdirectories) to a 7z file.
48
- alias tbz='tar -cvjf' # tbz: Compress a whole directory (including subdirectories) to a bzip2 file.
49
- alias tgz='tar -cvzf' # tgz: Compress a whole directory (including subdirectories) to a tar.gz file.
50
- alias txz='tar -cJf' # txz: Compress a whole directory (including subdirectories) to a xz file.
51
- alias txzstd='tar -c --zstd -f' # txzstd: Compress a whole directory (including subdirectories) to a zstd file.
52
- alias tz='tar -cvzf' # tz: Compress a whole directory (including subdirectories) to a gzip file.
53
- alias unzip='tar -xvzf' # unzip: Extract a whole directory (including subdirectories) from a zip file.
54
- alias x7z='tar -xvf' # x7z: Extract a whole directory (including subdirectories) from a 7z file.
55
- alias xbz='tar -xvjf' # xbz: Extract a whole directory (including subdirectories) from a bzip2 file.
56
- alias xgz='tar -xvzf' # xgz: Extract a whole directory (including subdirectories) from a tar.gz file.
57
- alias xxz='tar -xvJf' # xxz: Extract a whole directory (including subdirectories) from a xz file.
58
- alias xxzstd='tar -x --zstd -f' # xxzstd: Extract a whole directory (including subdirectories) from a zstd file.
59
- alias xz='tar -xvzf' # xz: Extract a whole directory (including subdirectories) from a gzip file.
60
- alias zip='tar -cvzf' # zip: Compress a whole directory (including subdirectories) to a zip file.
128
+ # Compress a whole directory (including subdirectories) to a tar.gz
129
+ # file.
130
+ if command -v tar &>/dev/null && command -v gzip &>/dev/null; then
131
+ alias ctgz='tar -zcvf'
132
+ alias etgz='tar -zxvf'
61
133
  fi
62
134
 
63
- if command -v 'xz' >/dev/null; then
64
- alias cxz='xz -zcvf' # cxz: Compress a whole directory (including subdirectories) to a xz file.
65
- alias exz='xz -zxvf' # exz: Extract a whole directory (including subdirectories) from a xz file.
66
- alias tlz='tar -cJf' # tlz: Compress a whole directory (including subdirectories) to a lz file.
67
- alias xlz='tar -xvf' # xlz: Extract a whole directory (including subdirectories) from a lz file.
135
+ # Compress a whole directory (including subdirectories) to a tar.lzo
136
+ # file.
137
+ if command -v tar &>/dev/null && command -v lzop &>/dev/null; then
138
+ alias ctlzo='tar --lzip -cvf'
139
+ alias etlzo='tar --lzip -xvf'
68
140
  fi
69
141
 
70
- if command -v 'zip' >/dev/null; then
71
- alias cz='zip -r' # cz: Compress a whole directory (including subdirectories) to a zip file.
72
- alias ez='unzip' # ez: Extract a whole directory (including subdirectories) from a zip file.
73
- alias tbz='tar -cvjf' # tbz: Compress a whole directory (including subdirectories) to a bzip2 file.
74
- alias txz='tar -cJf' # txz: Compress a whole directory (including subdirectories) to a xz file.
75
- alias tz='tar -cvzf' # tz: Compress a whole directory (including subdirectories) to a gzip file.
76
- alias xbz='tar -xvjf' # xbz: Extract a whole directory (including subdirectories) from a bzip2 file.
77
- alias xxz='tar -xvJf' # xxz: Extract a whole directory (including subdirectories) from a xz file.
78
- alias xz='tar -xvzf' # xz: Extract a whole directory (including subdirectories) from a gzip file.
142
+ # Compress a whole directory (including subdirectories) to a tar.zst
143
+ # file.
144
+ if command -v tar &>/dev/null && command -v zstd &>/dev/null; then
145
+ alias ctzst='tar --zstd -cvf'
146
+ alias etzst='tar --zstd -xvf'
79
147
  fi
80
148
 
81
- if command -v 'zstd' >/dev/null; then
82
- alias czstd='zstd -zcvf' # czstd: Compress a whole directory (including subdirectories) to a zstd file.
83
- alias ezstd='zstd -zxvf' # ezstd: Extract a whole directory (including subdirectories) from a zstd file.
84
- alias tzstd='tar -I zstd -cvf' # tzstd: Compress a whole directory (including subdirectories) to a tar.zst file.
85
- alias xzstd='tar -I zstd -xvf' # xzstd: Extract a whole directory (including subdirectories) from a tar.zst file.
149
+ # Compress a whole directory (including subdirectories) to a tar.pgz
150
+ # file.
151
+ if command -v tar &>/dev/null && command -v pigz &>/dev/null; then
152
+ alias ctpgz='tar --use-compress-program=pigz -cvf'
153
+ alias etpgz='tar --use-compress-program=pigz -xvf'
86
154
  fi
@@ -1,16 +1,27 @@
1
- # CD Aliases
1
+ <!-- markdownlint-disable MD033 MD041 -->
2
+
3
+ <img src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
4
+ alt="dotfiles logo" width="261" align="right" />
5
+
6
+ <!-- markdownlint-enable MD033 MD041 -->
7
+
8
+ # Dotfiles (v0.2.465)
9
+
10
+ Simply designed to fit your shell life 🐚
11
+
12
+ ![Dotfiles banner][banner]
13
+
14
+ ## πŸ…²πŸ…³ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
2
15
 
3
16
  These aliases provide shortcuts for the cd command to help you quickly
4
17
  navigate your file system. To use them, add the following lines to your
5
18
  .bashrc or .bash_profile file.
6
19
 
7
- ## Aliases
8
-
9
20
  ### Navigation
10
21
 
11
- - `/`: Go to root directory.
12
22
  - `-`: Go to previous directory.
13
- - `.., ..., ...., .....`: Go up one, two, three, or four directories, respectively.
23
+ - `.., ..., ...., .....`: Go up one, two, three, or four directories,
24
+ respectively.
14
25
  - `~`: Go to home directory.
15
26
 
16
27
  ### Directories
@@ -34,13 +45,19 @@ navigate your file system. To use them, add the following lines to your
34
45
 
35
46
  ### Frequently used directories
36
47
 
37
- - `app`: Shortcut to go to the Applications directory and list its contents.
48
+ - `app`: Shortcut to go to the Applications directory and list its
49
+ contents.
38
50
  - `cod`: Shortcut to go to the Code directory and list its contents.
39
51
  - `des`: Shortcut to go to the Desktop directory and list its contents.
40
- - `doc`: Shortcut to go to the Documents directory and list its contents.
41
- - `dot`: Shortcut to go to the .dotfiles directory and list its contents.
42
- - `dow`: Shortcut to go to the Downloads directory and list its contents.
52
+ - `doc`: Shortcut to go to the Documents directory and list its
53
+ contents.
54
+ - `dot`: Shortcut to go to the .dotfiles directory and list its
55
+ contents.
56
+ - `dow`: Shortcut to go to the Downloads directory and list its
57
+ contents.
43
58
  - `hom`: Shortcut to go to the home directory and list its contents.
44
59
  - `mus`: Shortcut to go to the Music directory and list its contents.
45
60
  - `pic`: Shortcut to go to the Pictures directory and list its contents.
46
61
  - `vid`: Shortcut to go to the Videos directory and list its contents.
62
+
63
+ [banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
@@ -4,14 +4,11 @@
4
4
  # Description: Sets aliases for the `cd` command.
5
5
  # License: MIT
6
6
  # Script: cd.aliases.sh
7
- # Version: 0.2.464
7
+ # Version: 0.2.465
8
8
  # Website: https://dotfiles.io
9
9
 
10
10
  # πŸ…²πŸ…³ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
11
11
 
12
- # Shortcut to go to root directory
13
- alias /='cd /'
14
-
15
12
  # Shortcut to go to previous directory
16
13
  alias -- -='cd -'
17
14
 
@@ -1,28 +1,61 @@
1
- # CHMOD Aliases
1
+ <!-- markdownlint-disable MD033 MD041 -->
2
+
3
+ <img src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
4
+ alt="dotfiles logo" width="261" align="right" />
5
+
6
+ <!-- markdownlint-enable MD033 MD041 -->
7
+
8
+ # Dotfiles (v0.2.465)
9
+
10
+ Simply designed to fit your shell life 🐚
11
+
12
+ ![Dotfiles banner][banner]
13
+
14
+ ## πŸ…²πŸ…·πŸ…ΌπŸ…ΎπŸ…³ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
2
15
 
3
16
  These aliases provide shortcuts for the chmod command to help you
4
17
  quickly change the permissions of files and directories. To use them,
5
18
  add the following lines to your .bashrc or .bash_profile file.
6
19
 
7
- ## Aliases
8
-
9
20
  ### Change permissions
10
21
 
11
- - `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.
12
- - `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.
13
- - `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.
14
- - `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.
15
- - `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.
16
- - `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.
17
- - `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.
18
- - `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.
19
- - `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.
22
+ - `000`: (chmod a-rwx) sets permissions so that, (U)ser / owner can't
23
+ read, can't write and can't execute. (G)roup can't read, can't write
24
+ and can't execute. (O)thers can't read, can't write and can't execute.
25
+ - `400`: (chmod a-rw) sets permissions so that, (U)ser / owner can't
26
+ read, can't write and can execute. (G)roup can't read, can't write and
27
+ can execute. (O)thers can't read, can't write and can execute.
28
+ - `444`: (chmod a-r) sets permissions so that, (U)ser / owner can't
29
+ read, can't write and can execute. (G)roup can't read, can't write and
30
+ can execute. (O)thers can't read, can't write and can execute.
31
+ - `600`: (chmod a+rwx,u-x,g-rwx,o-rwx) sets permissions so that, (U)ser
32
+ / owner can read, can write and can't execute. (G)roup can't read,
33
+ can't write and can't execute. (O)thers can't read, can't write and
34
+ can't execute.
35
+ - `644`: (chmod a+rwx,u-x,g-wx,o-wx) sets permissions so that, (U)ser /
36
+ owner can read, can write and can't execute. (G)roup can read, can't
37
+ write and can't execute. (O)thers can read, can't write and can't
38
+ execute.
39
+ - `666`: (chmod a+rwx,u-x,g-x,o-x) sets permissions so that, (U)ser /
40
+ owner can read, can write and can't execute. (G)roup can read, can
41
+ write and can't execute. (O)thers can read, can write and can't
42
+ execute.
43
+ - `755`: (chmod a+rwx,g-w,o-w) sets permissions so that, (U)ser / owner
44
+ can read, can write and can execute. (G)roup can read, can't write
45
+ and can execute. (O)thers can read, can't write and can execute.
46
+ - `764`: (chmod a+rwx,g-x,o-wx) sets permissions so that, (U)ser /
47
+ owner can read, can write and can execute. (G)roup can read, can write
48
+ and can't execute. (O)thers can read, can't write and can't execute.
49
+ - `777`: (chmod a+rwx) sets permissions so that, (U)ser / owner can
50
+ read, can write and can execute. (G)roup can read, can write and can
51
+ execute. (O)thers can read, can write and can execute.
20
52
 
21
53
  ### Change ownership
22
54
 
23
55
  - `chgrp`: Change group ownership of files or directories.
24
56
  - `chgrpr`: Change group ownership of files or directories recursively.
25
- - `chgrpu`: Change group ownership of files or directories recursively to the current user.
57
+ - `chgrpu`: Change group ownership of files or directories recursively
58
+ to the current user.
26
59
  - `chmod`: Change file mode bits.
27
60
  - `chmodr`: Change file mode bits recursively.
28
61
  - `chmodu`: Change file mode bits recursively to the current user.
@@ -68,3 +101,5 @@ add the following lines to your .bashrc or .bash_profile file.
68
101
  - `755`: Set permissions to rwxr-xr-x.
69
102
  - `775`: Set permissions to rwxrwxr-x.
70
103
  - `777`: Set permissions to rwxrwxrwx.
104
+
105
+ [banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
@@ -4,7 +4,7 @@
4
4
  # Description: Sets aliases for the `chmod` command.
5
5
  # License: MIT
6
6
  # Script: chmod.aliases.sh
7
- # Version: 0.2.464
7
+ # Version: 0.2.465
8
8
  # Website: https://dotfiles.io
9
9
 
10
10
  # πŸ…²πŸ…·πŸ…ΌπŸ…ΎπŸ…³ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
@@ -1,38 +1,33 @@
1
- # CLEAR aliases
2
-
3
- These aliases provide shortcuts for the `clear` command. They are useful
4
- for clearing the terminal screen. The `clear` command is a built-in
5
- command in Bash, so these aliases are available in all Bash shells. To
6
- use them, add the following lines to your `.bashrc` or `.bash_profile`
7
- file.
8
-
9
- ## Aliases
10
-
11
- - `c`: Clear the terminal screen.
12
- - `cl`: Clear the terminal screen.
13
- - `cla`: Clear the terminal screen and print an empty line.
14
- - `clc`: Clear the terminal screen and print the contents of the current directory.
15
- - `clcat`: Clear the terminal screen and print the contents of the current directory.
16
- - `cld`: Clear the terminal screen and change to the specified directory.
17
- - `cldi`: Clear the terminal screen and move up one directory level.
18
- - `cle`: Clear the terminal screen and exit the terminal.
19
- - `clg`: Clear the terminal screen and print the current Git status.
20
- - `clh`: Clear the terminal screen and print the command history.
21
- - `clhist`: Clear the terminal screen and print the command history.
22
- - `cli`: Clear the terminal screen and start a new shell as the root user.
23
- - `clj`: Clear the terminal screen and print the current jobs.
24
- - `clk`: Clear the terminal screen and kill all processes matching the specified name.
25
- - `clp`: Clear the terminal screen and print the current working directory.
26
- - `clpwd`: Clear the terminal screen and print the current working directory.
27
- - `clq`: Clear the terminal screen and exit the terminal.
28
- - `clr`: Clear the terminal screen.
29
- - `cls`: Clear the terminal screen.
30
- - `clt`: Clear the terminal screen and print the directory tree.
31
- - `cltree`: Clear the terminal screen and print the directory tree.
32
- - `clu`: Clear the terminal screen, move up one directory level, and print the new working directory.
33
- - `clup`: Clear the terminal screen and move up two directory levels.
34
- - `clv`: Clear the terminal screen and print the current virtualenvwrapper information.
35
- - `ct`: Clear the terminal screen and print the directory tree.
36
- - `ctree`: Clear the terminal screen and print the directory tree.
37
- - `cpl`: Clear the terminal screen and print the current working directory and the contents of the current directory.
38
- - `cplt`: Clear the terminal screen and print the current working directory and the directory tree.- `
1
+ <!-- markdownlint-disable MD033 MD041 -->
2
+
3
+ <img src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
4
+ alt="dotfiles logo" width="261" align="right" />
5
+
6
+ <!-- markdownlint-enable MD033 MD041 -->
7
+
8
+ # Dotfiles (v0.2.465)
9
+
10
+ Simply designed to fit your shell life 🐚
11
+
12
+ ![Dotfiles banner][banner]
13
+
14
+ ## πŸ…²πŸ…»πŸ…΄πŸ…°πŸ† πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
15
+
16
+ This code provides a set of command aliases to make working with the
17
+ terminal easier and more efficient. The following aliases are included:
18
+
19
+ - `c` clears the terminal screen.
20
+ - `cdw` changes the current directory to the workspace directory.
21
+ - `cl` is an alias for `c`, which clears the terminal screen.
22
+ - `clc` clears the terminal screen and lists the contents of the current
23
+ directory.
24
+ - `clh` clears the terminal screen and prints the command history.
25
+ - `clp` clears the terminal screen and prints the current working
26
+ directory.
27
+ - `clt` clears the terminal screen and prints the directory tree.
28
+ - `cpl` clears the terminal screen and prints the current working
29
+ directory and the contents of the current directory.
30
+ - `cplt` clears the terminal screen and prints the current working
31
+ directory and the directory tree.
32
+
33
+ [banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg