@sebastienrousseau/dotfiles 0.2.462 → 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.
- package/README.md +5 -5
- package/dist/Makefile +2 -2
- package/dist/bin/constants.d.ts +2 -2
- package/dist/bin/constants.js +1 -1
- package/dist/filesizes.txt +114 -92
- package/dist/lib/aliases/archives/README.md +84 -0
- package/dist/lib/aliases/archives/archives.aliases.sh +63 -19
- package/dist/lib/aliases/cd/README.md +46 -0
- package/dist/lib/aliases/cd/cd.aliases.sh +42 -0
- package/dist/lib/aliases/chmod/README.md +70 -0
- package/dist/lib/aliases/chmod/chmod.aliases.sh +73 -0
- package/dist/lib/aliases/clear/README.md +38 -0
- package/dist/lib/aliases/clear/clear.aliases.sh +36 -19
- package/dist/lib/aliases/configuration/README.md +46 -0
- package/dist/lib/aliases/configuration/configuration.aliases.sh +39 -8
- package/dist/lib/aliases/default/README.md +62 -0
- package/dist/lib/aliases/default/default.aliases.sh +59 -35
- package/dist/lib/aliases/dig/README.md +50 -0
- package/dist/lib/aliases/dig/dig.aliases.sh +37 -10
- package/dist/lib/aliases/du/README.md +35 -0
- package/dist/lib/aliases/du/du.aliases.sh +37 -0
- package/dist/lib/aliases/editor/README.md +47 -0
- package/dist/lib/aliases/editor/editor.aliases.sh +36 -3
- package/dist/lib/aliases/find/README.md +29 -0
- package/dist/lib/aliases/find/find.aliases.sh +29 -19
- package/dist/lib/aliases/gcloud/README.md +148 -0
- package/dist/lib/aliases/gcloud/gcloud.aliases.sh +142 -120
- package/dist/lib/aliases/git/git.aliases.sh +128 -522
- package/dist/lib/aliases/gnu/gnucoreutils-aliases.sh +116 -0
- package/dist/lib/aliases/heroku/heroku.aliases.sh +288 -1028
- package/dist/lib/aliases/interactive/interactive.aliases.sh +2 -2
- package/dist/lib/aliases/jekyll/jekyll.aliases.sh +9 -47
- package/dist/lib/aliases/list/list.aliases.sh +30 -28
- package/dist/lib/aliases/make/make.aliases.sh +2 -2
- package/dist/lib/aliases/mkdir/mkdir.aliases.sh +2 -2
- package/dist/lib/aliases/npm/npm.aliases.sh +2 -2
- package/dist/lib/aliases/pnpm/pnpm.aliases.sh +3 -3
- package/dist/lib/aliases/ps/ps.aliases.sh +3 -3
- package/dist/lib/aliases/rsync/rsync.aliases.sh +6 -4
- package/dist/lib/aliases/rust/rust.aliases.sh +4 -4
- package/dist/lib/aliases/subversion/subversion.aliases.sh +3 -3
- package/dist/lib/aliases/sudo/sudo.aliases.sh +2 -2
- package/dist/lib/aliases/tmux/tmux.aliases.sh +3 -3
- package/dist/lib/aliases/update/update.aliases.sh +7 -7
- package/dist/lib/aliases/uuid/uuid.aliases.sh +3 -3
- package/dist/lib/aliases/wget/wget.aliases.sh +3 -3
- package/dist/lib/aliases.sh +6 -3
- package/dist/lib/configurations/bash/bashrc +4 -3
- package/dist/lib/configurations/curl/curlrc +2 -2
- package/dist/lib/configurations/default/color.sh +2 -2
- package/dist/lib/configurations/default/constants.sh +3 -3
- package/dist/lib/configurations/default/editor.sh +2 -2
- package/dist/lib/configurations/default/prompt.sh +2 -2
- package/dist/lib/configurations/input/inputrc +2 -2
- package/dist/lib/configurations/nano/nanorc +2 -2
- package/dist/lib/configurations/profile/profile +2 -2
- package/dist/lib/configurations/tmux/default +2 -2
- package/dist/lib/configurations/tmux/display +2 -2
- package/dist/lib/configurations/tmux/linux +2 -2
- package/dist/lib/configurations/tmux/navigation +2 -2
- package/dist/lib/configurations/tmux/panes +2 -2
- package/dist/lib/configurations/tmux/theme +3 -3
- package/dist/lib/configurations/tmux/tmux +2 -2
- package/dist/lib/configurations/tmux/vi +5 -2
- package/dist/lib/configurations/vim/vimrc +1 -1
- package/dist/lib/configurations/wget/wgetrc +2 -2
- package/dist/lib/configurations/zsh/zshrc +4 -3
- package/dist/lib/configurations.sh +6 -3
- package/dist/lib/functions/cdls.sh +2 -2
- package/dist/lib/functions/changediskpwd.tmp +3 -3
- package/dist/lib/functions/code.tmp +3 -3
- package/dist/lib/functions/countdown.tmp +2 -2
- package/dist/lib/functions/curlheader.sh +2 -2
- package/dist/lib/functions/curltime.sh +3 -3
- package/dist/lib/functions/encode64.sh +2 -2
- package/dist/lib/functions/environment.sh +2 -2
- package/dist/lib/functions/extract.sh +2 -2
- package/dist/lib/functions/genpwd.sh +2 -2
- package/dist/lib/functions/goto.sh +2 -2
- package/dist/lib/functions/hidehiddenfiles.sh +2 -2
- package/dist/lib/functions/history-all.tmp +2 -2
- package/dist/lib/functions/hostinfo.sh +2 -2
- package/dist/lib/functions/hstats.sh +2 -2
- package/dist/lib/functions/httpdebug.sh +2 -2
- package/dist/lib/functions/keygen.sh +2 -2
- package/dist/lib/functions/last.sh +2 -2
- package/dist/lib/functions/logout.sh +2 -2
- package/dist/lib/functions/lowercase.sh +2 -2
- package/dist/lib/functions/macos.sh +2 -2
- package/dist/lib/functions/matrix.sh +5 -5
- package/dist/lib/functions/mcd.tmp +2 -2
- package/dist/lib/functions/mount_read_only.sh +2 -2
- package/dist/lib/functions/myproc.sh +2 -2
- package/dist/lib/functions/prependpath.sh +2 -2
- package/dist/lib/functions/print.tmp +2 -2
- package/dist/lib/functions/ql.sh +2 -2
- package/dist/lib/functions/rd.sh +2 -2
- package/dist/lib/functions/remove_disk.sh +2 -2
- package/dist/lib/functions/ren.sh +2 -2
- package/dist/lib/functions/rm.tmp +2 -2
- package/dist/lib/functions/rps.tmp +2 -2
- package/dist/lib/functions/showhiddenfiles.sh +2 -2
- package/dist/lib/functions/size.sh +2 -2
- package/dist/lib/functions/stopwatch.sh +2 -2
- package/dist/lib/functions/trash.tmp +2 -2
- package/dist/lib/functions/tree.tmp +2 -2
- package/dist/lib/functions/uppercase.sh +2 -2
- package/dist/lib/functions/uuidgen.tmp +1 -1
- package/dist/lib/functions/view-source.sh +2 -2
- package/dist/lib/functions/vscode.sh +2 -2
- package/dist/lib/functions/whoisport.sh +2 -2
- package/dist/lib/functions/zipf.sh +2 -2
- package/dist/lib/functions.sh +6 -3
- package/dist/lib/history.sh +24 -21
- package/dist/lib/paths/ant/ant.paths.sh +4 -4
- package/dist/lib/paths/default/default.paths.sh +2 -2
- package/dist/lib/paths/homebrew/homebrew.paths.sh +2 -2
- package/dist/lib/paths/java/java.paths.sh +5 -4
- package/dist/lib/paths/maven/maven.paths.sh +6 -5
- package/dist/lib/paths/node/node.paths.sh +2 -2
- package/dist/lib/paths/nvm/nvm.paths.sh +2 -2
- package/dist/lib/paths/pnpm/pnpm.paths.sh +2 -2
- package/dist/lib/paths/python/python.paths.sh +21 -16
- package/dist/lib/paths/ruby/ruby.paths.sh +2 -2
- package/dist/lib/paths/tmux/tmux.paths.sh +4 -4
- package/dist/lib/paths.sh +6 -3
- package/dist/scripts/backup.sh +2 -2
- package/dist/scripts/banner.sh +2 -2
- package/dist/scripts/build.sh +2 -2
- package/dist/scripts/clean.sh +2 -2
- package/dist/scripts/compile.sh +2 -2
- package/dist/scripts/copy.sh +2 -2
- package/dist/scripts/dotfiles.sh +2 -2
- package/dist/scripts/download.sh +2 -2
- package/dist/scripts/help.sh +2 -2
- package/dist/scripts/ssh.sh +2 -2
- package/dist/scripts/unpack.sh +2 -2
- package/package.json +7 -7
- package/dist/lib/aliases/diskusage/diskusage.aliases.sh +0 -16
- package/dist/lib/aliases/gnu/gnucoreutls-aliases.sh +0 -111
- package/dist/lib/aliases/navigation/navigation.aliases.sh +0 -23
- package/dist/lib/aliases/permission/permission.aliases.sh +0 -28
|
@@ -1,41 +1,65 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
#
|
|
3
|
-
#
|
|
4
|
-
#
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
alias
|
|
12
|
-
alias
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
|
|
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.
|
|
16
26
|
alias ipinfo='ipconfig getpacket en0' # ipinfo: Get network interface parameters for en0.
|
|
17
|
-
alias
|
|
18
|
-
alias
|
|
19
|
-
alias
|
|
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.
|
|
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/.
|
|
35
30
|
alias srv='python3 -m http.server' # srv: Start a simple HTTP server.
|
|
36
|
-
alias t='tail -f' # t:
|
|
37
|
-
alias
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
alias
|
|
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.
|
|
@@ -1,19 +1,46 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
#
|
|
3
|
-
#
|
|
4
|
-
#
|
|
2
|
+
# Author: Sebastien Rousseau
|
|
3
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
4
|
+
# Description: Sets aliases for the `dig` command.
|
|
5
5
|
# License: MIT
|
|
6
|
+
# Script: dig.aliases.sh
|
|
7
|
+
# Version: 0.2.463
|
|
8
|
+
# Website: https://dotfiles.io
|
|
6
9
|
|
|
7
10
|
# 🅳🅸🅶 🅰🅻🅸🅰🆂🅴🆂
|
|
8
|
-
if command -v dig
|
|
9
|
-
|
|
10
|
-
alias
|
|
11
|
-
alias
|
|
12
|
-
alias
|
|
13
|
-
alias
|
|
14
|
-
alias
|
|
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
|
|
15
23
|
alias ip4='$(which dig) +short myip.opendns.com @resolver1.opendns.com -4' # ip4: Get your public IPv4 address.
|
|
16
24
|
alias ip6='$(which dig) -6 AAAA +short myip.opendns.com. @resolver1.opendns.com.' # ip6: Get your public IPv6 address.
|
|
17
25
|
alias ips='ip4; ip6' # ips: Get your public IPv4 and IPv6 addresses.
|
|
18
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
|
+
|
|
19
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.
|
|
@@ -1,13 +1,46 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
#
|
|
3
|
-
#
|
|
4
|
-
#
|
|
2
|
+
# Author: Sebastien Rousseau
|
|
3
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
4
|
+
# Description: Sets Editor Aliases
|
|
5
5
|
# License: MIT
|
|
6
|
+
# Script: editor.aliases.sh
|
|
7
|
+
# Version: 0.2.463
|
|
8
|
+
# Website: https://dotfiles.io
|
|
6
9
|
|
|
7
10
|
# 🅴🅳🅸🆃🅾🆁 🅰🅻🅸🅰🆂🅴🆂
|
|
8
11
|
editors="nano vim vi code gedi notepad++"
|
|
9
12
|
for editor in ${editors}; do
|
|
10
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
|
|
11
44
|
alias e='${editor}' # e: Edit a file.
|
|
12
45
|
alias edit='${editor}' # edit: Edit a file.
|
|
13
46
|
alias editor='${editor}' # editor: Edit a file.
|
|
@@ -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.
|
|
@@ -1,24 +1,34 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
#
|
|
3
|
-
#
|
|
4
|
-
#
|
|
2
|
+
# Author: Sebastien Rousseau
|
|
3
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
4
|
+
# Description: Sets Find Aliases
|
|
5
5
|
# License: MIT
|
|
6
|
+
# Script: find.aliases.sh
|
|
7
|
+
# Version: 0.2.463
|
|
8
|
+
# Website: https://dotfiles.io
|
|
6
9
|
|
|
7
10
|
# 🅵🅸🅽🅳 🅰🅻🅸🅰🆂🅴🆂
|
|
8
|
-
if command -v fd
|
|
9
|
-
alias fd='fd --color always
|
|
10
|
-
alias fda='fd --absolute-path'
|
|
11
|
-
alias
|
|
12
|
-
alias
|
|
13
|
-
alias
|
|
14
|
-
alias
|
|
15
|
-
alias
|
|
16
|
-
alias
|
|
17
|
-
alias
|
|
18
|
-
alias
|
|
19
|
-
alias
|
|
20
|
-
alias
|
|
21
|
-
alias
|
|
22
|
-
alias
|
|
23
|
-
alias
|
|
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.
|
|
24
34
|
fi
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
# Google Cloud Aliases
|
|
2
|
+
|
|
3
|
+
These aliases provide shortcuts for common Google Cloud commands. To use them, add the following lines to your `.bashrc` or `.bash_profile` file.
|
|
4
|
+
|
|
5
|
+
## Aliases
|
|
6
|
+
|
|
7
|
+
### Authenticate and authorize
|
|
8
|
+
|
|
9
|
+
- `gcaasa`: Like gcloud auth login but with service account credentials.
|
|
10
|
+
- `gcacd`: Configure Docker to use gcloud as a credential helper.
|
|
11
|
+
- `gcal`: List the accounts you are logged in with.
|
|
12
|
+
- `gcapat`: Print the access token for the current active account.
|
|
13
|
+
- `gcar`: Revoke credentials for the current active account.
|
|
14
|
+
|
|
15
|
+
### App Engine
|
|
16
|
+
|
|
17
|
+
- `gcapb`: Open the App Engine app in your default browser.
|
|
18
|
+
- `gcapc`: Create a new App Engine app.
|
|
19
|
+
- `gcapd`: Deploy an App Engine app.
|
|
20
|
+
- `gcapl`: Read the logs for an App Engine app.
|
|
21
|
+
- `gcapv`: List the versions of an App Engine app.
|
|
22
|
+
|
|
23
|
+
### Cloud SDK configuration and management
|
|
24
|
+
|
|
25
|
+
- `gccca`: Switch to an existing named configuration.
|
|
26
|
+
- `gcccc`: Create a new named configuration.
|
|
27
|
+
- `gcccl`: Display a list of all available configurations.
|
|
28
|
+
- `gccl`:Display all the properties for the current configuration.
|
|
29
|
+
- `gccgv`: Fetch value of a Cloud SDK property.
|
|
30
|
+
- `gccs`: Define a property (like compute/zone) for the current configuration.
|
|
31
|
+
- `gccsp`: Set a default Google Cloud project to work on.
|
|
32
|
+
- `gccu`: Update your Cloud SDK to the latest version.
|
|
33
|
+
- `gci`: Initialize, authorize, and configure the gcloud tool.
|
|
34
|
+
- `gcinf`: Display current gcloud tool environment details.
|
|
35
|
+
- `gciov`: Verify your email address for Google Cloud.
|
|
36
|
+
|
|
37
|
+
### Container
|
|
38
|
+
|
|
39
|
+
- `gcccc`: Create a cluster to run GKE containers.
|
|
40
|
+
- `gcccg`: Update kubeconfig to get kubectl to use a GKE cluster.
|
|
41
|
+
- `gcccl`: List clusters for running GKE containers.
|
|
42
|
+
- `gccil`: List tag and digest metadata for a container image.
|
|
43
|
+
- `gcd`: A convenience command group for all container-related commands.
|
|
44
|
+
|
|
45
|
+
### IAM
|
|
46
|
+
|
|
47
|
+
- `gciamk`: List a service account's keys.
|
|
48
|
+
- `gciaml`: List IAM grantable roles for a resource.
|
|
49
|
+
- `gciamp`: Add an IAM policy binding to a service account.
|
|
50
|
+
- `gciamr`: Create a custom role for a project or org
|
|
51
|
+
- `gciamd`: Delete a custom role for a project or org.
|
|
52
|
+
- `gciampd`: Remove an IAM policy binding from a service account.
|
|
53
|
+
- `gciamro`: Describe a custom role for a project or org.
|
|
54
|
+
- `gciamsp`: Replace the IAM policy of a service account.
|
|
55
|
+
- `gciamu`: Undelete a custom role for a project or org.
|
|
56
|
+
- `gciamup`: Update a service account.
|
|
57
|
+
- `gcimp`: List available Cloud Identity domains.
|
|
58
|
+
- `gcimpe`: Add an IAM policy binding to a Cloud Identity domain.
|
|
59
|
+
- `gcimpr`: Remove an IAM policy binding from a Cloud Identity domain.
|
|
60
|
+
- `gcsac`: Obtain an access token for the Google Cloud APIs.
|
|
61
|
+
|
|
62
|
+
### Compute
|
|
63
|
+
|
|
64
|
+
- `gcc`: A convenience command group for all compute-related commands.
|
|
65
|
+
- `gcpa`: Add an IAM policy binding to a specified project.
|
|
66
|
+
- `gcpc`: Copy files.
|
|
67
|
+
- `gcpd`: Display metadata for a project (including its ID).
|
|
68
|
+
- `gcpdown`: Stop instance.
|
|
69
|
+
- `gcpds`: Create snapshot of persistent disks.
|
|
70
|
+
- `gcpid`: Display a VM instance's details.
|
|
71
|
+
- `gcpil`: List all VM instances in a project.
|
|
72
|
+
- `gcprm`: Delete instance.
|
|
73
|
+
- `gcpsk`: Delete a snapshot.
|
|
74
|
+
- `gcpssh`: Connect to a VM instance by using SSH.
|
|
75
|
+
- `gcpup`: Start instance.
|
|
76
|
+
- `gcpzl`:List Compute Engine zones.
|
|
77
|
+
|
|
78
|
+
### Deployment Manager
|
|
79
|
+
|
|
80
|
+
- `gcdm`: A convenience command group for all deployment-manager-related commands.
|
|
81
|
+
- `gcdma`: Create a new deployment.
|
|
82
|
+
- `gcdmd`: Delete a deployment.
|
|
83
|
+
- `gcdmg`: Describe a deployment.
|
|
84
|
+
- `gcdml`: List all deployments.
|
|
85
|
+
- `gcdmu`: Update a deployment.
|
|
86
|
+
|
|
87
|
+
### DNS
|
|
88
|
+
|
|
89
|
+
- `gcdns`: A convenience command group for all dns-related commands.
|
|
90
|
+
- `gcdnsz`: List managed DNS zones.
|
|
91
|
+
- `gcdnsc`: List or apply DNS record sets changes.
|
|
92
|
+
- `gcdnsd`: Delete a managed DNS zone.
|
|
93
|
+
- `gcdnsi`: Create a new managed DNS zone.
|
|
94
|
+
- `gcdnsk`: List and manage DNSSEC keys for a zone.
|
|
95
|
+
- `gcdnsl`: List record sets in a managed zone.
|
|
96
|
+
- `gcdnsr`: Start a transaction to add, update, or remove record sets.
|
|
97
|
+
- `gcdnss`: Execute a transaction to add, update, or remove record sets.
|
|
98
|
+
- `gcdnst`: Abort a transaction to add, update, or remove record sets.
|
|
99
|
+
|
|
100
|
+
### Functions
|
|
101
|
+
|
|
102
|
+
- `gcf`: A convenience command group for all functions-related commands.
|
|
103
|
+
|
|
104
|
+
### Cloud Build
|
|
105
|
+
|
|
106
|
+
- `gcb`: A convenience command group for all Cloud Build-related commands.
|
|
107
|
+
- `gcbh`: List all builds in a project.
|
|
108
|
+
- `gcbb`: Submit a build to Cloud Build.
|
|
109
|
+
|
|
110
|
+
### Cloud Run
|
|
111
|
+
|
|
112
|
+
- `gcr`: A convenience command group for all Cloud Run-related commands.
|
|
113
|
+
- `gcrd`: Deploy a container to Cloud Run.
|
|
114
|
+
- `gcrs`: List, describe, and manage services on Cloud Run.
|
|
115
|
+
- `gcru`: Update an existing Cloud Run service.
|
|
116
|
+
- `gcrf`: Display logs for a Cloud Run service.
|
|
117
|
+
|
|
118
|
+
### Cloud Storage
|
|
119
|
+
|
|
120
|
+
- `gcs`: A convenience command group for all Cloud Storage-related commands.
|
|
121
|
+
- `gcsc`: Copy files and objects to/from Cloud Storage.
|
|
122
|
+
- `gcscp`: Copy files and objects to/from Cloud Storage using parallel processing.
|
|
123
|
+
- `gcsd`: Display the total size of a bucket or object.
|
|
124
|
+
- `gcsl`:List contents of a bucket or folder.
|
|
125
|
+
- `gcspm`: Set metadata for objects in Cloud Storage.
|
|
126
|
+
|
|
127
|
+
### BigQuery
|
|
128
|
+
|
|
129
|
+
- `gcbq`: A convenience command group for all BigQuery-related commands.
|
|
130
|
+
- `gcbql`: List all datasets in a project.
|
|
131
|
+
- `gcbqs`: Show details about a specific dataset or table.
|
|
132
|
+
- `gcbqd`: Delete a dataset or table.
|
|
133
|
+
- `gcbqc`: Run a BigQuery SQL query.
|
|
134
|
+
|
|
135
|
+
### Cloud SQL
|
|
136
|
+
|
|
137
|
+
- `gcsql`: A convenience command group for all Cloud SQL-related commands.
|
|
138
|
+
- `gcsqlc`: Connect to a Cloud SQL instance.
|
|
139
|
+
- `gcsqlc`: Create a new Cloud SQL instance.
|
|
140
|
+
- `gcsqlr`: Describe a Cloud SQL instance.
|
|
141
|
+
- `gcsqlu`: Update the password for a Cloud SQL user.
|
|
142
|
+
|
|
143
|
+
### Pub/Sub
|
|
144
|
+
|
|
145
|
+
- `gcps`: A convenience command group for all Pub/Sub-related commands.
|
|
146
|
+
- `gcpsp`: List, create, and manage Pub/Sub topics.
|
|
147
|
+
- `gcpss`: List, create, and manage Pub/Sub subscriptions.
|
|
148
|
+
- `gcpsp`: Publish a message to a Pub/Sub topic.
|