Skip to content

Commit

Permalink
Merge pull request #46 from sebastienrousseau/0.2.462
Browse files Browse the repository at this point in the history
0.2.462
  • Loading branch information
sebastienrousseau authored Nov 7, 2022
2 parents b524d34 + 1f17d29 commit 3ac163c
Show file tree
Hide file tree
Showing 18 changed files with 336 additions and 380 deletions.
6 changes: 4 additions & 2 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

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

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

If you believe you have found a security vulnerability in any of our repository, please report it to us as described below.
If you believe you have found a security vulnerability in any of our repository,
please report it to us as described below.

## Reporting Security Issues

Expand Down
11 changes: 7 additions & 4 deletions assets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@

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

This directory contains the following files and directories that are used by the dotfiles:
This directory contains the following files and directories that are used by the
dotfiles:

- `dotfiles.svg` - the dotfiles logo file.
- `made-with-love.svg` - made with love.svg file.

## License

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

The made with love.svg file is licensed under the [Creative Commons Attribution
4.0 International License](https://creativecommons.org/licenses/by/4.0/).
[license]: https://creativecommons.org/licenses/by/4.0/
2 changes: 1 addition & 1 deletion bin/dotfiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = async function main() {
} while (i < aliases.length && i < copies.length);

// Download and unpack dotfiles.
download(); // download the dotfiles
download; // download the dotfiles
await sleep(2500); // wait for download to complete
unpack(); // unpack the downloaded file
await sleep(2500); // wait for unpack to complete
Expand Down
34 changes: 0 additions & 34 deletions lib/aliases/archiver/archiver.aliases.sh

This file was deleted.

42 changes: 42 additions & 0 deletions lib/aliases/archives/archives.aliases.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/usr/bin/env bash
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.462) - https://dotfiles.io
# Made with ♥ in London, UK by @sebastienrousseau
# Copyright (c) 2015-2022. All rights reserved
# License: MIT

# 🅰🆁🅲🅷🅸🆅🅴🆂 🅰🅻🅸🅰🆂🅴🆂
if command -v 7z &>/dev/null; then
alias c7z='7z a' # c7z: Compress a whole directory (including subdirectories) to a 7z file.
alias e7z='7z x' # e7z: Extract a whole directory (including subdirectories) from a 7z file.
fi

if command -v tar &>/dev/null; then
alias cbz2='tar -cvjf' # cbz2: Compress a file to a bz2 file.
alias ctar='tar -cvf' # ctar: Compress a whole directory (including subdirectories) to a tar file.
alias etar='tar -xvf' # etar: Extract a whole directory (including subdirectories) from a tar file.
alias cgz='tar -zcvf' # cgz: Compress a file to a gz file.
alias cxz='tar -cvJf' # cxz: Compress a whole directory (including subdirectories) to a xz file.
alias ebz2='tar -xvjf' # ebz2: Extract a file from a bz2 file.
alias egz='tar -xvzf' # egz: Extract a file from a gz file.
alias exz='tar -xvJf' # exz: Extract a whole directory (including subdirectories) from a xz file.
fi

if command -v jar &>/dev/null; then
alias cjar='jar -cvf' # cjar: Compress a whole directory (including subdirectories) to a jar file.
alias ejar='jar -xvf' # ejar: Extract a whole directory (including subdirectories) from a jar file.
fi

if command -v xz &>/dev/null; then
alias cxz='xz -zcvf' # cxz: Compress a whole directory (including subdirectories) to a xz file.
alias exz='xz -zxvf' # exz: Extract a whole directory (including subdirectories) from a xz file.
fi

if command -v zip &>/dev/null; then
alias cz='zip -r' # czip: Compress a whole directory (including subdirectories) to a zip file.
alias ez='unzip' # ezip: Extract a whole directory (including subdirectories) from a zip file.
fi

if command -v zstd &>/dev/null; then
alias czstd='zstd -zcvf' # czstd: Compress a whole directory (including subdirectories) to a zstd file.
alias ezstd='zstd -zxvf' # ezstd: Extract a whole directory (including subdirectories) from a zstd file.
fi
32 changes: 16 additions & 16 deletions lib/aliases/clear/clear.aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
# License: MIT

# 🅲🅻🅴🅰🆁 🅰🅻🅸🅰🆂🅴🆂
alias c="clear" # c: Clear screen shortcut.
alias cl="c" # cl: Clear screen shortcut.
alias clc="clear && cat" # clc: Clear the screen and show the current file.
alias clcat="clc" # clcat: Clear the screen and show the current file.
alias clh="clear && history" # clh: Clear the screen and show the history.
alias clhist="clh" # clhist: Clear the screen and show the history.
alias clp="clear && pwd" # clp: Clear the screen and show the current directory.
alias clpwd="clp" # clpwd: Clear the screen and show the current directory.
alias clr="c" # clr: Clear screen shortcut.
alias cls="c" # cls: Clear screen shortcut.
alias clt="clear && tree" # clt: Clear the screen and show the current directory tree.
alias cltree="clt" # cltree: Clear the screen and show the current directory tree.
alias ct="clear && tree ./" # ct: Clear screen and list directory contents.
alias ctree="ct" # ctree: Clear screen and list directory contents.
alias cpl="clear && pwd && echo '' && ls -a && echo ''" # cpl: Clear the screen, show the current directory, and list all files.
alias cplt="clear && pwd && echo '' && tree ./ && echo ''" # cplt: Clear the screen and show the current directory and tree.
alias c="clear" # c: Clear the terminal screen.
alias cl="c" # cl: Clear the terminal screen.
alias clc="clear && cat" # clc: Clear the terminal screen and print the contents of the current directory.
alias clcat="clc" # clcat: Clear the terminal screen and print the contents of the current directory.
alias clh="clear && history" # clh: Clear the terminal screen and print the command history.
alias clhist="clh" # clhist: Clear the terminal screen and print the command history.
alias clp="clear && pwd" # clp: Clear the terminal screen and print the current working directory.
alias clpwd="clp" # clpwd: Clear the terminal screen and print the current working directory.
alias clr="c" # clr: Clear the terminal screen.
alias cls="c" # cls: Clear the terminal screen.
alias clt="clear && tree" # clt: Clear the terminal screen and print the directory tree.
alias cltree="clt" # cltree: Clear the terminal screen and print the directory tree.
alias ct="clear && tree ./" # ct: Clear the terminal screen and print the directory tree.
alias ctree="ct" # ctree: Clear the terminal screen and print the directory tree.
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.
alias cplt="clear && pwd && echo '' && tree ./ && echo ''" # cplt: Clear the terminal screen and print the current working directory and the directory tree.
10 changes: 5 additions & 5 deletions lib/aliases/configuration/configuration.aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# License: MIT

# 🅲🅾🅽🅵🅸🅶🆄🆁🅰🆃🅸🅾🅽 🅰🅻🅸🅰🆂🅴🆂
alias bash_profile='${=EDITOR} $HOME/.bash_profile' # bash_profile: Ouvre le fichier de configuration bash_profile
alias bashrc='${=EDITOR} $HOME/.bashrc' # bashrc: Ouvre le fichier de configuration bashrc
alias gitconfig='${=EDITOR} $HOME/.gitconfig' # gitconfig: Ouvre le fichier de configuration gitconfig
alias gitignore='${=EDITOR} $HOME/.gitignore' # gitignore: Ouvre le fichier de configuration gitignore
alias zshrc='${=EDITOR} $HOME/.zshrc' # zshrc: Ouvre le fichier de configuration zshrc
alias bshp='${=EDITOR} $HOME/.bash_profile' # bshp: Open the Bash profile in the default text editor.
alias bshrc='${=EDITOR} $HOME/.bashrc' # bshrc: Open the Bash configuration file in the default text editor.
alias gcfg='${=EDITOR} $HOME/.gitconfig' # gcfg: Open the Git configuration file in the default text editor.
alias gign='${=EDITOR} $HOME/.gitignore' # gign: Open the Git ignore file in the default text editor.
alias zshrc='${=EDITOR} $HOME/.zshrc' # zshrc: Open the Zsh configuration file in the default text editor.
45 changes: 6 additions & 39 deletions lib/aliases/default/default.aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,29 @@

# 🅳🅴🅵🅰🆄🅻🆃 🅰🅻🅸🅰🆂🅴🆂
alias ':q'='quit' # q: Shortcut for the `exit` command.
alias bye='quit' # q: Shortcut for the `exit` command.
alias bye='quit' # bye: Shortcut for the `exit` command.
alias ctf='echo $(ls -1 | wc -l)' # ctf: Count the number of files in the current directory.
alias curl='curl --compressed' # curl: Use compression when transferring data.
alias da='date "+%Y-%m-%d %A %T %Z"' # da: Display the current date and time.
alias h='history' # h: Lists all recently used commands.
alias halt="sudo /sbin/halt" # halt: Shutdown the system.
alias ifconfig='sudo ifconfig' # ifconfig: Append sudo to ifconfig (configure network interface parameters) command.
alias ipinfo='ipconfig getpacket en0' # ipInfo0: Get network interface parameters for en0.
alias ipinfo='ipconfig getpacket en0' # ipinfo: Get network interface parameters for en0.
alias moon='curl -s "wttr.in/?format=%m"' # moon: Get the moon phase.
alias nls='sudo lsof -i -P | grep LISTEN' # nls: Show only active network listeners.
alias now='date +"%T"' # now: Show the current time.
alias op='sudo lsof -i -P' # op: List of open ports.
alias p='pwd' # p: Shortcut for `pwd` which returns working directory name.
alias path='echo ${PATH//:/\\n}' # path: Display the $PATH variable on newlines.
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.
alias ping='ping -c 5' # ping: Limit Ping to 5 ECHO_REQUEST packets.
alias please='sudo -' # sudo: Execute a command as the superuser.
alias please='sudo -' # please: Execute a command as the superuser.
alias ports='netstat -tulan' # ports: List all listening ports.
alias poweroff="sudo /sbin/shutdown" # poweroff: Poweroff the system.
alias ps='ps auxwww' # kp: Getting full path of executables.
alias q='quit' # q: Shortcut for the `exit` command.
alias qfind='find . -name ' # qfind: Quickly search for file.
alias quit='exit' # q: Shortcut for the `exit` command.
alias r=reload # r: Reload the shell.
alias reboot="sudo /sbin/reboot" # reboot: Reboot the system.
alias quit='exit' # quit: Shortcut for the `exit` command.
alias r='reload' # r: Reload the shell.
alias reboot='sudo /sbin/reboot' # reboot: Reboot the system.
alias reload='exec $SHELL -l' # reload: Reload the shell.
alias shutdown='sudo shutdown -h now' # shutdown: Shutdown the system.
alias spd='sudo rm -rf /private/var/log/asl/*' # spd: Remove all log files in /private/var/log/asl.
Expand All @@ -41,34 +39,3 @@ alias tree='tree --dirsfirst' # tree: Display a directory tree.
alias wk='date +%V' # wk: Show the current week number.
alias wth='curl -s "wttr.in/?format=3"' # wth: Get the weather.
alias x='quit' # q: Shortcut for the `exit` command.
if [[ "$(uname || true)" = "Darwin" ]]; then
alias upd='
sudo softwareupdate -i -a;
pnpm up;
rustup update stable;
if [[ "$(command -v brew cu)" ]]; then
brew cu -ayi;
else
brew tap buo/cask-upgrade;
fi;
brew doctor;
brew update;
brew upgrade;
brew cleanup;
mas upgrade;
sudo gem update;
sudo gem cleanup;
'
elif [[ "$(uname || true)" = "Linux" ]]; then
alias open="xdg-open >/dev/null 2>&1" # open: Open a file or URL in the user's preferred application.
alias pbcopy='xsel --clipboard --input' # pbcopy: Copy to clipboard.
alias pbpaste='xsel --clipboard --output' # pbpaste: Paste from clipboard.
alias upd='
sudo apt update;
sudo apt upgrade -y;
pnpm up;
rustup update stable;
sudo gem update;
sudo gem cleanup;
'
fi
13 changes: 8 additions & 5 deletions lib/aliases/dig/dig.aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@

# 🅳🅸🅶 🅰🅻🅸🅰🆂🅴🆂
if command -v dig &>/dev/null; then
alias d='$(which dig)' # d: Run the dig command with the default options.
alias d4='$(which dig) +short -4' # d4: Perform a DNS lookup for an IPv4 address.
alias d6='$(which dig) +short -6' # d6: Perform a DNS lookup for an IPv6 address.
alias dga='$(which dig) +all ANY' # dga: Perform a DNS lookup for all records.
alias dgs='$(which dig) +short' # dgs: Perform a DNS lookup.
alias dgs='$(which dig) +short' # dgs: Perform a DNS lookup for a short answer.
alias digg='$(which dig) @8.8.8.8 +nocmd any +multiline +noall +answer' # digg: Dig with Google's DNS.
alias ip4='$(which dig) +short myip.opendns.com @resolver1.opendns.com -4' # ip4: Display the public IPv4 address.
alias ip6='$(which dig) -6 AAAA +short myip.opendns.com. @resolver1.opendns.com.' # ip6: Get the public IPv6 address.
alias ips='ip4; ip6' # ips: Display all IP addresses.
alias wip='$(which dig) +short myip.opendns.com @resolver1.opendns.com' # wip: Get public IP address.
alias ip4='$(which dig) +short myip.opendns.com @resolver1.opendns.com -4' # ip4: Get your public IPv4 address.
alias ip6='$(which dig) -6 AAAA +short myip.opendns.com. @resolver1.opendns.com.' # ip6: Get your public IPv6 address.
alias ips='ip4; ip6' # ips: Get your public IPv4 and IPv6 addresses.
alias wip='$(which dig) +short myip.opendns.com @resolver1.opendns.com' # wip: Get your public IP address.
fi
5 changes: 3 additions & 2 deletions lib/aliases/diskusage/diskusage.aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@

# 🅳🅸🆂🅺 🆄🆂🅰🅶🅴 🅰🅻🅸🅰🆂🅴🆂
if command -v du &>/dev/null; then
alias du="du -h" # du: Display the disk usage of the current directory.
alias du1='du -hxd 1 | sort -h' # du1: File size of files and directories in current directory.
alias ducks="du -cks * .*| sort -rn | head -n 10" # ducks: Top 10 largest files and directories in current directory.
alias duh='du -h' # duh: File size of files and directories.
alias duh='du' # duh: File size of files and directories.
alias dus='du -hs *' # dus: File size human readable output sorted by size.
alias dusym="du * -hsLc" # dusym: File size of files and directories in current directory including symlinks.
alias dut='du -hs' # dut: Total file size of current directory.
alias dut='dus' # dut: Total file size of current directory.
fi
2 changes: 1 addition & 1 deletion lib/aliases/editor/editor.aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# License: MIT

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

0 comments on commit 3ac163c

Please sign in to comment.