@sebastienrousseau/dotfiles 0.2.463 β†’ 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 +34 -8
  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 +20 -26
  135. package/dist/lib/paths/ant/ant.paths.sh +9 -10
  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 +12 -13
  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 -7
  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
@@ -1,46 +1,43 @@
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 the `dig` command.
5
6
  # License: MIT
6
7
  # Script: dig.aliases.sh
7
- # Version: 0.2.463
8
+ # Version: 0.2.465
8
9
  # Website: https://dotfiles.io
9
10
 
10
11
  # πŸ…³πŸ…ΈπŸ…Ά πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
11
- if command -v 'dig' >/dev/null; then
12
- # DNS lookups with dig command
13
- alias d='$(which dig)' # d: Run the dig command with the default options.
14
- alias d4='$(which dig) +short -4' # d4: Perform a DNS lookup for an IPv4 address.
15
- alias d6='$(which dig) +short -6' # d6: Perform a DNS lookup for an IPv6 address.
16
- alias dga='$(which dig) +all ANY' # dga: Perform a DNS lookup for all records.
17
- alias dgs='$(which dig) +short' # dgs: Perform a DNS lookup for a short answer.
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
18
 
19
- # DNS lookups with specific options
20
- alias digg='$(which dig) @8.8.8.8 +nocmd any +multiline +noall +answer' # digg: Dig with Google's DNS.
19
+ # d6: Perform a DNS lookup for an IPv6 address.
20
+ alias d6='$(which dig) +short -6'
21
21
 
22
- # IP address lookups
23
- alias ip4='$(which dig) +short myip.opendns.com @resolver1.opendns.com -4' # ip4: Get your public IPv4 address.
24
- alias ip6='$(which dig) -6 AAAA +short myip.opendns.com. @resolver1.opendns.com.' # ip6: Get your public IPv6 address.
25
- alias ips='ip4; ip6' # ips: Get your public IPv4 and IPv6 addresses.
26
- alias wip='$(which dig) +short myip.opendns.com @resolver1.opendns.com' # wip: Get your public IP address.
22
+ # dga: Perform a DNS lookup for all records.
23
+ alias dga='$(which dig) +all ANY'
27
24
 
28
- # DNS lookups for MX records
29
- alias dmx='$(which dig) +short -t MX' # dmx: Perform a DNS lookup for MX records.
25
+ # dgs: Perform a DNS lookup for a short answer.
26
+ alias dgs='$(which dig) +short'
30
27
 
31
- # DNS lookups for NS records
32
- alias dns='$(which dig) +short -t NS' # dns: Perform a DNS lookup for NS records.
28
+ # digg: Dig with Google's DNS.
29
+ alias digg='$(which dig) @8.8.8.8 +nocmd any +multiline +noall +answer'
33
30
 
34
- # DNS lookups for CNAME records
35
- alias dc='$(which dig) +short -t CNAME' # dc: Perform a DNS lookup for CNAME records.
31
+ # ip4: Get your public IPv4 address.
32
+ alias ip4='$(which dig) +short myip.opendns.com @resolver1.opendns.com -4'
36
33
 
37
- # DNS lookups for SOA records
38
- alias dsoa='$(which dig) +short -t SOA' # dsoa: Perform a DNS lookup for SOA records.
34
+ # ip6: Get your public IPv6 address.
35
+ alias ip6='$(which dig) -6 AAAA +short myip.opendns.com. @resolver1.opendns.com.'
39
36
 
40
- # DNS lookups for TXT records
41
- alias dt='$(which dig) +short -t TXT' # dt: Perform a DNS lookup for TXT records.
37
+ # ips: Get your public IPv4 and IPv6 addresses.
38
+ alias ips='ip4; ip6'
42
39
 
43
- # DNS lookups for PTR records
44
- alias dptr='$(which dig) +short -x' # dptr: Perform a DNS lookup for PTR records.
40
+ # wip: Get your public IP address.
41
+ alias wip='$(which dig) +short myip.opendns.com @resolver1.opendns.com'
45
42
 
46
43
  fi
@@ -0,0 +1,32 @@
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 help users manage disk
17
+ usage on a Unix-based system.
18
+
19
+ The following aliases are provided:
20
+
21
+ - `du`: Display the disk usage of the current directory.
22
+ - `du1`: Show the file size of files and directories in the current
23
+ directory.
24
+ - `duh`: Show the file size of files and directories.
25
+ - `ducks`: Display the top 10 largest files and directories in the
26
+ current directory.
27
+ - `dus`: Show the file size in human-readable format, sorted by size.
28
+ - `dusym`: Show the file size of files and directories in the current
29
+ directory, including symlinks.
30
+ - `dut`: Show the total file size of the current directory.
31
+
32
+ [banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
@@ -0,0 +1,84 @@
1
+ #!/usr/bin/env bash
2
+
3
+ # Author: Sebastien Rousseau
4
+ # Copyright (c) 2015-2023. All rights reserved
5
+ # Description: Sets Disk Usage Aliases
6
+ # License: MIT
7
+ # Script: du.aliases.sh
8
+ # Version: 0.2.465
9
+ # Website: https://dotfiles.io
10
+
11
+ # πŸ…³πŸ…ΈπŸ†‚πŸ…Ί πŸ†„πŸ†‚πŸ…°πŸ…ΆπŸ…΄ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
12
+
13
+ if command -v 'du' >/dev/null; then
14
+
15
+ # Display the disk usage of the current directory.
16
+ alias du="du -h"
17
+
18
+ # File size of files and directories in current directory.
19
+ alias du1='du -hxd 1 | sort -h'
20
+
21
+ # Top 10 largest files and directories in current directory.
22
+ alias ducks="du -cks * .* | sort -rn | head -n 10"
23
+
24
+ # File size of files and directories.
25
+ alias duh='du'
26
+
27
+ # File size human readable output sorted by size.
28
+ alias dus='du -hs *'
29
+
30
+ # File size of files and directories in current directory including
31
+ # symlinks.
32
+ alias dusym="du * -hsLc"
33
+
34
+ # Total file size of current directory.
35
+ alias dut='dus'
36
+
37
+ # DNS aliases
38
+
39
+ # Run the dig command with the default options.
40
+ alias d='$(which dig)'
41
+
42
+ # Perform a DNS lookup for CNAME records.
43
+ alias dc='$(which dig) +short -t CNAME'
44
+
45
+ # Perform a DNS lookup for all records.
46
+ alias dga='$(which dig) +all ANY'
47
+
48
+ # Dig with Google's DNS.
49
+ alias digg='$(which dig) @8.8.8.8 +nocmd any +multiline +noall +answer'
50
+
51
+ # Perform a DNS lookup for a short answer.
52
+ alias dgs='$(which dig) +short'
53
+
54
+ # Perform a DNS lookup for NS records.
55
+ alias dns='$(which dig) +short -t NS'
56
+
57
+ # Perform a DNS lookup for MX records.
58
+ alias dmx='$(which dig) +short -t MX'
59
+
60
+ # Perform a DNS lookup for PTR records.
61
+ alias dptr='$(which dig) +short -x'
62
+
63
+ # Perform a DNS lookup for TXT records.
64
+ alias dt='$(which dig) +short -t TXT'
65
+
66
+ # Perform a DNS lookup for an IPv4 address.
67
+ alias d4='$(which dig) +short -4'
68
+
69
+ # Perform a DNS lookup for an IPv6 address.
70
+ alias d6='$(which dig) +short -6'
71
+
72
+ # Get your public IPv4 address.
73
+ alias ip4='$(which dig) +short myip.opendns.com @resolver1.opendns.com -4'
74
+
75
+ # Get your public IPv6 address.
76
+ alias ip6='$(which dig) -6 AAAA +short myip.opendns.com. @resolver1.opendns.com.'
77
+
78
+ # Get your public IPv4 and IPv6 addresses.
79
+ alias ips='ip4; ip6'
80
+
81
+ # Get your public IP address.
82
+ alias wip='$(which dig) +short myip.opendns.com @resolver1.opendns.com'
83
+
84
+ fi
@@ -1,47 +1,49 @@
1
- # Editor Aliases
1
+ <!-- markdownlint-disable MD033 MD041 -->
2
2
 
3
- These aliases provide shortcuts for common editor commands. To use them,
4
- add the following lines to your `.bashrc` or `.bash_profile` file.
3
+ <img src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
4
+ alt="dotfiles logo" width="261" align="right" />
5
5
 
6
- ## Aliases
6
+ <!-- markdownlint-enable MD033 MD041 -->
7
7
 
8
- ### Nano Aliases
8
+ # Dotfiles (v0.2.465)
9
9
 
10
- - `n`: Edit a file with Nano.
11
- - `nano1`: Edit a file with Nano, with cursor position display.
12
- - `nanos`: Edit a file with Nano, soft wrapping enabled.
10
+ Simply designed to fit your shell life 🐚
13
11
 
14
- ### Vim or Vi Aliases
12
+ ![Dotfiles banner][banner]
15
13
 
16
- - `v`: Edit a file with Vim.
17
- - `vi`: Edit a file with Vim.
18
- - `vimdiff`: Compare two files with Vimdiff.
19
- - `vimh`: Edit a file with Vim in no compatible mode.
20
- - `vims`: Edit a file with Vim, sourcing the given session file.
14
+ ## πŸ…΄πŸ…³πŸ…ΈπŸ†ƒπŸ…ΎπŸ† πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
21
15
 
22
- ### Visual Studio Code Aliases
16
+ This code provides command aliases for editing files on a Unix-based
17
+ system using various text editors.
23
18
 
24
- - `c`: Edit a file with Visual Studio Code.
25
- - `code1`: Edit a file with Visual Studio Code, with extensions disabled.
26
- - `codef`: Open a new instance of Visual Studio Code.
27
- - `cdiff`: Compare two files with Visual Studio Code.
19
+ The following editors are supported:
28
20
 
29
- ### Gedit Aliases
21
+ - nano (GNU nano)
22
+ - vim (Vim)
23
+ - vi (Vi)
24
+ - code (Visual Studio Code)
25
+ - gedit (gedit)
26
+ - notepad++ (Notepad++)
30
27
 
31
- - `g`: Edit a file with Gedit.
32
- - `gedit1`: Edit a file with Gedit and wait until it is closed.
33
- - `geditd`: Edit a file with Gedit, with split view enabled.
28
+ The aliases are designed to make it easy for users to quickly open and
29
+ edit files with their preferred text editor. The aliases are:
34
30
 
35
- ### Notepad++ Aliases
31
+ - `e`: Edit a file
32
+ - `edit`: Edit a file
33
+ - `editor`: Edit a file
34
+ - `mate`: Edit a file
35
+ - `n`: Edit a file
36
+ - `v`: Edit a file
36
37
 
37
- - `npp`: Edit a file with Notepad++.
38
- - `npp1`: Edit a file with Notepad++, without restoring a previous session.
38
+ The code checks if any of the supported editors are installed on the
39
+ system and sets the corresponding alias to open the file in the
40
+ available editor.
39
41
 
40
- ### Generic Editor Aliases
42
+ This makes it easy for users to switch between editors or use their
43
+ preferred editor without having to remember the specific command for
44
+ each editor.
41
45
 
42
- - `e`: Edit a file.
43
- - `edit`: Edit a file.
44
- - `editor`: Edit a file.
45
- - `mate`: Edit a file.
46
- - `n`: Edit a file.
47
- - `v`: Edit a file.
46
+ Enjoy the convenience of quickly editing files with these command
47
+ aliases!
48
+
49
+ [banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
@@ -1,52 +1,26 @@
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 Editor Aliases
5
6
  # License: MIT
6
7
  # Script: editor.aliases.sh
7
- # Version: 0.2.463
8
+ # Version: 0.2.465
8
9
  # Website: https://dotfiles.io
9
10
 
10
11
  # πŸ…΄πŸ…³πŸ…ΈπŸ†ƒπŸ…ΎπŸ† πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
12
+
11
13
  editors="nano vim vi code gedi notepad++"
12
14
  for editor in ${editors}; do
13
15
  if command -v "${editor}" &>/dev/null; then
14
- case "${editor}" in
15
- "nano")
16
- alias n='nano' # n: Edit a file with Nano.
17
- alias nano1='nano -c' # nano1: Edit a file with Nano, with cursor position display.
18
- alias nanos='nano -S' # nanos: Edit a file with Nano, soft wrapping enabled.
19
- ;;
20
- "vim" | "vi")
21
- alias v='vim' # v: Edit a file with Vim.
22
- alias vi='vim' # vi: Edit a file with Vim.
23
- alias vimdiff='vim -d' # vimdiff: Compare two files with Vimdiff.
24
- alias vimh='vim -u NONE -N' # vimh: Edit a file with Vim in no compatible mode.
25
- alias vims='vim -S' # vims: Edit a file with Vim, sourcing the given session file.
26
- ;;
27
- "code")
28
- alias c='code' # c: Edit a file with Visual Studio Code.
29
- alias code1='code --disable-extensions' # code1: Edit a file with Visual Studio Code, with extensions disabled.
30
- alias codef='code --new-window' # codef: Open a new instance of Visual Studio Code.
31
- alias cdiff='code --diff' # cdiff: Compare two files with Visual Studio Code.
32
- ;;
33
- "gedi")
34
- alias g='gedit' # g: Edit a file with Gedit.
35
- alias gedit1='gedit -w' # gedit1: Edit a file with Gedit and wait until it is closed.
36
- alias geditd='gedit -s' # geditd: Edit a file with Gedit, with split view enabled.
37
- ;;
38
- "notepad++")
39
- alias npp='notepad++' # npp: Edit a file with Notepad++.
40
- alias npp1='notepad++ -nosession' # npp1: Edit a file with Notepad++, without restoring a previous session.
41
- ;;
42
- *) ;;
43
- esac
44
- alias e='${editor}' # e: Edit a file.
45
- alias edit='${editor}' # edit: Edit a file.
46
- alias editor='${editor}' # editor: Edit a file.
47
- alias mate='${editor}' # mate: Edit a file.
48
- alias n='${editor}' # n: Edit a file.
49
- alias v='${editor}' # v: Edit a file.
16
+ # Edit aliases
17
+ alias e='${editor}'
18
+ alias edit='${editor}'
19
+ alias editor='${editor}'
20
+ alias mate='${editor}'
21
+ alias n='${editor}'
22
+ alias v='${editor}'
23
+
50
24
  break
51
25
  fi
52
26
  done
@@ -1,29 +1,42 @@
1
- # Find Aliases
2
-
3
- These aliases provide shortcuts for common find commands. To use them,
4
- add the following lines to your `.bashrc` or `.bash_profile` file.
5
-
6
- ## Aliases
7
-
8
- - `fd`: always colorize output by default.
9
- - `fda`: list all files with absolute path.
10
- - `fdb`: list all files with a base directory.
11
- - `fdc`: list all files with case insensitive search.
12
- - `fdd`: list all files with details.
13
- - `fdD`: search up to a maximum depth.
14
- - `fde`: list all files with extension.
15
- - `fdf`: list all files with follow symlinks.
16
- - `fdh`: list all files with hidden files.
17
- - `fdl`: list all files following symlinks.
18
- - `fdn`: list all files with glob.
19
- - `fdo`: list all files with owner.
20
- - `fdp`: list all files with the full path.
21
- - `fdr`: list only directories.
22
- - `fds`: list all files with size.
23
- - `fdsy`: list only symlinks.
24
- - `fdt`: list all files of a specific type.
25
- - `fdu`: list all files with exclude.
26
- - `fdv`: list all files with version.
27
- - `fdx`: Execute a command for each search result.
28
- - `fdz`: list all files with size of 0 bytes.
29
- - `find`: fd is a simple, fast and user-friendly alternative to find.
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 for the `fd` utility that is
17
+ an alternative to the `find` command on Unix-based systems.
18
+
19
+ `fd` is a simple, fast, and user-friendly tool that can be used to
20
+ search for files and directories in a given path. These aliases make it
21
+ easier to use `fd` by providing simple and memorable commands for common
22
+ use cases.
23
+
24
+ Here are some of the available aliases:
25
+
26
+ - `fd` is the default alias for `fd --color always` that lists all files
27
+ with colorized output.
28
+ - `fda` lists all files with absolute paths.
29
+ - `fdc` lists all files with case-insensitive search.
30
+ - `fdd` lists all files with details.
31
+ - `fde` lists all files with a specified extension.
32
+ - `fdf` lists all files while following symbolic links.
33
+ - `fdh` shows help for `fd`.
34
+ - `fdh` lists all files, including hidden files.
35
+ - `fdn` lists all files that match a specified glob.
36
+ - `fdo` lists all files with owner information.
37
+ - `fds` lists all files with size.
38
+ - `fdu` lists all files with exclusion rules.
39
+ - `fdv` shows the version of `fd`.
40
+ - `fdx` executes a command for each search result.
41
+
42
+ [banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
@@ -1,34 +1,60 @@
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 Find Aliases
5
6
  # License: MIT
6
7
  # Script: find.aliases.sh
7
- # Version: 0.2.463
8
+ # Version: 0.2.465
8
9
  # Website: https://dotfiles.io
9
10
 
10
11
  # πŸ…΅πŸ…ΈπŸ…½πŸ…³ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
11
- if command -v 'fd' >/dev/null; then
12
- alias fd='fd --color always' # fd: always colorize output by default.
13
- alias fda='fd --absolute-path' # fda: list all files with absolute path.
14
- alias fdb='fd --base-directory' # fdb: list all files with a base directory.
15
- alias fdc='fd --ignore-case' # fdc: list all files with case insensitive search.
16
- alias fdd='fd --list-details' # fdd: list all files with details.
17
- alias fdD='fd --max-depth' # fdD: search up to a maximum depth.
18
- alias fde='fd --extension' # fde: list all files with extension.
19
- alias fdf='fd --follow' # fdf: list all files with follow symlinks.
20
- alias fdh='fd --hidden' # fdh: list all files with hidden files.
21
- alias fdl='fd --follow --type file' # fdl: list all files following symlinks.
22
- alias fdn='fd --glob' # fdn: list all files with glob.
23
- alias fdo='fd --owner' # fdo: list all files with owner.
24
- alias fdp='fd --full-path' # fdp: list all files with the full path.
25
- alias fdr='fd --type directory' # fdr: list only directories.
26
- alias fds='fd --size' # fds: list all files with size.
27
- alias fdsy='fd --type symlink' # fdsy: list only symlinks.
28
- alias fdt='fd --type' # fdt: list all files of a specific type.
29
- alias fdu='fd --exclude' # fdu: list all files with exclude.
30
- alias fdv='fd --version' # fdv: list all files with version.
31
- alias fdx='fd --exec' # fdx: Execute a command for each search result.
32
- alias fdz='fd --size -0' # fdz: list all files with size of 0 bytes.
33
- alias find='fd' # find: fd is a simple, fast and user-friendly alternative to find.
12
+
13
+ if command -v fd &>/dev/null; then
14
+ # fd: a simple, fast and user-friendly alternative to find
15
+ # Always colorize output by default.
16
+ alias fd='fd --color always'
17
+
18
+ # List all files with absolute path.
19
+ alias fda='fd --absolute-path'
20
+
21
+ # List all files with case-insensitive search.
22
+ alias fdc='fd --ignore-case'
23
+
24
+ # List all files with details.
25
+ alias fdd='fd --list-details'
26
+
27
+ # List all files with extension.
28
+ alias fde='fd --extension'
29
+
30
+ # List all files with follow symlinks.
31
+ alias fdf='fd --follow'
32
+
33
+ # List all files with help.
34
+ alias fdh='fd --help'
35
+
36
+ # List all files, including hidden files.
37
+ alias fdh='fd --hidden'
38
+
39
+ # List all files with glob.
40
+ alias fdn='fd --glob'
41
+
42
+ # List all files with owner.
43
+ alias fdo='fd --owner'
44
+
45
+ # List all files with size.
46
+ alias fds='fd --size'
47
+
48
+ # List all files with exclude.
49
+ alias fdu='fd --exclude'
50
+
51
+ # List all files with version.
52
+ alias fdv='fd --version'
53
+
54
+ # Execute a command for each search result.
55
+ alias fdx='fd --exec'
56
+
57
+ # Use fd as a replacement for find.
58
+ alias find='fd'
59
+
34
60
  fi