@sebastienrousseau/dotfiles 0.2.460 β†’ 0.2.462

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 (151) hide show
  1. package/README.md +115 -91
  2. package/dist/Makefile +4 -3
  3. package/dist/bin/backup.d.ts.map +1 -1
  4. package/dist/bin/backup.js +3 -2
  5. package/dist/bin/backup.js.map +1 -1
  6. package/dist/bin/constants.d.ts +2 -2
  7. package/dist/bin/constants.d.ts.map +1 -1
  8. package/dist/bin/constants.js +1 -1
  9. package/dist/bin/constants.js.map +1 -1
  10. package/dist/bin/copy.d.ts.map +1 -1
  11. package/dist/bin/copy.js +2 -1
  12. package/dist/bin/copy.js.map +1 -1
  13. package/dist/bin/dotfiles.d.ts.map +1 -1
  14. package/dist/bin/dotfiles.js +1 -1
  15. package/dist/bin/dotfiles.js.map +1 -1
  16. package/dist/bin/download.d.ts +2 -2
  17. package/dist/bin/download.d.ts.map +1 -1
  18. package/dist/bin/download.js +2 -1
  19. package/dist/bin/download.js.map +1 -1
  20. package/dist/bin/index.js +1 -1
  21. package/dist/bin/index.js.map +1 -1
  22. package/dist/bin/transfer.d.ts.map +1 -1
  23. package/dist/bin/transfer.js +1 -1
  24. package/dist/bin/transfer.js.map +1 -1
  25. package/dist/bin/unpack.d.ts.map +1 -1
  26. package/dist/bin/unpack.js +1 -1
  27. package/dist/bin/unpack.js.map +1 -1
  28. package/dist/filesizes.txt +332 -288
  29. package/dist/lib/aliases/archives/archives.aliases.sh +42 -0
  30. package/dist/lib/aliases/clear/clear.aliases.sh +23 -0
  31. package/dist/lib/aliases/configuration/configuration.aliases.sh +12 -0
  32. package/dist/lib/aliases/default/default.aliases.sh +37 -173
  33. package/dist/lib/aliases/dig/dig.aliases.sh +19 -0
  34. package/dist/lib/aliases/diskusage/diskusage.aliases.sh +16 -0
  35. package/dist/lib/aliases/editor/editor.aliases.sh +19 -0
  36. package/dist/lib/aliases/find/find.aliases.sh +24 -0
  37. package/dist/lib/aliases/gcloud/gcloud.aliases.sh +120 -116
  38. package/dist/lib/aliases/git/git.aliases.sh +341 -335
  39. package/dist/lib/aliases/gnu/gnucoreutls-aliases.sh +111 -0
  40. package/dist/lib/aliases/heroku/heroku.aliases.sh +713 -710
  41. package/dist/lib/aliases/interactive/interactive.aliases.sh +14 -0
  42. package/dist/lib/aliases/jekyll/jekyll.aliases.sh +49 -46
  43. package/dist/lib/aliases/list/list.aliases.sh +33 -0
  44. package/dist/lib/aliases/make/make.aliases.sh +15 -0
  45. package/dist/lib/aliases/mkdir/mkdir.aliases.sh +13 -0
  46. package/dist/lib/aliases/navigation/navigation.aliases.sh +23 -0
  47. package/dist/lib/aliases/npm/npm.aliases.sh +24 -0
  48. package/dist/lib/aliases/permission/permission.aliases.sh +28 -0
  49. package/dist/lib/aliases/pnpm/pnpm.aliases.sh +38 -38
  50. package/dist/lib/aliases/ps/ps.aliases.sh +12 -0
  51. package/dist/lib/aliases/rsync/rsync.aliases.sh +9 -0
  52. package/dist/lib/aliases/rust/rust.aliases.sh +50 -0
  53. package/dist/lib/aliases/subversion/subversion.aliases.sh +42 -119
  54. package/dist/lib/aliases/sudo/sudo.aliases.sh +11 -0
  55. package/dist/lib/aliases/tmux/tmux.aliases.sh +13 -10
  56. package/dist/lib/aliases/update/update.aliases.sh +38 -0
  57. package/dist/lib/aliases/uuid/uuid.aliases.sh +10 -0
  58. package/dist/lib/aliases/wget/wget.aliases.sh +13 -0
  59. package/dist/lib/aliases.sh +7 -3
  60. package/dist/lib/configurations/bash/bashrc +4 -3
  61. package/dist/lib/configurations/curl/curlrc +3 -2
  62. package/dist/lib/configurations/default/color.sh +3 -2
  63. package/dist/lib/configurations/default/constants.sh +10 -9
  64. package/dist/lib/configurations/default/editor.sh +3 -2
  65. package/dist/lib/configurations/default/prompt.sh +3 -2
  66. package/dist/lib/configurations/input/inputrc +3 -2
  67. package/dist/lib/configurations/nano/nanorc +3 -2
  68. package/dist/lib/configurations/profile/profile +3 -2
  69. package/dist/lib/configurations/tmux/default +3 -2
  70. package/dist/lib/configurations/tmux/display +3 -2
  71. package/dist/lib/configurations/tmux/linux +3 -2
  72. package/dist/lib/configurations/tmux/navigation +3 -2
  73. package/dist/lib/configurations/tmux/panes +3 -2
  74. package/dist/lib/configurations/tmux/theme +4 -3
  75. package/dist/lib/configurations/tmux/tmux +3 -2
  76. package/dist/lib/configurations/tmux/vi +3 -2
  77. package/dist/lib/configurations/vim/vimrc +1 -1
  78. package/dist/lib/configurations/wget/wgetrc +3 -2
  79. package/dist/lib/configurations/zsh/zshrc +6 -5
  80. package/dist/lib/configurations.sh +3 -2
  81. package/dist/lib/functions/cdls.sh +4 -10
  82. package/dist/lib/functions/changediskpwd.tmp +5 -3
  83. package/dist/lib/functions/code.tmp +5 -3
  84. package/dist/lib/functions/countdown.tmp +3 -2
  85. package/dist/lib/functions/curlheader.sh +6 -5
  86. package/dist/lib/functions/curltime.sh +8 -6
  87. package/dist/lib/functions/encode64.sh +3 -2
  88. package/dist/lib/functions/environment.sh +3 -2
  89. package/dist/lib/functions/extract.sh +3 -2
  90. package/dist/lib/functions/genpwd.sh +3 -2
  91. package/dist/lib/functions/goto.sh +3 -2
  92. package/dist/lib/functions/hidehiddenfiles.sh +3 -2
  93. package/dist/lib/functions/history-all.tmp +3 -2
  94. package/dist/lib/functions/hostinfo.sh +3 -2
  95. package/dist/lib/functions/hstats.sh +3 -2
  96. package/dist/lib/functions/httpdebug.sh +3 -2
  97. package/dist/lib/functions/keygen.sh +3 -2
  98. package/dist/lib/functions/last.sh +3 -2
  99. package/dist/lib/functions/logout.sh +3 -2
  100. package/dist/lib/functions/lowercase.sh +3 -2
  101. package/dist/lib/functions/macos.sh +3 -2
  102. package/dist/lib/functions/matrix.sh +3 -2
  103. package/dist/lib/functions/{mcd.sh β†’ mcd.tmp} +3 -2
  104. package/dist/lib/functions/mount_read_only.sh +3 -2
  105. package/dist/lib/functions/myproc.sh +3 -2
  106. package/dist/lib/functions/prependpath.sh +3 -2
  107. package/dist/lib/functions/print.tmp +3 -2
  108. package/dist/lib/functions/ql.sh +3 -2
  109. package/dist/lib/functions/rd.sh +3 -2
  110. package/dist/lib/functions/remove_disk.sh +3 -2
  111. package/dist/lib/functions/ren.sh +3 -2
  112. package/dist/lib/functions/rm.tmp +3 -2
  113. package/dist/lib/functions/rps.tmp +3 -2
  114. package/dist/lib/functions/showhiddenfiles.sh +3 -2
  115. package/dist/lib/functions/size.sh +3 -2
  116. package/dist/lib/functions/stopwatch.sh +3 -2
  117. package/dist/lib/functions/trash.tmp +3 -2
  118. package/dist/lib/functions/tree.tmp +3 -2
  119. package/dist/lib/functions/uppercase.sh +3 -2
  120. package/dist/lib/functions/uuidgen.tmp +2 -1
  121. package/dist/lib/functions/view-source.sh +3 -2
  122. package/dist/lib/functions/vscode.sh +3 -2
  123. package/dist/lib/functions/whoisport.sh +3 -2
  124. package/dist/lib/functions/zipf.sh +3 -2
  125. package/dist/lib/functions.sh +3 -2
  126. package/dist/lib/history.sh +3 -2
  127. package/dist/lib/paths/ant/ant.paths.sh +3 -2
  128. package/dist/lib/paths/default/default.paths.sh +3 -2
  129. package/dist/lib/paths/homebrew/homebrew.paths.sh +3 -2
  130. package/dist/lib/paths/java/java.paths.sh +4 -3
  131. package/dist/lib/paths/maven/maven.paths.sh +3 -2
  132. package/dist/lib/paths/node/node.paths.sh +3 -2
  133. package/dist/lib/paths/nvm/nvm.paths.sh +3 -2
  134. package/dist/lib/paths/pnpm/pnpm.paths.sh +3 -2
  135. package/dist/lib/paths/python/python.paths.sh +3 -2
  136. package/dist/lib/paths/ruby/ruby.paths.sh +3 -2
  137. package/dist/lib/paths/tmux/tmux.paths.sh +3 -2
  138. package/dist/lib/paths.sh +3 -2
  139. package/dist/scripts/backup.sh +8 -3
  140. package/dist/scripts/banner.sh +3 -2
  141. package/dist/scripts/build.sh +3 -2
  142. package/dist/scripts/clean.sh +3 -2
  143. package/dist/scripts/compile.sh +3 -2
  144. package/dist/scripts/copy.sh +3 -2
  145. package/dist/scripts/dotfiles.sh +3 -2
  146. package/dist/scripts/download.sh +3 -2
  147. package/dist/scripts/help.sh +3 -2
  148. package/dist/scripts/ssh.sh +54 -0
  149. package/dist/scripts/unpack.sh +3 -2
  150. package/package.json +3 -2
  151. package/dist/lib/exit.sh +0 -9
@@ -0,0 +1,42 @@
1
+ #!/usr/bin/env bash
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.462) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2015-2022. All rights reserved
5
+ # License: MIT
6
+
7
+ # πŸ…°πŸ†πŸ…²πŸ…·πŸ…ΈπŸ†…πŸ…΄πŸ†‚ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
8
+ if command -v 7z &>/dev/null; then
9
+ alias c7z='7z a' # c7z: Compress a whole directory (including subdirectories) to a 7z file.
10
+ alias e7z='7z x' # e7z: Extract a whole directory (including subdirectories) from a 7z file.
11
+ fi
12
+
13
+ if command -v tar &>/dev/null; then
14
+ alias cbz2='tar -cvjf' # cbz2: Compress a file to a bz2 file.
15
+ alias ctar='tar -cvf' # ctar: Compress a whole directory (including subdirectories) to a tar file.
16
+ alias etar='tar -xvf' # etar: Extract a whole directory (including subdirectories) from a tar file.
17
+ alias cgz='tar -zcvf' # cgz: Compress a file to a gz file.
18
+ alias cxz='tar -cvJf' # cxz: Compress a whole directory (including subdirectories) to a xz file.
19
+ alias ebz2='tar -xvjf' # ebz2: Extract a file from a bz2 file.
20
+ alias egz='tar -xvzf' # egz: Extract a file from a gz file.
21
+ alias exz='tar -xvJf' # exz: Extract a whole directory (including subdirectories) from a xz file.
22
+ fi
23
+
24
+ if command -v jar &>/dev/null; then
25
+ alias cjar='jar -cvf' # cjar: Compress a whole directory (including subdirectories) to a jar file.
26
+ alias ejar='jar -xvf' # ejar: Extract a whole directory (including subdirectories) from a jar file.
27
+ fi
28
+
29
+ if command -v xz &>/dev/null; then
30
+ alias cxz='xz -zcvf' # cxz: Compress a whole directory (including subdirectories) to a xz file.
31
+ alias exz='xz -zxvf' # exz: Extract a whole directory (including subdirectories) from a xz file.
32
+ fi
33
+
34
+ if command -v zip &>/dev/null; then
35
+ alias cz='zip -r' # czip: Compress a whole directory (including subdirectories) to a zip file.
36
+ alias ez='unzip' # ezip: Extract a whole directory (including subdirectories) from a zip file.
37
+ fi
38
+
39
+ if command -v zstd &>/dev/null; then
40
+ alias czstd='zstd -zcvf' # czstd: Compress a whole directory (including subdirectories) to a zstd file.
41
+ alias ezstd='zstd -zxvf' # ezstd: Extract a whole directory (including subdirectories) from a zstd file.
42
+ fi
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env bash
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.462) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2015-2022. All rights reserved
5
+ # License: MIT
6
+
7
+ # πŸ…²πŸ…»πŸ…΄πŸ…°πŸ† πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
8
+ alias c="clear" # c: Clear the terminal screen.
9
+ alias cl="c" # cl: Clear the terminal screen.
10
+ alias clc="clear && cat" # clc: Clear the terminal screen and print the contents of the current directory.
11
+ alias clcat="clc" # clcat: Clear the terminal screen and print the contents of the current directory.
12
+ alias clh="clear && history" # clh: Clear the terminal screen and print the command history.
13
+ alias clhist="clh" # clhist: Clear the terminal screen and print the command history.
14
+ alias clp="clear && pwd" # clp: Clear the terminal screen and print the current working directory.
15
+ alias clpwd="clp" # clpwd: Clear the terminal screen and print the current working directory.
16
+ alias clr="c" # clr: Clear the terminal screen.
17
+ alias cls="c" # cls: Clear the terminal screen.
18
+ alias clt="clear && tree" # clt: Clear the terminal screen and print the directory tree.
19
+ alias cltree="clt" # cltree: Clear the terminal screen and print the directory tree.
20
+ alias ct="clear && tree ./" # ct: Clear the terminal screen and print the directory tree.
21
+ alias ctree="ct" # ctree: Clear the terminal screen and print the directory tree.
22
+ 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.
23
+ alias cplt="clear && pwd && echo '' && tree ./ && echo ''" # cplt: Clear the terminal screen and print the current working directory and the directory tree.
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env bash
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.462) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2015-2022. All rights reserved
5
+ # License: MIT
6
+
7
+ # πŸ…²πŸ…ΎπŸ…½πŸ…΅πŸ…ΈπŸ…ΆπŸ†„πŸ†πŸ…°πŸ†ƒπŸ…ΈπŸ…ΎπŸ…½ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
8
+ alias bshp='${=EDITOR} $HOME/.bash_profile' # bshp: Open the Bash profile in the default text editor.
9
+ alias bshrc='${=EDITOR} $HOME/.bashrc' # bshrc: Open the Bash configuration file in the default text editor.
10
+ alias gcfg='${=EDITOR} $HOME/.gitconfig' # gcfg: Open the Git configuration file in the default text editor.
11
+ alias gign='${=EDITOR} $HOME/.gitignore' # gign: Open the Git ignore file in the default text editor.
12
+ alias zshrc='${=EDITOR} $HOME/.zshrc' # zshrc: Open the Zsh configuration file in the default text editor.
@@ -1,177 +1,41 @@
1
1
  #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.460) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.462) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2015-2022. All rights reserved
4
5
  # License: MIT
5
6
 
6
7
  # πŸ…³πŸ…΄πŸ…΅πŸ…°πŸ†„πŸ…»πŸ†ƒ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
7
- unalias -a # Remove all previous environment defined aliases.
8
- alias -- -='cd -' # -: Shortcut to go to previous directory.
9
- alias .....='cd ../../../..' # .....: Shortcut to go to great-great-grandparent directory.
10
- alias ....='cd ../../..' # ....: Shortcut to go to great-grandparent directory.
11
- alias ...='cd ../..' # ...: Shortcut to go to grandparent directory.
12
- alias ..='cd ..' # ..: Shortcut to go to parent directory.
13
- alias ':q'='quit' # q: Shortcut for the `exit` command.
14
- alias '~'='cd ~' # ~: Shortcut to go to home directory.
15
- alias 'l.'="ls -dlhF .* | grep -v '^d'" # l.: List hidden files.
16
- alias 000='chmod -R 000' # 000: Make all files and directories read-only.
17
- alias 644='chmod -R 644' # 644: Make all files and directories readable and writable.
18
- alias 666='chmod -R 666' # 666: Make all files and directories readable and writable.
19
- alias 755='chmod -R 755' # 755: Make all files and directories readable and writable.
20
- alias 777='chmod -R 777' # 777: Make all files and directories readable and writable.
21
- alias bye='quit' # q: Shortcut for the `exit` command.
22
- alias c="clear" # c: Clear screen shortcut.
23
- alias cde="cd ~/Code; ls" # cde: Shortcut to go to the Code directory and list its contents.
24
- alias cgz='tar -zcvf' # cgz: Compress a whole directory (including subdirectories) to a tarball.
25
- alias chmox='chmod +x' # chmox: Make a file executable.
26
- alias cl="clear" # cl: Clear screen shortcut.
27
- alias clear="clear && printf '\e[3J'" # clear: Clear screen shortcut.
28
- alias clr="clear" # clr: Clear screen shortcut.
29
- alias cls="clear" # cls: Clear screen shortcut.
30
- alias cp="cp -vi" # cp: Copy files and directories.
31
- alias cr='cargo run' # cr: Run cargo.
32
- alias ct="clear && tree ./" # ct: Clear screen and list directory contents.
33
- alias ctf='echo $(ls -1 | wc -l)' # ctf: Count the number of files in the current directory.
34
- alias curl='curl --compressed' # curl: Use compression when transferring data.
35
- alias da='date "+%Y-%m-%d %A %T %Z"' # da: Display the current date and time.
36
- alias del="rm -rfv" # del: Remove a file or directory.
37
- alias digg="dig @8.8.8.8 +nocmd any +multiline +noall +answer" # digg: Dig with Google's DNS.
38
- alias dn="cd ~/Downloads; ls" # dn: Shortcut to go to the Downloads directory and list its contents.
39
- alias dot='cd ${HOME}/.dotfiles/' # dot: Shortcut to go to the dotfiles directory.
40
- alias ds="cd ~/Documents; ls" # ds: Shortcut to go to the Documents directory and list its contents.
41
- alias dsp="sudo du -shc ." # dsp: Show the size of the current directory.
42
- alias dt="cd ~/Desktop; ls" # dt: Shortcut to go to the Desktop directory and list its contents.
43
- alias du='sudo du -h' # du: File size human readable output sorted by size.
44
- alias duf='sudo du -sh *' # duf: File size human readable output sorted.
45
- alias e='vim' # e, edit, mate: Edit current file.
46
- alias edit='vim' # e, edit, mate: Edit current file.
47
- alias egz='tar -xvzf' # egz: Extract a whole directory (including subdirectories)
48
- alias f='find . -name ' # f: Quickly search for file
49
- alias fd='find . -type d -name' # fd: Quickly search for directory
50
- alias ff='find . -type f -name' # ff: Quickly search for file
51
- alias gz='tar -zcvf' # gz: Compress a whole directory (including subdirectories) to a tarball.
52
- alias h='history' # h: Lists all recently used commands.
53
- alias halt="sudo /sbin/halt" # halt: Shutdown the system.
54
- alias ifconfig='sudo ifconfig' # ifconfig: Append sudo to ifconfig (configure network interface parameters) command.
55
- alias ip="ip4; ip6" # ip: Get the public IPv4 and IPv6 addresses.
56
- alias ip4="dig +short myip.opendns.com @resolver1.opendns.com -4" # ip4: Get the public IPv4 address.
57
- alias ip6="dig -6 AAAA +short myip.opendns.com. @resolver1.opendns.com." # ip6: Get the public IPv6 address.
58
- alias ipinfo='ipconfig getpacket en0' # ipInfo0: Get network interface parameters for en0.
59
- alias l='ls -lFh' # l: Size, show type, human readable.
60
- alias l1='ls -1' # l1: Display one file per line.
61
- alias la='ls -Alh' # la: show hidden files on the command line.
62
- alias labc='ls -lap' # labc: List all files in alphabetical order.
63
- alias lc='wc -l' # lc: Count the number of lines in the file.
64
- alias lct='ls -lcrh' # lc: sort by change time
65
- alias ld='ls -ltrh' # lt: sort by date
66
- alias ldir="ls -l | egrep '^d'" # directories only
67
- alias ldot="l." # l.: List hidden files.
68
- alias left='ls -t -1' # left: List files by date, most recent last.
69
- alias lf="ls -l | egrep -v '^d'" # files only
70
- alias lk='ls -lSrh' # lk: sort by size
71
- alias ll='ls -lAFh' # ll: Long list, show almost all, show type, human readable.
72
- alias lla='ls -l -d $PWD/*' # lla: List full path of all files in current directory.
73
- alias lm='ls -alh |more' # lm: pipe through 'more'
74
- alias ln='ln -vi' # ln: interactive symbolic link
75
- alias locale='locale -a | grep UTF-8' # locale: List all available locales.
76
- alias lp='sudo lsof -i -T -n' # lp: List all open ports.
77
- alias lr='ls -lRh' # lr: recursive ls
78
- alias ls='ls --color' # ls: Colorize the output.
79
- alias lS='ls -1FSsh' # lS: Order Files Based on Last Modified Time and size.
80
- alias lt="tree" # lt: List contents of directories in a tree-like format.
81
- alias lu='ls -lurh' # lu: sort by access time
82
- alias lw='ls -xAh' # wide listing format
83
- alias lx='ls | sort -k 1,1 -t .' # lx: sort by extension
84
- alias mate='vim' # e, edit, mate: Edit current file.
85
- alias mc='make clean' # mc: Make clean.
86
- alias md='mkd' # mkd: Create the directory and all parent directories, verbose mode.
87
- alias mi='make install' # mi: Make install.
88
- alias mk=make # mk: Make.
89
- alias mkbz2='tar -cvjf' # mkbz2: Create a temporary tar ball compressed with bzip2.
90
- alias mkcd='mkdir -pv && cd' # mkcd: Create the directory and all parent directories, verbose mode, then change to it.
91
- alias mkd='mkdir -pv' # mkd: Create the directory and all parent directories, verbose mode.
92
- alias mkdd='mkdir -pv $(date +%Y%m%d)' # mkdd: Create a directory with the current date.
93
- alias mkgz='tar -cvzf' # mkgz: Create a temporary tar ball compressed with gzip.
94
- alias mkh="make help" # mkh: Make help.
95
- alias mkr="make run" # mkr: Make run.
96
- alias mkt="make test" # mkt: Make test.
97
- alias mktar='tar -cvf' # mktar: Create a temporary tarball.
98
- alias mv='mv -vi' # mv: Move files interactively (ask before overwrite) and verbose.
99
- alias mx='chmod a+x' # mx: Make executable.
100
- alias nls='sudo lsof -i -P | grep LISTEN' # nls: Show only active network listeners.
101
- alias now='date +"%T"' # now: Show the current time.
102
- alias npmi='npm install ' # npmi: Install npm package.
103
- alias npms='npm start ' # npms: Start npm package.
104
- alias op='sudo lsof -i -P' # op: List of open ports.
105
- alias p='pwd' # p: Shortcut for `pwd` which returns working directory name.
106
- alias pa="clear && pwd && echo '' && ls && echo ''" # pa: Clear the screen, show the current directory, and list the files.
107
- alias paa="clear && pwd && echo '' && ls -a && echo ''" # paa: Clear the screen, show the current directory, and list all files.
108
- alias path='echo ${PATH//:/\\n}' # path: Display the $PATH variable on newlines.
109
- alias pid='ps -f' # pid: Display the uid, pid, parent pid, recent CPU usage, process start time, controlling tty, elapsed CPU usage, and the associated command.
110
- alias ping='ping -c 5' # ping: Limit Ping to 5 ECHO_REQUEST packets.
111
- alias please='sudo -' # sudo: Execute a command as the superuser.
112
- alias pn='pnpm' # pn: Shortcut to pnpm.
113
- alias ports='netstat -tulan' # ports: List all listening ports.
114
- alias poweroff="sudo /sbin/shutdown" # poweroff: Poweroff the system.
115
- alias pp="clear && pwd" # pp: Clear the screen and show the current directory.
116
- alias ps='ps auxwww' # kp: Getting full path of executables.
117
- alias pt="clear && pwd && echo '' && tree ./ && echo ''" # pt: Clear the screen and show the current directory and tree.
118
- alias q='quit' # q: Shortcut for the `exit` command.
119
- alias qfind='find . -name ' # qfind: Quickly search for file.
120
- alias quit='exit' # q: Shortcut for the `exit` command.
121
- alias r=reload # r: Reload the shell.
122
- alias reboot="sudo /sbin/reboot" # reboot: Reboot the system.
123
- alias reload='exec $SHELL -l' # reload: Reload the shell.
124
- alias rm='rm -vI' # rm: Prompts for every file before removing.
125
- alias rr="rm -rf" # rr: Remove directory and all its contents.
126
- alias rs='rsync -avz' # rs: Rsync with verbose and progress.
127
- alias s='sudo' # s: Execute a command as the superuser.
128
- alias shutdown='sudo shutdown -h now' # shutdown: Shutdown the system.
129
- alias spd='sudo rm -rf /private/var/log/asl/*' # spd: Remove all log files in /private/var/log/asl.
130
- alias srv='python3 -m http.server' # srv: Start a simple HTTP server.
131
- alias svi='sudo vi' # svi: Run vi in sudo mode.
132
- alias t='tail -f' # t: Prints the last 10 lines of a text or log file, and then waits for new additions to the file to print it in real time.
133
- alias top='sudo btop' # top: Allows the user to interactively monitor the system's vital resources or server's processes in real time.
134
- alias trash="rm -fr ~/.Trash" # trash: Remove all files in the trash.
135
- alias tree='tree --dirsfirst' # tree: Display a directory tree.
136
- alias unbz2='tar -xvjf' # unbz2: Extract a tarball compressed with bzip2.
137
- alias undopush="git push -f origin HEAD^:master" # undopush: Undo the last push.
138
- alias ungz='tar -xvzf' # ungz: Extract a tarball compressed with gzip.
139
- alias untar='tar -xvf' # untar: Extract a tarball.
140
- alias usage='du -ch | grep total' # usage: Grabs the disk usage in the current directory.
141
- alias v='vim $(f)' # v: Edit a file.
142
- alias v='vim' # e, edit, mate: Edit current file.
143
- alias wget='wget -c' # wget: wget with resume.
144
- alias wip='dig +short myip.opendns.com @resolver1.opendns.com' # wip: Get public IP address.
145
- alias wk='date +%V' # wk: Show the current week number.
146
- alias wth='curl https://wttr.in' # wth: Get the weather.
147
- alias x='quit' # q: Shortcut for the `exit` command.
148
-
149
- if [[ "$(uname || true)" = "Darwin" ]]; then
150
- alias upd='
151
- sudo softwareupdate -i -a;
152
- pnpm up;
153
- if [[ "$(command -v brew cu)" ]]; then
154
- brew cu -ayi;
155
- else
156
- brew tap buo/cask-upgrade;
157
- fi;
158
- brew doctor;
159
- brew update;
160
- brew upgrade;
161
- brew cleanup;
162
- mas upgrade;
163
- sudo gem update;
164
- sudo gem cleanup;
165
- '
166
- elif [[ "$(uname || true)" = "Linux" ]]; then
167
- alias open="xdg-open >/dev/null 2>&1" # open: Open a file or URL in the user's preferred application.
168
- alias pbcopy='xsel --clipboard --input' # pbcopy: Copy to clipboard.
169
- alias pbpaste='xsel --clipboard --output' # pbpaste: Paste from clipboard.
170
- alias upd='
171
- sudo apt update;
172
- sudo apt upgrade -y;
173
- pnpm up;
174
- sudo gem update;
175
- sudo gem cleanup;
176
- '
177
- fi
8
+ alias ':q'='quit' # q: Shortcut for the `exit` command.
9
+ alias bye='quit' # bye: Shortcut for the `exit` command.
10
+ alias ctf='echo $(ls -1 | wc -l)' # ctf: Count the number of files in the current directory.
11
+ alias curl='curl --compressed' # curl: Use compression when transferring data.
12
+ alias da='date "+%Y-%m-%d %A %T %Z"' # da: Display the current date and time.
13
+ alias h='history' # h: Lists all recently used commands.
14
+ alias halt="sudo /sbin/halt" # halt: Shutdown the system.
15
+ alias ifconfig='sudo ifconfig' # ifconfig: Append sudo to ifconfig (configure network interface parameters) command.
16
+ alias ipinfo='ipconfig getpacket en0' # ipinfo: Get network interface parameters for en0.
17
+ alias moon='curl -s "wttr.in/?format=%m"' # moon: Get the moon phase.
18
+ alias nls='sudo lsof -i -P | grep LISTEN' # nls: Show only active network listeners.
19
+ alias now='date +"%T"' # now: Show the current time.
20
+ alias op='sudo lsof -i -P' # op: List of open ports.
21
+ alias p='pwd' # p: Shortcut for `pwd` which returns working directory name.
22
+ alias path='echo ${PATH//:/\\n}' # path: Display the $PATH variable on newlines.
23
+ alias ping='ping -c 5' # ping: Limit Ping to 5 ECHO_REQUEST packets.
24
+ alias please='sudo -' # please: Execute a command as the superuser.
25
+ alias ports='netstat -tulan' # ports: List all listening ports.
26
+ alias poweroff="sudo /sbin/shutdown" # poweroff: Poweroff the system.
27
+ alias q='quit' # q: Shortcut for the `exit` command.
28
+ alias qfind='find . -name ' # qfind: Quickly search for file.
29
+ alias quit='exit' # quit: Shortcut for the `exit` command.
30
+ alias r='reload' # r: Reload the shell.
31
+ alias reboot='sudo /sbin/reboot' # reboot: Reboot the system.
32
+ alias reload='exec $SHELL -l' # reload: Reload the shell.
33
+ alias shutdown='sudo shutdown -h now' # shutdown: Shutdown the system.
34
+ alias spd='sudo rm -rf /private/var/log/asl/*' # spd: Remove all log files in /private/var/log/asl.
35
+ alias srv='python3 -m http.server' # srv: Start a simple HTTP server.
36
+ alias t='tail -f' # t: Prints the last 10 lines of a text or log file, and then waits for new additions to the file to print it in real time.
37
+ alias top='sudo btop' # top: Allows the user to interactively monitor the system's vital resources or server's processes in real time.
38
+ alias tree='tree --dirsfirst' # tree: Display a directory tree.
39
+ alias wk='date +%V' # wk: Show the current week number.
40
+ alias wth='curl -s "wttr.in/?format=3"' # wth: Get the weather.
41
+ alias x='quit' # q: Shortcut for the `exit` command.
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env bash
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.462) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2015-2022. All rights reserved
5
+ # License: MIT
6
+
7
+ # πŸ…³πŸ…ΈπŸ…Ά πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
8
+ if command -v dig &>/dev/null; then
9
+ alias d='$(which dig)' # d: Run the dig command with the default options.
10
+ alias d4='$(which dig) +short -4' # d4: Perform a DNS lookup for an IPv4 address.
11
+ alias d6='$(which dig) +short -6' # d6: Perform a DNS lookup for an IPv6 address.
12
+ alias dga='$(which dig) +all ANY' # dga: Perform a DNS lookup for all records.
13
+ alias dgs='$(which dig) +short' # dgs: Perform a DNS lookup for a short answer.
14
+ alias digg='$(which dig) @8.8.8.8 +nocmd any +multiline +noall +answer' # digg: Dig with Google's DNS.
15
+ alias ip4='$(which dig) +short myip.opendns.com @resolver1.opendns.com -4' # ip4: Get your public IPv4 address.
16
+ alias ip6='$(which dig) -6 AAAA +short myip.opendns.com. @resolver1.opendns.com.' # ip6: Get your public IPv6 address.
17
+ alias ips='ip4; ip6' # ips: Get your public IPv4 and IPv6 addresses.
18
+ alias wip='$(which dig) +short myip.opendns.com @resolver1.opendns.com' # wip: Get your public IP address.
19
+ fi
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env bash
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.462) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2015-2022. All rights reserved
5
+ # License: MIT
6
+
7
+ # πŸ…³πŸ…ΈπŸ†‚πŸ…Ί πŸ†„πŸ†‚πŸ…°πŸ…ΆπŸ…΄ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
8
+ if command -v du &>/dev/null; then
9
+ alias du="du -h" # du: Display the disk usage of the current directory.
10
+ alias du1='du -hxd 1 | sort -h' # du1: File size of files and directories in current directory.
11
+ alias ducks="du -cks * .*| sort -rn | head -n 10" # ducks: Top 10 largest files and directories in current directory.
12
+ alias duh='du' # duh: File size of files and directories.
13
+ alias dus='du -hs *' # dus: File size human readable output sorted by size.
14
+ alias dusym="du * -hsLc" # dusym: File size of files and directories in current directory including symlinks.
15
+ alias dut='dus' # dut: Total file size of current directory.
16
+ fi
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env bash
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.462) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2015-2022. All rights reserved
5
+ # License: MIT
6
+
7
+ # πŸ…΄πŸ…³πŸ…ΈπŸ†ƒπŸ…ΎπŸ† πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
8
+ editors="nano vim vi code gedi notepad++"
9
+ for editor in ${editors}; do
10
+ if command -v "${editor}" &>/dev/null; then
11
+ alias e='${editor}' # e: Edit a file.
12
+ alias edit='${editor}' # edit: Edit a file.
13
+ alias editor='${editor}' # editor: Edit a file.
14
+ alias mate='${editor}' # mate: Edit a file.
15
+ alias n='${editor}' # n: Edit a file.
16
+ alias v='${editor}' # v: Edit a file.
17
+ break
18
+ fi
19
+ done
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env bash
2
+ # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.462) - https://dotfiles.io
3
+ # Made with β™₯ in London, UK by @sebastienrousseau
4
+ # Copyright (c) 2015-2022. All rights reserved
5
+ # License: MIT
6
+
7
+ # πŸ…΅πŸ…ΈπŸ…½πŸ…³ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚
8
+ if command -v fd &>/dev/null; then
9
+ alias fd='fd --color always ' # fd: always colorize output by default.
10
+ alias fda='fd --absolute-path' # fda: list all files with absolute path.
11
+ alias fdc='fd --ignore-case' # fdc: list all files with case insensitive search.
12
+ alias fdd='fd --list-details' # fdd: list all files with details.
13
+ alias fde='fd --extension' # fde: list all files with extension.
14
+ alias fdf='fd --follow' # fdf: list all files with follow symlinks.
15
+ alias fdh='fd --help' # fdh: list all files with help.
16
+ alias fdh='fd --hidden' # fdh: list all files with hidden files.
17
+ alias fdn='fd --glob' # fdn: list all files with glob.
18
+ alias fdo='fd --owner' # fdo: list all files with owner.
19
+ alias fds='fd --size' # fds: list all files with size.
20
+ alias fdu='fd --exclude' # fdu: list all files with exclude.
21
+ alias fdv='fd --version' # fdv: list all files with version.
22
+ alias fdx='fd --exec' # fdx: Execute a command for each search result.
23
+ alias find='fd' # find: fd is a simple, fast and user-friendly alternative to find.
24
+ fi