@sebastienrousseau/dotfiles 0.2.464 β 0.2.466
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/LICENSE +20 -17
- package/README.md +210 -382
- package/dist/Makefile +2 -2
- package/dist/bin/constants.d.ts +2 -2
- package/dist/bin/constants.d.ts.map +1 -1
- package/dist/bin/constants.js +1 -1
- package/dist/bin/constants.js.map +1 -1
- package/dist/filesizes.txt +170 -144
- package/dist/lib/README.md +6 -1
- package/dist/lib/aliases/README.md +51 -0
- package/dist/lib/aliases/archives/README.md +39 -67
- package/dist/lib/aliases/archives/archives.aliases.sh +128 -60
- package/dist/lib/aliases/cd/README.md +26 -9
- package/dist/lib/aliases/cd/cd.aliases.sh +1 -4
- package/dist/lib/aliases/chmod/README.md +48 -13
- package/dist/lib/aliases/chmod/chmod.aliases.sh +1 -1
- package/dist/lib/aliases/clear/README.md +33 -38
- package/dist/lib/aliases/clear/clear.aliases.sh +35 -33
- package/dist/lib/aliases/configuration/README.md +26 -37
- package/dist/lib/aliases/configuration/configuration.aliases.sh +40 -36
- package/dist/lib/aliases/default/README.md +26 -52
- package/dist/lib/aliases/default/default.aliases.sh +105 -44
- package/dist/lib/aliases/dig/README.md +23 -40
- package/dist/lib/aliases/dig/dig.aliases.sh +26 -29
- package/dist/lib/aliases/disk-usage/README.md +32 -0
- package/dist/lib/aliases/disk-usage/du.aliases.sh +84 -0
- package/dist/lib/aliases/editor/README.md +35 -33
- package/dist/lib/aliases/editor/editor.aliases.sh +13 -39
- package/dist/lib/aliases/find/README.md +42 -29
- package/dist/lib/aliases/find/find.aliases.sh +52 -26
- package/dist/lib/aliases/gcloud/README.md +59 -148
- package/dist/lib/aliases/gcloud/gcloud.aliases.sh +327 -138
- package/dist/lib/aliases/git/README.md +149 -0
- package/dist/lib/aliases/git/git.aliases.sh +535 -131
- package/dist/lib/aliases/gnu/README.md +85 -0
- package/dist/lib/aliases/gnu/gnucoreutils-aliases.sh +143 -109
- package/dist/lib/aliases/heroku/README.md +426 -0
- package/dist/lib/aliases/heroku/heroku.aliases.sh +1047 -288
- package/dist/lib/aliases/interactive/README.md +43 -0
- package/dist/lib/aliases/interactive/interactive.aliases.sh +48 -9
- package/dist/lib/aliases/jekyll/README.md +37 -0
- package/dist/lib/aliases/jekyll/jekyll.aliases.sh +49 -10
- package/dist/lib/aliases/list/README.md +38 -0
- package/dist/lib/aliases/list/list.aliases.sh +81 -30
- package/dist/lib/aliases/macOS/README.md +38 -0
- package/dist/lib/aliases/macOS/macos.aliases.sh +65 -0
- package/dist/lib/aliases/make/README.md +28 -0
- package/dist/lib/aliases/make/make.aliases.sh +30 -10
- package/dist/lib/aliases/mkdir/README.md +26 -0
- package/dist/lib/aliases/mkdir/mkdir.aliases.sh +24 -8
- package/dist/lib/aliases/npm/README.md +37 -0
- package/dist/lib/aliases/npm/npm.aliases.sh +54 -17
- package/dist/lib/aliases/permission/README.md +43 -0
- package/dist/lib/aliases/permission/permission.aliases.sh +73 -0
- package/dist/lib/aliases/pnpm/README.md +49 -0
- package/dist/lib/aliases/pnpm/pnpm.aliases.sh +70 -36
- package/dist/lib/aliases/ps/README.md +25 -0
- package/dist/lib/aliases/ps/ps.aliases.sh +14 -6
- package/dist/lib/aliases/rsync/README.md +21 -0
- package/dist/lib/aliases/rsync/rsync.aliases.sh +10 -4
- package/dist/lib/aliases/rust/README.md +57 -0
- package/dist/lib/aliases/rust/rust.aliases.sh +116 -39
- package/dist/lib/aliases/subversion/README.md +62 -0
- package/dist/lib/aliases/subversion/subversion.aliases.sh +4 -3
- package/dist/lib/aliases/sudo/README.md +23 -0
- package/dist/lib/aliases/sudo/sudo.aliases.sh +15 -6
- package/dist/lib/aliases/tmux/README.md +27 -0
- package/dist/lib/aliases/tmux/tmux.aliases.sh +29 -10
- package/dist/lib/aliases/update/README.md +34 -0
- package/dist/lib/aliases/update/update.aliases.sh +57 -26
- package/dist/lib/aliases/uuid/README.md +20 -0
- package/dist/lib/aliases/uuid/uuid.aliases.sh +13 -4
- package/dist/lib/aliases/wget/README.md +23 -0
- package/dist/lib/aliases/wget/wget.aliases.sh +15 -6
- package/dist/lib/aliases.sh +4 -3
- package/dist/lib/configurations/README.md +13 -2
- package/dist/lib/configurations/bash/bashrc +4 -3
- package/dist/lib/configurations/curl/curlrc +2 -2
- package/dist/lib/configurations/default/color.sh +3 -2
- package/dist/lib/configurations/default/constants.sh +4 -3
- package/dist/lib/configurations/default/editor.sh +3 -2
- package/dist/lib/configurations/default/prompt.sh +3 -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 +6 -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 +2 -2
- package/dist/lib/configurations/vim/vimrc +1 -1
- package/dist/lib/configurations/wget/wgetrc +2 -2
- package/dist/lib/configurations/zsh/zshrc +2 -2
- package/dist/lib/configurations.sh +4 -3
- package/dist/lib/functions/README.md +73 -2
- package/dist/lib/functions/cdls.sh +3 -2
- package/dist/lib/functions/curlheader.sh +3 -2
- package/dist/lib/functions/curlstatus.sh +17 -0
- package/dist/lib/functions/curltime.sh +4 -3
- package/dist/lib/functions/encode64.sh +3 -2
- package/dist/lib/functions/environment.sh +3 -2
- package/dist/lib/functions/extract.sh +3 -2
- package/dist/lib/functions/filehead.sh +1 -1
- package/dist/lib/functions/freespace.sh +21 -0
- package/dist/lib/functions/genpwd.sh +33 -7
- package/dist/lib/functions/goto.sh +3 -2
- package/dist/lib/functions/hidehiddenfiles.sh +3 -2
- package/dist/lib/functions/hostinfo.sh +3 -2
- package/dist/lib/functions/hstats.sh +3 -2
- package/dist/lib/functions/httpdebug.sh +3 -2
- package/dist/lib/functions/keygen.sh +20 -13
- package/dist/lib/functions/last.sh +3 -2
- package/dist/lib/functions/logout.sh +3 -2
- package/dist/lib/functions/lowercase.sh +3 -2
- package/dist/lib/functions/matrix.sh +15 -14
- package/dist/lib/functions/mount_read_only.sh +3 -2
- package/dist/lib/functions/myproc.sh +4 -3
- package/dist/lib/functions/prependpath.sh +3 -2
- package/dist/lib/functions/ql.sh +3 -2
- package/dist/lib/functions/rd.sh +3 -2
- package/dist/lib/functions/remove_disk.sh +3 -2
- package/dist/lib/functions/ren.sh +3 -2
- package/dist/lib/functions/showhiddenfiles.sh +3 -2
- package/dist/lib/functions/size.sh +3 -2
- package/dist/lib/functions/stopwatch.sh +4 -3
- package/dist/lib/functions/uppercase.sh +3 -2
- package/dist/lib/functions/view-source.sh +3 -2
- package/dist/lib/functions/vscode.sh +3 -2
- package/dist/lib/functions/whoisport.sh +3 -2
- package/dist/lib/functions/zipf.sh +3 -2
- package/dist/lib/functions.sh +4 -3
- package/dist/lib/history.sh +4 -4
- package/dist/lib/paths/ant/ant.paths.sh +3 -2
- package/dist/lib/paths/default/default.paths.sh +3 -2
- package/dist/lib/paths/homebrew/homebrew.paths.sh +3 -2
- package/dist/lib/paths/java/java.paths.sh +3 -2
- package/dist/lib/paths/maven/maven.paths.sh +3 -2
- package/dist/lib/paths/node/node.paths.sh +3 -2
- package/dist/lib/paths/nvm/nvm.paths.sh +3 -2
- package/dist/lib/paths/pnpm/pnpm.paths.sh +3 -2
- package/dist/lib/paths/python/python.paths.sh +3 -2
- package/dist/lib/paths/ruby/ruby.paths.sh +3 -2
- package/dist/lib/paths/tmux/tmux.paths.sh +3 -2
- package/dist/lib/paths.sh +4 -3
- package/dist/scripts/backup.sh +3 -2
- package/dist/scripts/banner.sh +3 -2
- package/dist/scripts/build.sh +3 -2
- package/dist/scripts/clean.sh +3 -2
- package/dist/scripts/compile.sh +3 -2
- package/dist/scripts/copy.sh +3 -2
- package/dist/scripts/dotfiles.sh +3 -2
- package/dist/scripts/download.sh +3 -2
- package/dist/scripts/help.sh +3 -2
- package/dist/scripts/ssh.sh +3 -2
- package/dist/scripts/unpack.sh +3 -2
- package/package.json +7 -7
- package/dist/lib/aliases/du/README.md +0 -35
- package/dist/lib/aliases/du/du.aliases.sh +0 -37
- package/dist/lib/functions/changediskpwd.tmp +0 -19
- package/dist/lib/functions/code.tmp +0 -18
- package/dist/lib/functions/countdown.tmp +0 -34
- package/dist/lib/functions/headers.tmp +0 -4
- package/dist/lib/functions/history-all.tmp +0 -8
- package/dist/lib/functions/macos.sh +0 -47
- package/dist/lib/functions/mcd.tmp +0 -19
- package/dist/lib/functions/print.tmp +0 -14
- package/dist/lib/functions/rm.tmp +0 -14
- package/dist/lib/functions/rps.tmp +0 -104
- package/dist/lib/functions/trash.tmp +0 -14
- package/dist/lib/functions/tree.tmp +0 -14
- package/dist/lib/functions/uuidgen.tmp +0 -28
|
@@ -1,40 +1,42 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.466) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
3
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
4
|
-
# Description: Sets aliases for the `clear` command.
|
|
5
6
|
# License: MIT
|
|
6
7
|
# Script: clear.aliases.sh
|
|
7
|
-
# Version: 0.2.
|
|
8
|
+
# Version: 0.2.466
|
|
8
9
|
# Website: https://dotfiles.io
|
|
9
10
|
|
|
10
11
|
# π
²π
»π
΄π
°π π
°π
»π
Έπ
°ππ
΄π
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
12
|
+
|
|
13
|
+
# Alias to change to the workspace directory
|
|
14
|
+
alias cdw="cd ~/workspace"
|
|
15
|
+
|
|
16
|
+
# Alias to clear the terminal screen
|
|
17
|
+
alias c="clear"
|
|
18
|
+
|
|
19
|
+
# Alias to clear the terminal screen and list the contents of the
|
|
20
|
+
# current directory
|
|
21
|
+
alias clc="clear && ls -a"
|
|
22
|
+
|
|
23
|
+
# Alias to clear the terminal screen and print the current working
|
|
24
|
+
# directory and the contents of the current directory
|
|
25
|
+
alias cpl="clear && pwd && echo '' && ls -a && echo ''"
|
|
26
|
+
|
|
27
|
+
# Alias to clear the terminal screen and print the current working
|
|
28
|
+
# directory and the directory tree
|
|
29
|
+
alias cplt="clear && pwd && echo '' && tree ./ && echo ''"
|
|
30
|
+
|
|
31
|
+
# Alias to clear the terminal screen and print the command history
|
|
32
|
+
alias clh="clear && history"
|
|
33
|
+
|
|
34
|
+
# Alias to clear the terminal screen
|
|
35
|
+
alias cl="c"
|
|
36
|
+
|
|
37
|
+
# Alias to clear the terminal screen and print the current
|
|
38
|
+
# working directory
|
|
39
|
+
alias clp="pwd"
|
|
40
|
+
|
|
41
|
+
# Alias to clear the terminal screen and print the directory tree
|
|
42
|
+
alias clt="clear && tree"
|
|
@@ -1,46 +1,35 @@
|
|
|
1
|
-
|
|
1
|
+
<!-- markdownlint-disable MD033 MD041 -->
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
`.bashrc` or `.bash_profile` file.
|
|
3
|
+
<img src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
4
|
+
alt="dotfiles logo" width="261" align="right" />
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
<!-- markdownlint-enable MD033 MD041 -->
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
# Dotfiles (v0.2.466)
|
|
10
9
|
|
|
11
|
-
|
|
12
|
-
- `brhp`: Open the Bash profile file in the default text editor.
|
|
13
|
-
- `benv`: Open the Bash environment file in the default text editor.
|
|
14
|
-
- `bali`: Open the Bash aliases file in the default text editor.
|
|
15
|
-
- `bhist`: Open the Bash history file in the default text editor.
|
|
16
|
-
- `binput`: Open the Bash input file in the default text editor.
|
|
17
|
-
- `bhlp`: Open the Bash help file in the default text editor.
|
|
10
|
+
Simply designed to fit your shell life π
|
|
18
11
|
|
|
19
|
-
|
|
12
|
+
![Dotfiles banner][banner]
|
|
20
13
|
|
|
21
|
-
|
|
22
|
-
- `gign`: Open the Git ignore file in the default text editor.
|
|
23
|
-
- `glog`: Open the Git log file in the default text editor.
|
|
24
|
-
- `gmsg`: Open the Git commit message file in the default text editor.
|
|
14
|
+
## π
²π
Ύπ
½π
΅π
Έπ
Άπππ
°ππ
Έπ
Ύπ
½ π
°π
»π
Έπ
°ππ
΄π
|
|
25
15
|
|
|
26
|
-
|
|
16
|
+
This code provides a set of command aliases to open important
|
|
17
|
+
configuration files in default text editors quickly and easily. The
|
|
18
|
+
following aliases are included:
|
|
27
19
|
|
|
28
|
-
- `
|
|
29
|
-
|
|
30
|
-
- `
|
|
20
|
+
- `apconf` opens the Apache configuration file in the default text
|
|
21
|
+
editor.
|
|
22
|
+
- `bshrc` opens the Bash configuration file in the default text editor.
|
|
23
|
+
- `bshp` opens the Bash profile in the default text editor.
|
|
24
|
+
- `dockcomp` opens the Docker Compose file in the default text editor.
|
|
25
|
+
- `eddir` opens the current directory in the default text editor.
|
|
26
|
+
- `gcfg` opens the Git configuration file in the default text editor.
|
|
27
|
+
- `gign` opens the Git ignore file in the default text editor.
|
|
28
|
+
- `hosts` opens the hosts file in the default text editor.
|
|
29
|
+
- `ngconf` opens the Nginx configuration file in the default text
|
|
30
|
+
editor.
|
|
31
|
+
- `sshconf` opens the SSH configuration file in the default text editor.
|
|
32
|
+
- `zshrc` opens the Zsh configuration file in the default text editor.
|
|
33
|
+
- `zshp` opens the Zsh profile in the default text editor.
|
|
31
34
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
- `zrc`: Open the Zsh configuration file in the default text editor.
|
|
35
|
-
- `zenv`: Open the Zsh environment file in the default text editor.
|
|
36
|
-
- `zali`: Open the Zsh aliases file in the default text editor.
|
|
37
|
-
- `zfunc`: Open the Zsh functions file in the default text editor.
|
|
38
|
-
- `zhlp`: Open the Zsh help file in the default text editor.
|
|
39
|
-
|
|
40
|
-
### Vim aliases
|
|
41
|
-
|
|
42
|
-
- `vimrc`: Open the Vim configuration file in the default text editor.
|
|
43
|
-
- `vimft`: Open the Vim filetype file in the default text editor.
|
|
44
|
-
- `vimftd`: Open the Vim ftdetect directory in the default file manager.
|
|
45
|
-
- `vimftpl`: Open the Vim ftplugin directory in the default file manager.
|
|
46
|
-
- `vimplt`: Open the Vim plugin directory in the default file manager.
|
|
35
|
+
[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
|
|
@@ -1,43 +1,47 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.466) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
3
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
4
|
-
# Description: Sets configuration aliases.
|
|
5
6
|
# License: MIT
|
|
6
7
|
# Script: configuration.aliases.sh
|
|
7
|
-
# Version: 0.2.
|
|
8
|
+
# Version: 0.2.466
|
|
8
9
|
# Website: https://dotfiles.io
|
|
9
10
|
|
|
10
11
|
# π
²π
Ύπ
½π
΅π
Έπ
Άπππ
°ππ
Έπ
Ύπ
½ π
°π
»π
Έπ
°ππ
΄π
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
alias
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
alias
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
alias
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
alias
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
alias
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
alias
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
alias
|
|
12
|
+
|
|
13
|
+
# Alias to open the Apache configuration file in the default text editor
|
|
14
|
+
alias apconf='${=EDITOR} /etc/apache2/apache2.conf'
|
|
15
|
+
|
|
16
|
+
# Alias to open the Bash configuration file in the default text editor
|
|
17
|
+
alias bshrc='${=EDITOR} $HOME/.bashrc'
|
|
18
|
+
|
|
19
|
+
# Alias to open the Bash profile in the default text editor
|
|
20
|
+
alias bshp='${=EDITOR} $HOME/.bash_profile'
|
|
21
|
+
|
|
22
|
+
# Alias to open the Docker Compose file in the default text editor
|
|
23
|
+
alias dockcomp='${=EDITOR} docker-compose.yml'
|
|
24
|
+
|
|
25
|
+
# Alias to open the current directory in the default text editor
|
|
26
|
+
alias eddir='${=EDITOR} .'
|
|
27
|
+
|
|
28
|
+
# Alias to open the Git configuration file in the default text editor
|
|
29
|
+
alias gcfg='${=EDITOR} $HOME/.gitconfig'
|
|
30
|
+
|
|
31
|
+
# Alias to open the Git ignore file in the default text editor
|
|
32
|
+
alias gign='${=EDITOR} $HOME/.gitignore'
|
|
33
|
+
|
|
34
|
+
# Alias to open the hosts file in the default text editor
|
|
35
|
+
alias hosts='${=EDITOR} /etc/hosts'
|
|
36
|
+
|
|
37
|
+
# Alias to open the Nginx configuration file in the default text editor
|
|
38
|
+
alias ngconf='${=EDITOR} /etc/nginx/nginx.conf'
|
|
39
|
+
|
|
40
|
+
# Alias to open the SSH configuration file in the default text editor
|
|
41
|
+
alias sshconf='${=EDITOR} $HOME/.ssh/config'
|
|
42
|
+
|
|
43
|
+
# Alias to open the Zsh configuration file in the default text editor
|
|
44
|
+
alias zshrc='${=EDITOR} $HOME/.zshrc'
|
|
45
|
+
|
|
46
|
+
# Alias to open the Zsh profile in the default text editor
|
|
47
|
+
alias zshp='${=EDITOR} $HOME/.zsh_profile'
|
|
@@ -1,62 +1,36 @@
|
|
|
1
|
-
|
|
1
|
+
<!-- markdownlint-disable MD033 MD041 -->
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
`.bash_profile` file.
|
|
3
|
+
<img src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
4
|
+
alt="dotfiles logo" width="261" align="right" />
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
<!-- markdownlint-enable MD033 MD041 -->
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
# Dotfiles (v0.2.466)
|
|
10
9
|
|
|
11
|
-
|
|
12
|
-
- `p`: Print working directory.
|
|
10
|
+
Simply designed to fit your shell life π
|
|
13
11
|
|
|
14
|
-
|
|
12
|
+
![Dotfiles banner][banner]
|
|
15
13
|
|
|
16
|
-
|
|
17
|
-
- `q`: Exit the shell.
|
|
18
|
-
- `quit`: Exit the shell.
|
|
14
|
+
## π
³π
΄π
΅π
°ππ
»π π
°π
»π
Έπ
°ππ
΄π
|
|
19
15
|
|
|
20
|
-
|
|
16
|
+
This code provides a set of command aliases to make common tasks and
|
|
17
|
+
commands more convenient and faster to execute. These aliases range from
|
|
18
|
+
general purpose to system monitoring and file system navigation.
|
|
21
19
|
|
|
22
|
-
|
|
23
|
-
- `ipinfo`: Get network interface parameters for en0.
|
|
24
|
-
- `path`: Display the $PATH variable on newlines.
|
|
25
|
-
- `please`: Run command as superuser.
|
|
26
|
-
- `spd`: Remove all log files in /private/var/log/asl/.
|
|
27
|
-
- `srv`: Start a simple HTTP server.
|
|
28
|
-
- `t`: Print last 10 lines of a file in real time.
|
|
29
|
-
- `x`: Exit the shell.
|
|
20
|
+
Some of the most useful aliases include:
|
|
30
21
|
|
|
31
|
-
|
|
22
|
+
- `c`: shortcut for the `clear` command to clear the terminal screen.
|
|
23
|
+
- `p`: shortcut for the `pwd` command to display the current working
|
|
24
|
+
directory.
|
|
25
|
+
- `h`: lists all recently used commands.
|
|
26
|
+
- `path`: displays the `$PATH` variable on new lines.
|
|
27
|
+
- `quit`: shortcut for the `exit` command to exit the shell.
|
|
28
|
+
- `halt`, `poweroff`, `reboot`: system shutdown and reboot commands.
|
|
29
|
+
- `srv`: starts a simple HTTP server.
|
|
30
|
+
- `top`: allows the user to interactively monitor the system's vital
|
|
31
|
+
resources or server's processes in real-time.
|
|
32
|
+
- `qfind`: quickly search for files.
|
|
33
|
+
- `clc`: clear the terminal screen and print the contents of the current
|
|
34
|
+
directory.
|
|
32
35
|
|
|
33
|
-
|
|
34
|
-
- `aptitude`: Run command as superuser.
|
|
35
|
-
- `pacman`: Run command as superuser.
|
|
36
|
-
- `yum`: Run command as superuser.
|
|
37
|
-
|
|
38
|
-
### System aliases
|
|
39
|
-
|
|
40
|
-
- `da`: Display the current date and time.
|
|
41
|
-
- `moon`: Get the moon phase.
|
|
42
|
-
- `nls`: Show only active network listeners.
|
|
43
|
-
- `now`: Show the current time.
|
|
44
|
-
- `op`: List of open ports.
|
|
45
|
-
- `ping`: Limit Ping to 5 ECHO_REQUEST packets.
|
|
46
|
-
- `ports`: List all listening ports.
|
|
47
|
-
- `top`: Display the top processes.
|
|
48
|
-
- `tree`: Display the directory tree.
|
|
49
|
-
- `wth`: Get the weather.
|
|
50
|
-
- `wk`: Display the current week number.
|
|
51
|
-
|
|
52
|
-
### System control aliases
|
|
53
|
-
|
|
54
|
-
- `halt`: Halt the system.
|
|
55
|
-
- `poweroff`: Power off the system.
|
|
56
|
-
- `reboot`: Reboot the system.
|
|
57
|
-
- `shutdown`: Shut down the system.
|
|
58
|
-
|
|
59
|
-
### Terminal control aliases
|
|
60
|
-
|
|
61
|
-
- `reload`: Reload the shell.
|
|
62
|
-
- `r`: Reload the shell.
|
|
36
|
+
[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
|
|
@@ -1,65 +1,126 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.466) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
3
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
4
|
-
# Description: Sets Default Aliases
|
|
5
6
|
# License: MIT
|
|
6
7
|
# Script: default.aliases.sh
|
|
7
|
-
# Version: 0.2.
|
|
8
|
+
# Version: 0.2.466
|
|
8
9
|
# Website: https://dotfiles.io
|
|
9
10
|
|
|
10
11
|
# π
³π
΄π
΅π
°ππ
»π π
°π
»π
Έπ
°ππ
΄π
|
|
11
12
|
|
|
12
|
-
##
|
|
13
|
+
## General aliases
|
|
14
|
+
|
|
15
|
+
# Shortcut for the `clear` command.
|
|
16
|
+
alias c="clear"
|
|
17
|
+
|
|
18
|
+
# Display the current date and time.
|
|
19
|
+
alias da='date "+%Y-%m-%d %A %T %Z"'
|
|
20
|
+
|
|
21
|
+
# Lists all recently used commands.
|
|
22
|
+
alias h='history'
|
|
23
|
+
|
|
24
|
+
# Shortcut for `pwd` which returns working directory name.
|
|
25
|
+
alias p='pwd'
|
|
26
|
+
|
|
27
|
+
# Display the $PATH variable on newlines.
|
|
28
|
+
alias path='echo ${PATH//:/\\n}'
|
|
29
|
+
|
|
30
|
+
# Reload the shell.
|
|
31
|
+
alias r='reload'
|
|
32
|
+
|
|
33
|
+
# Prints the last 10 lines of a text or log file, and then waits for new
|
|
34
|
+
# additions to the file to print it in real time.
|
|
35
|
+
alias t='tail -f'
|
|
36
|
+
|
|
37
|
+
# wk: Show the current week number.
|
|
38
|
+
alias wk='date +%V'
|
|
39
|
+
|
|
40
|
+
## Exit/shutdown aliases
|
|
41
|
+
|
|
42
|
+
# Shortcut for the `exit` command.
|
|
43
|
+
alias ':q'='quit'
|
|
44
|
+
|
|
45
|
+
# Shortcut for the `exit` command.
|
|
46
|
+
alias bye='quit'
|
|
47
|
+
|
|
48
|
+
# Shortcut for the `exit` command.
|
|
49
|
+
alias q='quit'
|
|
50
|
+
|
|
51
|
+
# Shortcut for the `exit` command.
|
|
52
|
+
alias x='quit'
|
|
53
|
+
|
|
54
|
+
# Shortcut for the `exit` command.
|
|
55
|
+
alias quit='exit'
|
|
56
|
+
|
|
57
|
+
# Shutdown the system.
|
|
58
|
+
alias halt='sudo /sbin/halt'
|
|
59
|
+
|
|
60
|
+
# Poweroff the system.
|
|
61
|
+
alias poweroff='sudo /sbin/shutdown'
|
|
62
|
+
|
|
63
|
+
# Reboot the system.
|
|
64
|
+
alias reboot='sudo /sbin/reboot'
|
|
65
|
+
|
|
66
|
+
## Network aliases
|
|
67
|
+
|
|
68
|
+
# Append sudo to ifconfig (configure network interface parameters)
|
|
69
|
+
# command.
|
|
70
|
+
alias ifconfig='sudo ifconfig'
|
|
71
|
+
|
|
72
|
+
# Get network interface parameters for en0.
|
|
73
|
+
alias ipinfo='ipconfig getpacket en0'
|
|
74
|
+
|
|
75
|
+
# Show only active network listeners.
|
|
76
|
+
alias nls='sudo lsof -i -P | grep LISTEN'
|
|
77
|
+
|
|
78
|
+
# List of open ports.
|
|
79
|
+
alias op='sudo lsof -i -P'
|
|
80
|
+
|
|
81
|
+
# Limit Ping to 5 ECHO_REQUEST packets.
|
|
82
|
+
alias ping='ping -c 5'
|
|
83
|
+
|
|
84
|
+
# List all listening ports.
|
|
85
|
+
alias ports='netstat -tulan'
|
|
86
|
+
|
|
87
|
+
# Start a simple HTTP server.
|
|
88
|
+
alias srv='python3 -m http.server'
|
|
13
89
|
|
|
14
|
-
|
|
15
|
-
alias p='pwd' # p: Print working directory.
|
|
90
|
+
## System monitoring aliases
|
|
16
91
|
|
|
17
|
-
|
|
92
|
+
# Get the moon phase.
|
|
93
|
+
alias moon='curl -s "wttr.in/?format=%m"'
|
|
18
94
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
alias
|
|
95
|
+
# Allows the user to interactively monitor the system's vital resources
|
|
96
|
+
# or server's processes in real time.
|
|
97
|
+
alias top='sudo btop'
|
|
22
98
|
|
|
23
|
-
|
|
99
|
+
# Remove all log files in /private/var/log/asl/.
|
|
100
|
+
alias spd='sudo rm -rf /private/var/log/asl/*'
|
|
24
101
|
|
|
25
|
-
|
|
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.
|
|
102
|
+
## Utility aliases
|
|
33
103
|
|
|
34
|
-
|
|
104
|
+
# Count the number of files in the current directory.
|
|
105
|
+
alias ctf='echo $(ls -1 | wc -l)'
|
|
35
106
|
|
|
36
|
-
|
|
37
|
-
alias
|
|
38
|
-
alias pacman='sudo pacman' # pacman: Run command as superuser.
|
|
39
|
-
alias yum='sudo yum' # yum: Run command as superuser.
|
|
107
|
+
# Use compression when transferring data.
|
|
108
|
+
alias curl='curl --compressed'
|
|
40
109
|
|
|
41
|
-
|
|
110
|
+
# Quickly search for file.
|
|
111
|
+
alias qfind='find . -name '
|
|
42
112
|
|
|
43
|
-
|
|
44
|
-
alias
|
|
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.
|
|
113
|
+
# Reload the shell.
|
|
114
|
+
alias reload='exec $SHELL -l'
|
|
54
115
|
|
|
55
|
-
|
|
116
|
+
# Get the weather.
|
|
117
|
+
alias wth='curl -s "wttr.in/?format=3"'
|
|
56
118
|
|
|
57
|
-
|
|
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.
|
|
119
|
+
# File system navigation aliases
|
|
61
120
|
|
|
62
|
-
|
|
121
|
+
# Clear the terminal screen and print the contents of the current
|
|
122
|
+
# directory.
|
|
123
|
+
alias clc='clear && ls -a'
|
|
63
124
|
|
|
64
|
-
|
|
65
|
-
alias
|
|
125
|
+
# Clear the terminal screen and print
|
|
126
|
+
alias clp='pwd'
|
|
@@ -1,50 +1,33 @@
|
|
|
1
|
-
|
|
1
|
+
<!-- markdownlint-disable MD033 MD041 -->
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
`.bashrc` or `.bash_profile` file.
|
|
3
|
+
<img src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
4
|
+
alt="dotfiles logo" width="261" align="right" />
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
<!-- markdownlint-enable MD033 MD041 -->
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
# Dotfiles (v0.2.466)
|
|
10
9
|
|
|
11
|
-
|
|
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.
|
|
10
|
+
Simply designed to fit your shell life π
|
|
16
11
|
|
|
17
|
-
|
|
12
|
+
![Dotfiles banner][banner]
|
|
18
13
|
|
|
19
|
-
|
|
14
|
+
## π
³π
Έπ
Ά π
°π
»π
Έπ
°ππ
΄π
|
|
20
15
|
|
|
21
|
-
|
|
16
|
+
This code provides a set of command aliases to simplify working with DNS
|
|
17
|
+
(Domain Name System) lookup using the dig command on a Unix-based system
|
|
18
|
+
.
|
|
22
19
|
|
|
23
|
-
|
|
24
|
-
- `ip6`: Get your public IPv6 address.
|
|
25
|
-
- `ips`: Get your public IPv4 and IPv6 addresses.
|
|
26
|
-
- `wip`: Get your public IP address.
|
|
20
|
+
The following aliases are included:
|
|
27
21
|
|
|
28
|
-
|
|
22
|
+
- `d`: runs the dig command with default options.
|
|
23
|
+
- `d4`: performs a DNS lookup for an IPv4 address.
|
|
24
|
+
- `d6`: performs a DNS lookup for an IPv6 address.
|
|
25
|
+
- `dga`: performs a DNS lookup for all records.
|
|
26
|
+
- `dgs`: performs a DNS lookup for a short answer.
|
|
27
|
+
- `digg`: performs a dig with Google's DNS.
|
|
28
|
+
- `ip4`: retrieves your public IPv4 address.
|
|
29
|
+
- `ip6`: retrieves your public IPv6 address.
|
|
30
|
+
- `ips`: retrieves your public IPv4 and IPv6 addresses.
|
|
31
|
+
- `wip`: retrieves your public IP address.
|
|
29
32
|
|
|
30
|
-
|
|
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.
|
|
33
|
+
[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
|