@sebastienrousseau/dotfiles 0.2.464 β†’ 0.2.466

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 (174) hide show
  1. package/LICENSE +20 -17
  2. package/README.md +210 -382
  3. package/dist/Makefile +2 -2
  4. package/dist/bin/constants.d.ts +2 -2
  5. package/dist/bin/constants.d.ts.map +1 -1
  6. package/dist/bin/constants.js +1 -1
  7. package/dist/bin/constants.js.map +1 -1
  8. package/dist/filesizes.txt +170 -144
  9. package/dist/lib/README.md +6 -1
  10. package/dist/lib/aliases/README.md +51 -0
  11. package/dist/lib/aliases/archives/README.md +39 -67
  12. package/dist/lib/aliases/archives/archives.aliases.sh +128 -60
  13. package/dist/lib/aliases/cd/README.md +26 -9
  14. package/dist/lib/aliases/cd/cd.aliases.sh +1 -4
  15. package/dist/lib/aliases/chmod/README.md +48 -13
  16. package/dist/lib/aliases/chmod/chmod.aliases.sh +1 -1
  17. package/dist/lib/aliases/clear/README.md +33 -38
  18. package/dist/lib/aliases/clear/clear.aliases.sh +35 -33
  19. package/dist/lib/aliases/configuration/README.md +26 -37
  20. package/dist/lib/aliases/configuration/configuration.aliases.sh +40 -36
  21. package/dist/lib/aliases/default/README.md +26 -52
  22. package/dist/lib/aliases/default/default.aliases.sh +105 -44
  23. package/dist/lib/aliases/dig/README.md +23 -40
  24. package/dist/lib/aliases/dig/dig.aliases.sh +26 -29
  25. package/dist/lib/aliases/disk-usage/README.md +32 -0
  26. package/dist/lib/aliases/disk-usage/du.aliases.sh +84 -0
  27. package/dist/lib/aliases/editor/README.md +35 -33
  28. package/dist/lib/aliases/editor/editor.aliases.sh +13 -39
  29. package/dist/lib/aliases/find/README.md +42 -29
  30. package/dist/lib/aliases/find/find.aliases.sh +52 -26
  31. package/dist/lib/aliases/gcloud/README.md +59 -148
  32. package/dist/lib/aliases/gcloud/gcloud.aliases.sh +327 -138
  33. package/dist/lib/aliases/git/README.md +149 -0
  34. package/dist/lib/aliases/git/git.aliases.sh +535 -131
  35. package/dist/lib/aliases/gnu/README.md +85 -0
  36. package/dist/lib/aliases/gnu/gnucoreutils-aliases.sh +143 -109
  37. package/dist/lib/aliases/heroku/README.md +426 -0
  38. package/dist/lib/aliases/heroku/heroku.aliases.sh +1047 -288
  39. package/dist/lib/aliases/interactive/README.md +43 -0
  40. package/dist/lib/aliases/interactive/interactive.aliases.sh +48 -9
  41. package/dist/lib/aliases/jekyll/README.md +37 -0
  42. package/dist/lib/aliases/jekyll/jekyll.aliases.sh +49 -10
  43. package/dist/lib/aliases/list/README.md +38 -0
  44. package/dist/lib/aliases/list/list.aliases.sh +81 -30
  45. package/dist/lib/aliases/macOS/README.md +38 -0
  46. package/dist/lib/aliases/macOS/macos.aliases.sh +65 -0
  47. package/dist/lib/aliases/make/README.md +28 -0
  48. package/dist/lib/aliases/make/make.aliases.sh +30 -10
  49. package/dist/lib/aliases/mkdir/README.md +26 -0
  50. package/dist/lib/aliases/mkdir/mkdir.aliases.sh +24 -8
  51. package/dist/lib/aliases/npm/README.md +37 -0
  52. package/dist/lib/aliases/npm/npm.aliases.sh +54 -17
  53. package/dist/lib/aliases/permission/README.md +43 -0
  54. package/dist/lib/aliases/permission/permission.aliases.sh +73 -0
  55. package/dist/lib/aliases/pnpm/README.md +49 -0
  56. package/dist/lib/aliases/pnpm/pnpm.aliases.sh +70 -36
  57. package/dist/lib/aliases/ps/README.md +25 -0
  58. package/dist/lib/aliases/ps/ps.aliases.sh +14 -6
  59. package/dist/lib/aliases/rsync/README.md +21 -0
  60. package/dist/lib/aliases/rsync/rsync.aliases.sh +10 -4
  61. package/dist/lib/aliases/rust/README.md +57 -0
  62. package/dist/lib/aliases/rust/rust.aliases.sh +116 -39
  63. package/dist/lib/aliases/subversion/README.md +62 -0
  64. package/dist/lib/aliases/subversion/subversion.aliases.sh +4 -3
  65. package/dist/lib/aliases/sudo/README.md +23 -0
  66. package/dist/lib/aliases/sudo/sudo.aliases.sh +15 -6
  67. package/dist/lib/aliases/tmux/README.md +27 -0
  68. package/dist/lib/aliases/tmux/tmux.aliases.sh +29 -10
  69. package/dist/lib/aliases/update/README.md +34 -0
  70. package/dist/lib/aliases/update/update.aliases.sh +57 -26
  71. package/dist/lib/aliases/uuid/README.md +20 -0
  72. package/dist/lib/aliases/uuid/uuid.aliases.sh +13 -4
  73. package/dist/lib/aliases/wget/README.md +23 -0
  74. package/dist/lib/aliases/wget/wget.aliases.sh +15 -6
  75. package/dist/lib/aliases.sh +4 -3
  76. package/dist/lib/configurations/README.md +13 -2
  77. package/dist/lib/configurations/bash/bashrc +4 -3
  78. package/dist/lib/configurations/curl/curlrc +2 -2
  79. package/dist/lib/configurations/default/color.sh +3 -2
  80. package/dist/lib/configurations/default/constants.sh +4 -3
  81. package/dist/lib/configurations/default/editor.sh +3 -2
  82. package/dist/lib/configurations/default/prompt.sh +3 -2
  83. package/dist/lib/configurations/input/inputrc +2 -2
  84. package/dist/lib/configurations/nano/nanorc +2 -2
  85. package/dist/lib/configurations/profile/profile +2 -2
  86. package/dist/lib/configurations/tmux/default +2 -2
  87. package/dist/lib/configurations/tmux/display +6 -2
  88. package/dist/lib/configurations/tmux/linux +2 -2
  89. package/dist/lib/configurations/tmux/navigation +2 -2
  90. package/dist/lib/configurations/tmux/panes +2 -2
  91. package/dist/lib/configurations/tmux/theme +3 -3
  92. package/dist/lib/configurations/tmux/tmux +2 -2
  93. package/dist/lib/configurations/tmux/vi +2 -2
  94. package/dist/lib/configurations/vim/vimrc +1 -1
  95. package/dist/lib/configurations/wget/wgetrc +2 -2
  96. package/dist/lib/configurations/zsh/zshrc +2 -2
  97. package/dist/lib/configurations.sh +4 -3
  98. package/dist/lib/functions/README.md +73 -2
  99. package/dist/lib/functions/cdls.sh +3 -2
  100. package/dist/lib/functions/curlheader.sh +3 -2
  101. package/dist/lib/functions/curlstatus.sh +17 -0
  102. package/dist/lib/functions/curltime.sh +4 -3
  103. package/dist/lib/functions/encode64.sh +3 -2
  104. package/dist/lib/functions/environment.sh +3 -2
  105. package/dist/lib/functions/extract.sh +3 -2
  106. package/dist/lib/functions/filehead.sh +1 -1
  107. package/dist/lib/functions/freespace.sh +21 -0
  108. package/dist/lib/functions/genpwd.sh +33 -7
  109. package/dist/lib/functions/goto.sh +3 -2
  110. package/dist/lib/functions/hidehiddenfiles.sh +3 -2
  111. package/dist/lib/functions/hostinfo.sh +3 -2
  112. package/dist/lib/functions/hstats.sh +3 -2
  113. package/dist/lib/functions/httpdebug.sh +3 -2
  114. package/dist/lib/functions/keygen.sh +20 -13
  115. package/dist/lib/functions/last.sh +3 -2
  116. package/dist/lib/functions/logout.sh +3 -2
  117. package/dist/lib/functions/lowercase.sh +3 -2
  118. package/dist/lib/functions/matrix.sh +15 -14
  119. package/dist/lib/functions/mount_read_only.sh +3 -2
  120. package/dist/lib/functions/myproc.sh +4 -3
  121. package/dist/lib/functions/prependpath.sh +3 -2
  122. package/dist/lib/functions/ql.sh +3 -2
  123. package/dist/lib/functions/rd.sh +3 -2
  124. package/dist/lib/functions/remove_disk.sh +3 -2
  125. package/dist/lib/functions/ren.sh +3 -2
  126. package/dist/lib/functions/showhiddenfiles.sh +3 -2
  127. package/dist/lib/functions/size.sh +3 -2
  128. package/dist/lib/functions/stopwatch.sh +4 -3
  129. package/dist/lib/functions/uppercase.sh +3 -2
  130. package/dist/lib/functions/view-source.sh +3 -2
  131. package/dist/lib/functions/vscode.sh +3 -2
  132. package/dist/lib/functions/whoisport.sh +3 -2
  133. package/dist/lib/functions/zipf.sh +3 -2
  134. package/dist/lib/functions.sh +4 -3
  135. package/dist/lib/history.sh +4 -4
  136. package/dist/lib/paths/ant/ant.paths.sh +3 -2
  137. package/dist/lib/paths/default/default.paths.sh +3 -2
  138. package/dist/lib/paths/homebrew/homebrew.paths.sh +3 -2
  139. package/dist/lib/paths/java/java.paths.sh +3 -2
  140. package/dist/lib/paths/maven/maven.paths.sh +3 -2
  141. package/dist/lib/paths/node/node.paths.sh +3 -2
  142. package/dist/lib/paths/nvm/nvm.paths.sh +3 -2
  143. package/dist/lib/paths/pnpm/pnpm.paths.sh +3 -2
  144. package/dist/lib/paths/python/python.paths.sh +3 -2
  145. package/dist/lib/paths/ruby/ruby.paths.sh +3 -2
  146. package/dist/lib/paths/tmux/tmux.paths.sh +3 -2
  147. package/dist/lib/paths.sh +4 -3
  148. package/dist/scripts/backup.sh +3 -2
  149. package/dist/scripts/banner.sh +3 -2
  150. package/dist/scripts/build.sh +3 -2
  151. package/dist/scripts/clean.sh +3 -2
  152. package/dist/scripts/compile.sh +3 -2
  153. package/dist/scripts/copy.sh +3 -2
  154. package/dist/scripts/dotfiles.sh +3 -2
  155. package/dist/scripts/download.sh +3 -2
  156. package/dist/scripts/help.sh +3 -2
  157. package/dist/scripts/ssh.sh +3 -2
  158. package/dist/scripts/unpack.sh +3 -2
  159. package/package.json +7 -7
  160. package/dist/lib/aliases/du/README.md +0 -35
  161. package/dist/lib/aliases/du/du.aliases.sh +0 -37
  162. package/dist/lib/functions/changediskpwd.tmp +0 -19
  163. package/dist/lib/functions/code.tmp +0 -18
  164. package/dist/lib/functions/countdown.tmp +0 -34
  165. package/dist/lib/functions/headers.tmp +0 -4
  166. package/dist/lib/functions/history-all.tmp +0 -8
  167. package/dist/lib/functions/macos.sh +0 -47
  168. package/dist/lib/functions/mcd.tmp +0 -19
  169. package/dist/lib/functions/print.tmp +0 -14
  170. package/dist/lib/functions/rm.tmp +0 -14
  171. package/dist/lib/functions/rps.tmp +0 -104
  172. package/dist/lib/functions/trash.tmp +0 -14
  173. package/dist/lib/functions/tree.tmp +0 -14
  174. package/dist/lib/functions/uuidgen.tmp +0 -28
@@ -1,40 +1,42 @@
1
1
  #!/usr/bin/env bash
2
- # Author: Sebastien Rousseau
2
+
3
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.466) - <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 `clear` command.
5
6
  # License: MIT
6
7
  # Script: clear.aliases.sh
7
- # Version: 0.2.464
8
+ # Version: 0.2.466
8
9
  # Website: https://dotfiles.io
9
10
 
10
11
  # πŸ…²πŸ…»πŸ…΄πŸ…°πŸ† πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
11
- if command -v 'clear' >/dev/null; then
12
- alias c="clear" # c: Clear the terminal screen.
13
- alias cl="c" # cl: Clear the terminal screen.
14
- alias cla="clear && echo ''" # cla: Clear the terminal screen and print an empty line.
15
- alias clc="clear && cat" # clc: Clear the terminal screen and print the contents of the current directory.
16
- alias clcat="clc" # clcat: Clear the terminal screen and print the contents of the current directory.
17
- alias cld="clear && cd" # cld: Clear the terminal screen and change to the specified directory.
18
- alias cldi="clear && cd .." # cldi: Clear the terminal screen and move up one directory level.
19
- alias cle="clear && exit" # cle: Clear the terminal screen and exit the terminal.
20
- alias clg="clear && git status" # clg: Clear the terminal screen and print the current Git status.
21
- alias clh="clear && history" # clh: Clear the terminal screen and print the command history.
22
- alias clhist="clh" # clhist: Clear the terminal screen and print the command history.
23
- alias cli="clear && sudo -i" # cli: Clear the terminal screen and start a new shell as the root user.
24
- alias clj="clear && jobs" # clj: Clear the terminal screen and print the current jobs.
25
- alias clk="clear && killall" # clk: Clear the terminal screen and kill all processes matching the specified name.
26
- alias clp="clear && pwd" # clp: Clear the terminal screen and print the current working directory.
27
- alias clpwd="clp" # clpwd: Clear the terminal screen and print the current working directory.
28
- alias clq="clear && exit" # clq: Clear the terminal screen and exit the terminal.
29
- alias clr="c" # clr: Clear the terminal screen.
30
- alias cls="c" # cls: Clear the terminal screen.
31
- alias clt="clear && tree" # clt: Clear the terminal screen and print the directory tree.
32
- alias cltree="clt" # cltree: Clear the terminal screen and print the directory tree.
33
- alias clu="clear && cd .. && pwd" # clu: Clear the terminal screen, move up one directory level, and print the new working directory.
34
- alias clup="clear && cd ../.." # clup: Clear the terminal screen and move up two directory levels.
35
- alias clv="clear && virtualenvwrapper" # clv: Clear the terminal screen and print the current virtualenvwrapper information.
36
- alias ct="clear && tree ./" # ct: Clear the terminal screen and print the directory tree.
37
- alias ctree="ct" # ctree: Clear the terminal screen and print the directory tree.
38
- alias cpl="clear && pwd && echo '' && ls -a && echo ''" # cpl: Clear the terminal screen and print the current working directory and the contents of the current directory.
39
- alias cplt="clear && pwd && echo '' && tree ./ && echo ''" # cplt: Clear the terminal screen and print the current working directory and the directory tree.
40
- fi
12
+
13
+ # Alias to change to the workspace directory
14
+ alias cdw="cd ~/workspace"
15
+
16
+ # Alias to clear the terminal screen
17
+ alias c="clear"
18
+
19
+ # Alias to clear the terminal screen and list the contents of the
20
+ # current directory
21
+ alias clc="clear && ls -a"
22
+
23
+ # Alias to clear the terminal screen and print the current working
24
+ # directory and the contents of the current directory
25
+ alias cpl="clear && pwd && echo '' && ls -a && echo ''"
26
+
27
+ # Alias to clear the terminal screen and print the current working
28
+ # directory and the directory tree
29
+ alias cplt="clear && pwd && echo '' && tree ./ && echo ''"
30
+
31
+ # Alias to clear the terminal screen and print the command history
32
+ alias clh="clear && history"
33
+
34
+ # Alias to clear the terminal screen
35
+ alias cl="c"
36
+
37
+ # Alias to clear the terminal screen and print the current
38
+ # working directory
39
+ alias clp="pwd"
40
+
41
+ # Alias to clear the terminal screen and print the directory tree
42
+ alias clt="clear && tree"
@@ -1,46 +1,35 @@
1
- # Configuration aliases
1
+ <!-- markdownlint-disable MD033 MD041 -->
2
2
 
3
- These aliases provide configuration shortcuts. They are useful for
4
- configuring the terminal. To use them, add the following lines to your
5
- `.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" />
6
5
 
7
- ## Aliases
6
+ <!-- markdownlint-enable MD033 MD041 -->
8
7
 
9
- ### Bash aliases
8
+ # Dotfiles (v0.2.466)
10
9
 
11
- - `brc`: Open the Bash configuration file in the default text editor.
12
- - `brhp`: Open the Bash profile file in the default text editor.
13
- - `benv`: Open the Bash environment file in the default text editor.
14
- - `bali`: Open the Bash aliases file in the default text editor.
15
- - `bhist`: Open the Bash history file in the default text editor.
16
- - `binput`: Open the Bash input file in the default text editor.
17
- - `bhlp`: Open the Bash help file in the default text editor.
10
+ Simply designed to fit your shell life 🐚
18
11
 
19
- ### Git aliases
12
+ ![Dotfiles banner][banner]
20
13
 
21
- - `gco`: Open the Git configuration file in the default text editor.
22
- - `gign`: Open the Git ignore file in the default text editor.
23
- - `glog`: Open the Git log file in the default text editor.
24
- - `gmsg`: Open the Git commit message file in the default text editor.
14
+ ## πŸ…²πŸ…ΎπŸ…½πŸ…΅πŸ…ΈπŸ…ΆπŸ†„πŸ†πŸ…°πŸ†ƒπŸ…ΈπŸ…ΎπŸ…½ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
25
15
 
26
- ### Nano aliases
16
+ This code provides a set of command aliases to open important
17
+ configuration files in default text editors quickly and easily. The
18
+ following aliases are included:
27
19
 
28
- - `n`: Open Nano text editor.
29
- - `nano`: Open Nano text editor with automatic line wrapping.
30
- - `nanow`: Open Nano text editor with settings for editing whitespace.
20
+ - `apconf` opens the Apache configuration file in the default text
21
+ editor.
22
+ - `bshrc` opens the Bash configuration file in the default text editor.
23
+ - `bshp` opens the Bash profile in the default text editor.
24
+ - `dockcomp` opens the Docker Compose file in the default text editor.
25
+ - `eddir` opens the current directory in the default text editor.
26
+ - `gcfg` opens the Git configuration file in the default text editor.
27
+ - `gign` opens the Git ignore file in the default text editor.
28
+ - `hosts` opens the hosts file in the default text editor.
29
+ - `ngconf` opens the Nginx configuration file in the default text
30
+ editor.
31
+ - `sshconf` opens the SSH configuration file in the default text editor.
32
+ - `zshrc` opens the Zsh configuration file in the default text editor.
33
+ - `zshp` opens the Zsh profile in the default text editor.
31
34
 
32
- ### Zsh aliases
33
-
34
- - `zrc`: Open the Zsh configuration file in the default text editor.
35
- - `zenv`: Open the Zsh environment file in the default text editor.
36
- - `zali`: Open the Zsh aliases file in the default text editor.
37
- - `zfunc`: Open the Zsh functions file in the default text editor.
38
- - `zhlp`: Open the Zsh help file in the default text editor.
39
-
40
- ### Vim aliases
41
-
42
- - `vimrc`: Open the Vim configuration file in the default text editor.
43
- - `vimft`: Open the Vim filetype file in the default text editor.
44
- - `vimftd`: Open the Vim ftdetect directory in the default file manager.
45
- - `vimftpl`: Open the Vim ftplugin directory in the default file manager.
46
- - `vimplt`: Open the Vim plugin directory in the default file manager.
35
+ [banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
@@ -1,43 +1,47 @@
1
1
  #!/usr/bin/env bash
2
- # Author: Sebastien Rousseau
2
+
3
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.466) - <https://dotfiles.io>
4
+ # Made with β™₯ in London, UK by @wwdseb
3
5
  # Copyright (c) 2015-2023. All rights reserved
4
- # Description: Sets configuration aliases.
5
6
  # License: MIT
6
7
  # Script: configuration.aliases.sh
7
- # Version: 0.2.464
8
+ # Version: 0.2.466
8
9
  # Website: https://dotfiles.io
9
10
 
10
11
  # πŸ…²πŸ…ΎπŸ…½πŸ…΅πŸ…ΈπŸ…ΆπŸ†„πŸ†πŸ…°πŸ†ƒπŸ…ΈπŸ…ΎπŸ…½ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
11
- # Bash aliases
12
- alias brc='${=EDITOR} ~/.bashrc' # brc: Open the Bash configuration file in the default text editor.
13
- alias brhp='${=EDITOR} ~/.bash_profile' # brhp: Open the Bash profile file in the default text editor.
14
- alias benv='${=EDITOR} ~/.bash_env' # benv: Open the Bash environment file in the default text editor.
15
- alias bali='${=EDITOR} ~/.bash_aliases' # bali: Open the Bash aliases file in the default text editor.
16
- alias bhist='${=EDITOR} ~/.bash_history' # bhist: Open the Bash history file in the default text editor.
17
- alias binput='${=EDITOR} ~/.inputrc' # binput: Open the Bash input file in the default text editor.
18
- alias bhlp='${=EDITOR} ~/.bash_help' # bhlp: Open the Bash help file in the default text editor.
19
-
20
- # Git aliases
21
- alias gco='${=EDITOR} ~/.gitconfig' # gco: Open the Git configuration file in the default text editor.
22
- alias gign='${=EDITOR} ~/.gitignore' # gign: Open the Git ignore file in the default text editor.
23
- alias glog='${=EDITOR} ~/.git-log' # glog: Open the Git log file in the default text editor.
24
- alias gmsg='${=EDITOR} ~/.gitmessage' # gmsg: Open the Git commit message file in the default text editor.
25
-
26
- # Nano aliases
27
- alias n="nano" # n: Open Nano text editor.
28
- alias nano="nano -w" # nano: Open Nano text editor with automatic line wrapping.
29
- alias nanow="nano -r -c -i -w -T 4" # nanow: Open Nano text editor with settings for editing whitespace.
30
-
31
- # Zsh aliases
32
- alias zrc='${=EDITOR} ~/.zshrc' # zrc: Open the Zsh configuration file in the default text editor.
33
- alias zenv='${=EDITOR} ~/.zshenv' # zenv: Open the Zsh environment file in the default text editor.
34
- alias zali='${=EDITOR} ~/.zsh_aliases' # zali: Open the Zsh aliases file in the default text editor.
35
- alias zfunc='${=EDITOR} ~/.zsh_functions' # zfunc: Open the Zsh functions file in the default text editor.
36
- alias zhlp='${=EDITOR} ~/.zsh_help' # zhlp: Open the Zsh help file in the default text editor.
37
-
38
- # Vim aliases
39
- alias vimrc='${=EDITOR} ~/.vimrc' # vimrc: Open the Vim configuration file in the default text editor.
40
- alias vimft='${=EDITOR} ~/.vim/filetype.vim' # vimft: Open the Vim filetype file in the default text editor.
41
- alias vimftd='${=EDITOR} ~/.vim/ftdetect/' # vimftd: Open the Vim ftdetect directory in the default file manager.
42
- alias vimftpl='${=EDITOR} ~/.vim/ftplugin/' # vimftpl: Open the Vim ftplugin directory in the default file manager.
43
- alias vimplt='${=EDITOR} ~/.vim/plugin/' # vimplt: Open the Vim plugin directory in the default file manager.
12
+
13
+ # Alias to open the Apache configuration file in the default text editor
14
+ alias apconf='${=EDITOR} /etc/apache2/apache2.conf'
15
+
16
+ # Alias to open the Bash configuration file in the default text editor
17
+ alias bshrc='${=EDITOR} $HOME/.bashrc'
18
+
19
+ # Alias to open the Bash profile in the default text editor
20
+ alias bshp='${=EDITOR} $HOME/.bash_profile'
21
+
22
+ # Alias to open the Docker Compose file in the default text editor
23
+ alias dockcomp='${=EDITOR} docker-compose.yml'
24
+
25
+ # Alias to open the current directory in the default text editor
26
+ alias eddir='${=EDITOR} .'
27
+
28
+ # Alias to open the Git configuration file in the default text editor
29
+ alias gcfg='${=EDITOR} $HOME/.gitconfig'
30
+
31
+ # Alias to open the Git ignore file in the default text editor
32
+ alias gign='${=EDITOR} $HOME/.gitignore'
33
+
34
+ # Alias to open the hosts file in the default text editor
35
+ alias hosts='${=EDITOR} /etc/hosts'
36
+
37
+ # Alias to open the Nginx configuration file in the default text editor
38
+ alias ngconf='${=EDITOR} /etc/nginx/nginx.conf'
39
+
40
+ # Alias to open the SSH configuration file in the default text editor
41
+ alias sshconf='${=EDITOR} $HOME/.ssh/config'
42
+
43
+ # Alias to open the Zsh configuration file in the default text editor
44
+ alias zshrc='${=EDITOR} $HOME/.zshrc'
45
+
46
+ # Alias to open the Zsh profile in the default text editor
47
+ alias zshp='${=EDITOR} $HOME/.zsh_profile'
@@ -1,62 +1,36 @@
1
- # Default aliases
1
+ <!-- markdownlint-disable MD033 MD041 -->
2
2
 
3
- These aliases provide default aliases. They are useful for configuring
4
- the terminal. To use them, add the following lines to your `.bashrc` or
5
- `.bash_profile` file.
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
- ### Directory aliases
8
+ # Dotfiles (v0.2.466)
10
9
 
11
- - `ctf`: Count the number of files in the current directory.
12
- - `p`: Print working directory.
10
+ Simply designed to fit your shell life 🐚
13
11
 
14
- ### Exit aliases
12
+ ![Dotfiles banner][banner]
15
13
 
16
- - `bye`: Exit the shell.
17
- - `q`: Exit the shell.
18
- - `quit`: Exit the shell.
14
+ ## πŸ…³πŸ…΄πŸ…΅πŸ…°πŸ†„πŸ…»πŸ†ƒ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
19
15
 
20
- ### Misc aliases
16
+ This code provides a set of command aliases to make common tasks and
17
+ commands more convenient and faster to execute. These aliases range from
18
+ general purpose to system monitoring and file system navigation.
21
19
 
22
- - `h`: Display command history.
23
- - `ipinfo`: Get network interface parameters for en0.
24
- - `path`: Display the $PATH variable on newlines.
25
- - `please`: Run command as superuser.
26
- - `spd`: Remove all log files in /private/var/log/asl/.
27
- - `srv`: Start a simple HTTP server.
28
- - `t`: Print last 10 lines of a file in real time.
29
- - `x`: Exit the shell.
20
+ Some of the most useful aliases include:
30
21
 
31
- ### Package manager aliases
22
+ - `c`: shortcut for the `clear` command to clear the terminal screen.
23
+ - `p`: shortcut for the `pwd` command to display the current working
24
+ directory.
25
+ - `h`: lists all recently used commands.
26
+ - `path`: displays the `$PATH` variable on new lines.
27
+ - `quit`: shortcut for the `exit` command to exit the shell.
28
+ - `halt`, `poweroff`, `reboot`: system shutdown and reboot commands.
29
+ - `srv`: starts a simple HTTP server.
30
+ - `top`: allows the user to interactively monitor the system's vital
31
+ resources or server's processes in real-time.
32
+ - `qfind`: quickly search for files.
33
+ - `clc`: clear the terminal screen and print the contents of the current
34
+ directory.
32
35
 
33
- - `apt-get`: Append sudo to apt-get command.
34
- - `aptitude`: Run command as superuser.
35
- - `pacman`: Run command as superuser.
36
- - `yum`: Run command as superuser.
37
-
38
- ### System aliases
39
-
40
- - `da`: Display the current date and time.
41
- - `moon`: Get the moon phase.
42
- - `nls`: Show only active network listeners.
43
- - `now`: Show the current time.
44
- - `op`: List of open ports.
45
- - `ping`: Limit Ping to 5 ECHO_REQUEST packets.
46
- - `ports`: List all listening ports.
47
- - `top`: Display the top processes.
48
- - `tree`: Display the directory tree.
49
- - `wth`: Get the weather.
50
- - `wk`: Display the current week number.
51
-
52
- ### System control aliases
53
-
54
- - `halt`: Halt the system.
55
- - `poweroff`: Power off the system.
56
- - `reboot`: Reboot the system.
57
- - `shutdown`: Shut down the system.
58
-
59
- ### Terminal control aliases
60
-
61
- - `reload`: Reload the shell.
62
- - `r`: Reload the shell.
36
+ [banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
@@ -1,65 +1,126 @@
1
1
  #!/usr/bin/env bash
2
- # Author: Sebastien Rousseau
2
+
3
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.466) - <https://dotfiles.io>
4
+ # Made with β™₯ in London, UK by @wwdseb
3
5
  # Copyright (c) 2015-2023. All rights reserved
4
- # Description: Sets Default Aliases
5
6
  # License: MIT
6
7
  # Script: default.aliases.sh
7
- # Version: 0.2.464
8
+ # Version: 0.2.466
8
9
  # Website: https://dotfiles.io
9
10
 
10
11
  # πŸ…³πŸ…΄πŸ…΅πŸ…°πŸ†„πŸ…»πŸ†ƒ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
11
12
 
12
- ## Directory aliases
13
+ ## General aliases
14
+
15
+ # Shortcut for the `clear` command.
16
+ alias c="clear"
17
+
18
+ # Display the current date and time.
19
+ alias da='date "+%Y-%m-%d %A %T %Z"'
20
+
21
+ # Lists all recently used commands.
22
+ alias h='history'
23
+
24
+ # Shortcut for `pwd` which returns working directory name.
25
+ alias p='pwd'
26
+
27
+ # Display the $PATH variable on newlines.
28
+ alias path='echo ${PATH//:/\\n}'
29
+
30
+ # Reload the shell.
31
+ alias r='reload'
32
+
33
+ # Prints the last 10 lines of a text or log file, and then waits for new
34
+ # additions to the file to print it in real time.
35
+ alias t='tail -f'
36
+
37
+ # wk: Show the current week number.
38
+ alias wk='date +%V'
39
+
40
+ ## Exit/shutdown aliases
41
+
42
+ # Shortcut for the `exit` command.
43
+ alias ':q'='quit'
44
+
45
+ # Shortcut for the `exit` command.
46
+ alias bye='quit'
47
+
48
+ # Shortcut for the `exit` command.
49
+ alias q='quit'
50
+
51
+ # Shortcut for the `exit` command.
52
+ alias x='quit'
53
+
54
+ # Shortcut for the `exit` command.
55
+ alias quit='exit'
56
+
57
+ # Shutdown the system.
58
+ alias halt='sudo /sbin/halt'
59
+
60
+ # Poweroff the system.
61
+ alias poweroff='sudo /sbin/shutdown'
62
+
63
+ # Reboot the system.
64
+ alias reboot='sudo /sbin/reboot'
65
+
66
+ ## Network aliases
67
+
68
+ # Append sudo to ifconfig (configure network interface parameters)
69
+ # command.
70
+ alias ifconfig='sudo ifconfig'
71
+
72
+ # Get network interface parameters for en0.
73
+ alias ipinfo='ipconfig getpacket en0'
74
+
75
+ # Show only active network listeners.
76
+ alias nls='sudo lsof -i -P | grep LISTEN'
77
+
78
+ # List of open ports.
79
+ alias op='sudo lsof -i -P'
80
+
81
+ # Limit Ping to 5 ECHO_REQUEST packets.
82
+ alias ping='ping -c 5'
83
+
84
+ # List all listening ports.
85
+ alias ports='netstat -tulan'
86
+
87
+ # Start a simple HTTP server.
88
+ alias srv='python3 -m http.server'
13
89
 
14
- alias ctf='echo $(ls -1 | wc -l)' # ctf: Count the number of files in the current directory.
15
- alias p='pwd' # p: Print working directory.
90
+ ## System monitoring aliases
16
91
 
17
- ## Exit aliases
92
+ # Get the moon phase.
93
+ alias moon='curl -s "wttr.in/?format=%m"'
18
94
 
19
- alias bye='quit' # bye: Exit the shell.
20
- alias q='quit' # q: Exit the shell.
21
- alias quit='exit' # quit: Exit the shell.
95
+ # Allows the user to interactively monitor the system's vital resources
96
+ # or server's processes in real time.
97
+ alias top='sudo btop'
22
98
 
23
- ## Misc aliases
99
+ # Remove all log files in /private/var/log/asl/.
100
+ alias spd='sudo rm -rf /private/var/log/asl/*'
24
101
 
25
- alias h='history' # h: Display command history.
26
- alias ipinfo='ipconfig getpacket en0' # ipinfo: Get network interface parameters for en0.
27
- alias path='echo ${PATH//:/\n}' # path: Display the $PATH variable on newlines.
28
- alias please='sudo -s' # please: Run command as superuser.
29
- alias spd='sudo rm -rf /private/var/log/asl/*' # spd: Remove all log files in /private/var/log/asl/.
30
- alias srv='python3 -m http.server' # srv: Start a simple HTTP server.
31
- alias t='tail -f' # t: Print last 10 lines of a file in real time.
32
- alias x='quit' # x: Exit the shell.
102
+ ## Utility aliases
33
103
 
34
- ## Package manager aliases
104
+ # Count the number of files in the current directory.
105
+ alias ctf='echo $(ls -1 | wc -l)'
35
106
 
36
- alias apt-get='sudo apt-get' # apt-get: Append sudo to apt-get command.
37
- alias aptitude='sudo aptitude' # aptitude: Run command as superuser.
38
- alias pacman='sudo pacman' # pacman: Run command as superuser.
39
- alias yum='sudo yum' # yum: Run command as superuser.
107
+ # Use compression when transferring data.
108
+ alias curl='curl --compressed'
40
109
 
41
- ## System aliases
110
+ # Quickly search for file.
111
+ alias qfind='find . -name '
42
112
 
43
- alias da='date "+%Y-%m-%d %A %T %Z"' # da: Display the current date and time.
44
- alias moon='curl -s "wttr.in/?format=%m"' # moon: Get the moon phase.
45
- alias nls='sudo lsof -i -P | grep LISTEN' # nls: Show only active network listeners.
46
- alias now='date +"%T"' # now: Show the current time.
47
- alias op='sudo lsof -i -P' # op: List of open ports.
48
- alias ping='ping -c 5' # ping: Limit Ping to 5 ECHO_REQUEST packets.
49
- alias ports='sudo lsof -i -P' # ports: List all listening ports.
50
- alias top='sudo htop' # top: Display the top processes.
51
- alias tree='tree --dirsfirst' # tree: Display the directory tree.
52
- alias wth='curl -s "wttr.in/?format=3"' # wth: Get the weather.
53
- alias wk='date +%V' # wk: Display the current week number.
113
+ # Reload the shell.
114
+ alias reload='exec $SHELL -l'
54
115
 
55
- ## System control aliases
116
+ # Get the weather.
117
+ alias wth='curl -s "wttr.in/?format=3"'
56
118
 
57
- alias halt='sudo shutdown -h now' # halt: Halt the system.
58
- alias poweroff="sudo /sbin/shutdown" # poweroff: Power off the system.
59
- alias reboot='sudo shutdown -r now' # reboot: Reboot the system.
60
- alias shutdown='sudo shutdown -h now' # shutdown: Shut down the system.
119
+ # File system navigation aliases
61
120
 
62
- ## Terminal control aliases
121
+ # Clear the terminal screen and print the contents of the current
122
+ # directory.
123
+ alias clc='clear && ls -a'
63
124
 
64
- alias reload='exec $SHELL -l' # reload: Reload the shell.
65
- alias r='reload' # r: Reload the shell.
125
+ # Clear the terminal screen and print
126
+ alias clp='pwd'
@@ -1,50 +1,33 @@
1
- # Dig Aliases
1
+ <!-- markdownlint-disable MD033 MD041 -->
2
2
 
3
- These aliases provide shortcuts for the `dig` command to help you
4
- quickly query DNS records. To use them, add the following lines to your
5
- `.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" />
6
5
 
7
- ## Aliases
6
+ <!-- markdownlint-enable MD033 MD041 -->
8
7
 
9
- ### DNS lookups with dig command
8
+ # Dotfiles (v0.2.466)
10
9
 
11
- - `d`: Run the dig command with the default options.
12
- - `d4`: Perform a DNS lookup for an IPv4 address.
13
- - `d6`: Perform a DNS lookup for an IPv6 address.
14
- - `dga`: Perform a DNS lookup for all records.
15
- - `dgs`: Perform a DNS lookup for a short answer.
10
+ Simply designed to fit your shell life 🐚
16
11
 
17
- ### DNS lookups with specific options
12
+ ![Dotfiles banner][banner]
18
13
 
19
- - `digg`: Dig with Google's DNS.
14
+ ## πŸ…³πŸ…ΈπŸ…Ά πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
20
15
 
21
- ### IP address lookups
16
+ This code provides a set of command aliases to simplify working with DNS
17
+ (Domain Name System) lookup using the dig command on a Unix-based system
18
+ .
22
19
 
23
- - `ip4`: Get your public IPv4 address.
24
- - `ip6`: Get your public IPv6 address.
25
- - `ips`: Get your public IPv4 and IPv6 addresses.
26
- - `wip`: Get your public IP address.
20
+ The following aliases are included:
27
21
 
28
- ### DNS lookups for MX records
22
+ - `d`: runs the dig command with default options.
23
+ - `d4`: performs a DNS lookup for an IPv4 address.
24
+ - `d6`: performs a DNS lookup for an IPv6 address.
25
+ - `dga`: performs a DNS lookup for all records.
26
+ - `dgs`: performs a DNS lookup for a short answer.
27
+ - `digg`: performs a dig with Google's DNS.
28
+ - `ip4`: retrieves your public IPv4 address.
29
+ - `ip6`: retrieves your public IPv6 address.
30
+ - `ips`: retrieves your public IPv4 and IPv6 addresses.
31
+ - `wip`: retrieves your public IP address.
29
32
 
30
- - `dmx`: Perform a DNS lookup for MX records.
31
-
32
- ### DNS lookups for NS records
33
-
34
- - `dns`: Perform a DNS lookup for NS records.
35
-
36
- ### DNS lookups for CNAME records
37
-
38
- - `dc`: Perform a DNS lookup for CNAME records.
39
-
40
- ### DNS lookups for SOA records
41
-
42
- - `dsoa`: Perform a DNS lookup for SOA records.
43
-
44
- ### DNS lookups for TXT records
45
-
46
- - `dt`: Perform a DNS lookup for TXT records.
47
-
48
- ### DNS lookups for PTR records
49
-
50
- - `dptr`: Perform a DNS lookup for PTR records.
33
+ [banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg