@sebastienrousseau/dotfiles 0.2.461 β†’ 0.2.463

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