Skip to content

Commit 3ac163c

Browse files
Merge pull request #46 from sebastienrousseau/0.2.462
0.2.462
2 parents b524d34 + 1f17d29 commit 3ac163c

18 files changed

+336
-380
lines changed

.github/SECURITY.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
[![Banner representing the Dotfiles Library][logo]][website]
44

5-
We take the security of our software products and services seriously, which includes all source code repositories managed through our GitHub repositories.
5+
We take the security of our software products and services seriously, which
6+
includes all source code repositories managed through our GitHub repositories.
67

7-
If you believe you have found a security vulnerability in any of our repository, please report it to us as described below.
8+
If you believe you have found a security vulnerability in any of our repository,
9+
please report it to us as described below.
810

911
## Reporting Security Issues
1012

assets/README.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22

33
![Banner representing the Dotfiles Library](/assets/dotfiles.svg)
44

5-
This directory contains the following files and directories that are used by the dotfiles:
5+
This directory contains the following files and directories that are used by the
6+
dotfiles:
67

78
- `dotfiles.svg` - the dotfiles logo file.
89
- `made-with-love.svg` - made with love.svg file.
910

1011
## License
1112

12-
The dotfiles logo is licensed under the [Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/4.0/).
13+
- The dotfiles logo is licensed under the
14+
[Creative Commons Attribution 4.0 International License][license].
15+
- The made with love.svg file is licensed under the
16+
[Creative Commons Attribution 4.0 International License][license].
1317

14-
The made with love.svg file is licensed under the [Creative Commons Attribution
15-
4.0 International License](https://creativecommons.org/licenses/by/4.0/).
18+
[license]: https://creativecommons.org/licenses/by/4.0/

bin/dotfiles.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = async function main() {
3131
} while (i < aliases.length && i < copies.length);
3232

3333
// Download and unpack dotfiles.
34-
download(); // download the dotfiles
34+
download; // download the dotfiles
3535
await sleep(2500); // wait for download to complete
3636
unpack(); // unpack the downloaded file
3737
await sleep(2500); // wait for unpack to complete

lib/aliases/archiver/archiver.aliases.sh

-34
This file was deleted.
+42
Original file line numberDiff line numberDiff line change
@@ -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

lib/aliases/clear/clear.aliases.sh

+16-16
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55
# License: MIT
66

77
# 🅲🅻🅴🅰🆁 🅰🅻🅸🅰🆂🅴🆂
8-
alias c="clear" # c: Clear screen shortcut.
9-
alias cl="c" # cl: Clear screen shortcut.
10-
alias clc="clear && cat" # clc: Clear the screen and show the current file.
11-
alias clcat="clc" # clcat: Clear the screen and show the current file.
12-
alias clh="clear && history" # clh: Clear the screen and show the history.
13-
alias clhist="clh" # clhist: Clear the screen and show the history.
14-
alias clp="clear && pwd" # clp: Clear the screen and show the current directory.
15-
alias clpwd="clp" # clpwd: Clear the screen and show the current directory.
16-
alias clr="c" # clr: Clear screen shortcut.
17-
alias cls="c" # cls: Clear screen shortcut.
18-
alias clt="clear && tree" # clt: Clear the screen and show the current directory tree.
19-
alias cltree="clt" # cltree: Clear the screen and show the current directory tree.
20-
alias ct="clear && tree ./" # ct: Clear screen and list directory contents.
21-
alias ctree="ct" # ctree: Clear screen and list directory contents.
22-
alias cpl="clear && pwd && echo '' && ls -a && echo ''" # cpl: Clear the screen, show the current directory, and list all files.
23-
alias cplt="clear && pwd && echo '' && tree ./ && echo ''" # cplt: Clear the screen and show the current directory and tree.
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.

lib/aliases/configuration/configuration.aliases.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
# License: MIT
66

77
# 🅲🅾🅽🅵🅸🅶🆄🆁🅰🆃🅸🅾🅽 🅰🅻🅸🅰🆂🅴🆂
8-
alias bash_profile='${=EDITOR} $HOME/.bash_profile' # bash_profile: Ouvre le fichier de configuration bash_profile
9-
alias bashrc='${=EDITOR} $HOME/.bashrc' # bashrc: Ouvre le fichier de configuration bashrc
10-
alias gitconfig='${=EDITOR} $HOME/.gitconfig' # gitconfig: Ouvre le fichier de configuration gitconfig
11-
alias gitignore='${=EDITOR} $HOME/.gitignore' # gitignore: Ouvre le fichier de configuration gitignore
12-
alias zshrc='${=EDITOR} $HOME/.zshrc' # zshrc: Ouvre le fichier de configuration zshrc
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.

lib/aliases/default/default.aliases.sh

+6-39
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,29 @@
66

77
# 🅳🅴🅵🅰🆄🅻🆃 🅰🅻🅸🅰🆂🅴🆂
88
alias ':q'='quit' # q: Shortcut for the `exit` command.
9-
alias bye='quit' # q: Shortcut for the `exit` command.
9+
alias bye='quit' # bye: Shortcut for the `exit` command.
1010
alias ctf='echo $(ls -1 | wc -l)' # ctf: Count the number of files in the current directory.
1111
alias curl='curl --compressed' # curl: Use compression when transferring data.
1212
alias da='date "+%Y-%m-%d %A %T %Z"' # da: Display the current date and time.
1313
alias h='history' # h: Lists all recently used commands.
1414
alias halt="sudo /sbin/halt" # halt: Shutdown the system.
1515
alias ifconfig='sudo ifconfig' # ifconfig: Append sudo to ifconfig (configure network interface parameters) command.
16-
alias ipinfo='ipconfig getpacket en0' # ipInfo0: Get network interface parameters for en0.
16+
alias ipinfo='ipconfig getpacket en0' # ipinfo: Get network interface parameters for en0.
1717
alias moon='curl -s "wttr.in/?format=%m"' # moon: Get the moon phase.
1818
alias nls='sudo lsof -i -P | grep LISTEN' # nls: Show only active network listeners.
1919
alias now='date +"%T"' # now: Show the current time.
2020
alias op='sudo lsof -i -P' # op: List of open ports.
2121
alias p='pwd' # p: Shortcut for `pwd` which returns working directory name.
2222
alias path='echo ${PATH//:/\\n}' # path: Display the $PATH variable on newlines.
23-
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.
2423
alias ping='ping -c 5' # ping: Limit Ping to 5 ECHO_REQUEST packets.
25-
alias please='sudo -' # sudo: Execute a command as the superuser.
24+
alias please='sudo -' # please: Execute a command as the superuser.
2625
alias ports='netstat -tulan' # ports: List all listening ports.
2726
alias poweroff="sudo /sbin/shutdown" # poweroff: Poweroff the system.
28-
alias ps='ps auxwww' # kp: Getting full path of executables.
2927
alias q='quit' # q: Shortcut for the `exit` command.
3028
alias qfind='find . -name ' # qfind: Quickly search for file.
31-
alias quit='exit' # q: Shortcut for the `exit` command.
32-
alias r=reload # r: Reload the shell.
33-
alias reboot="sudo /sbin/reboot" # reboot: Reboot the system.
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.
3432
alias reload='exec $SHELL -l' # reload: Reload the shell.
3533
alias shutdown='sudo shutdown -h now' # shutdown: Shutdown the system.
3634
alias spd='sudo rm -rf /private/var/log/asl/*' # spd: Remove all log files in /private/var/log/asl.
@@ -41,34 +39,3 @@ alias tree='tree --dirsfirst' # tree: Display a directory tree.
4139
alias wk='date +%V' # wk: Show the current week number.
4240
alias wth='curl -s "wttr.in/?format=3"' # wth: Get the weather.
4341
alias x='quit' # q: Shortcut for the `exit` command.
44-
if [[ "$(uname || true)" = "Darwin" ]]; then
45-
alias upd='
46-
sudo softwareupdate -i -a;
47-
pnpm up;
48-
rustup update stable;
49-
if [[ "$(command -v brew cu)" ]]; then
50-
brew cu -ayi;
51-
else
52-
brew tap buo/cask-upgrade;
53-
fi;
54-
brew doctor;
55-
brew update;
56-
brew upgrade;
57-
brew cleanup;
58-
mas upgrade;
59-
sudo gem update;
60-
sudo gem cleanup;
61-
'
62-
elif [[ "$(uname || true)" = "Linux" ]]; then
63-
alias open="xdg-open >/dev/null 2>&1" # open: Open a file or URL in the user's preferred application.
64-
alias pbcopy='xsel --clipboard --input' # pbcopy: Copy to clipboard.
65-
alias pbpaste='xsel --clipboard --output' # pbpaste: Paste from clipboard.
66-
alias upd='
67-
sudo apt update;
68-
sudo apt upgrade -y;
69-
pnpm up;
70-
rustup update stable;
71-
sudo gem update;
72-
sudo gem cleanup;
73-
'
74-
fi

lib/aliases/dig/dig.aliases.sh

+8-5
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@
66

77
# 🅳🅸🅶 🅰🅻🅸🅰🆂🅴🆂
88
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.
912
alias dga='$(which dig) +all ANY' # dga: Perform a DNS lookup for all records.
10-
alias dgs='$(which dig) +short' # dgs: Perform a DNS lookup.
13+
alias dgs='$(which dig) +short' # dgs: Perform a DNS lookup for a short answer.
1114
alias digg='$(which dig) @8.8.8.8 +nocmd any +multiline +noall +answer' # digg: Dig with Google's DNS.
12-
alias ip4='$(which dig) +short myip.opendns.com @resolver1.opendns.com -4' # ip4: Display the public IPv4 address.
13-
alias ip6='$(which dig) -6 AAAA +short myip.opendns.com. @resolver1.opendns.com.' # ip6: Get the public IPv6 address.
14-
alias ips='ip4; ip6' # ips: Display all IP addresses.
15-
alias wip='$(which dig) +short myip.opendns.com @resolver1.opendns.com' # wip: Get public IP address.
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.
1619
fi

lib/aliases/diskusage/diskusage.aliases.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66

77
# 🅳🅸🆂🅺 🆄🆂🅰🅶🅴 🅰🅻🅸🅰🆂🅴🆂
88
if command -v du &>/dev/null; then
9+
alias du="du -h" # du: Display the disk usage of the current directory.
910
alias du1='du -hxd 1 | sort -h' # du1: File size of files and directories in current directory.
1011
alias ducks="du -cks * .*| sort -rn | head -n 10" # ducks: Top 10 largest files and directories in current directory.
11-
alias duh='du -h' # duh: File size of files and directories.
12+
alias duh='du' # duh: File size of files and directories.
1213
alias dus='du -hs *' # dus: File size human readable output sorted by size.
1314
alias dusym="du * -hsLc" # dusym: File size of files and directories in current directory including symlinks.
14-
alias dut='du -hs' # dut: Total file size of current directory.
15+
alias dut='dus' # dut: Total file size of current directory.
1516
fi

lib/aliases/editor/editor.aliases.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# License: MIT
66

77
# 🅴🅳🅸🆃🅾🆁 🅰🅻🅸🅰🆂🅴🆂
8-
editors="nano vim vi emacs code atom subl sublime textmate mate gedit geany"
8+
editors="nano vim vi code gedi notepad++"
99
for editor in ${editors}; do
1010
if command -v "${editor}" &>/dev/null; then
1111
alias e='${editor}' # e: Edit a file.

0 commit comments

Comments
 (0)