@sebastienrousseau/dotfiles 0.2.464 β 0.2.465
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 +118 -281
- 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 +47 -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 +69 -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
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<!-- markdownlint-disable MD033 MD041 -->
|
|
2
|
+
|
|
3
|
+
<img src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
4
|
+
alt="dotfiles logo" width="261" align="right" />
|
|
5
|
+
|
|
6
|
+
<!-- markdownlint-enable MD033 MD041 -->
|
|
7
|
+
|
|
8
|
+
# Dotfiles (v0.2.465)
|
|
9
|
+
|
|
10
|
+
Simply designed to fit your shell life π
|
|
11
|
+
|
|
12
|
+
![Dotfiles banner][banner]
|
|
13
|
+
|
|
14
|
+
- [Archives](archives/README.md) - Compress and extract files and directories in various formats on a Unix-based system.
|
|
15
|
+
- [Cd](cd/README.md) - Navigate the file system.
|
|
16
|
+
- [Chmod](chmod/README.md) - Change the permissions of files and directories.
|
|
17
|
+
- [Clear](clear/README.md) - Clear the terminal screen.
|
|
18
|
+
- [Configuration](configuration/README.md) - Configure the dotfiles.
|
|
19
|
+
- [Default](default/README.md) - Manage the default shell.
|
|
20
|
+
- [Dig](dig/README.md) - Query DNS name servers.
|
|
21
|
+
- [Disk Usage](disk-usage/README.md) - Display the disk usage of files and directories.
|
|
22
|
+
- [Editor](editor/README.md) - Manage the default text editor.
|
|
23
|
+
- [Find](find/README.md) - Search for files and directories.
|
|
24
|
+
- [gCloud](gcloud/README.md) - Manage the Google Cloud SDK.
|
|
25
|
+
- [Git](git/README.md) - Manage the Git version control system.
|
|
26
|
+
- [GNU](gnu/README.md) - Manage the GNU core utilities.
|
|
27
|
+
- [Heroku](heroku/README.md) - Manage the Heroku CLI.
|
|
28
|
+
- [Interactive](interactive/README.md) - Manage the interactive shell.
|
|
29
|
+
- [Jekyll](jekyll/README.md) - Manage the Jekyll static site generator.
|
|
30
|
+
- [List](list/README.md) - List files and directories.
|
|
31
|
+
- [macOS](macos/README.md) - Manage the macOS operating system.
|
|
32
|
+
- [make](make/README.md) - Manage the GNU make utility.
|
|
33
|
+
- [mkdir](mkdir/README.md) - Create directories.
|
|
34
|
+
- [npm](npm/README.md) - Manage the Node.js package manager.
|
|
35
|
+
- [permission](permission/README.md) - Manage the file permissions.
|
|
36
|
+
- [pnpm](pnpm/README.md) - Manage the pnpm package manager.
|
|
37
|
+
- [ps](ps/README.md) - Manage the process status.
|
|
38
|
+
- [rsync](rsync/README.md) - Manage the rsync file transfer utility.
|
|
39
|
+
- [rust](rust/README.md) - Manage the Rust programming language.
|
|
40
|
+
- [subversion](subversion/README.md) - Manage the Subversion version control system.
|
|
41
|
+
- [sudo](sudo/README.md) - Manage the superuser.
|
|
42
|
+
- [tmux](tmux/README.md) - Manage the tmux terminal multiplexer.
|
|
43
|
+
- [update](update/README.md) - Help users update the dotfiles.
|
|
44
|
+
- [uuid](uuid/README.md) - Help users generate UUIDs.
|
|
45
|
+
- [wget](wget/README.md) - Manage the wget utility.
|
|
46
|
+
|
|
47
|
+
[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
|
|
@@ -1,84 +1,56 @@
|
|
|
1
|
-
|
|
1
|
+
<!-- markdownlint-disable MD033 MD041 -->
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
to compress and extract files from the command line.
|
|
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.465)
|
|
10
9
|
|
|
11
|
-
|
|
12
|
-
- `e7z`: Extract a whole directory (including subdirectories) from a 7z file.
|
|
13
|
-
- `l7z`: List contents of a 7z archive.
|
|
14
|
-
- `t7z`: Test integrity of a 7z archive.
|
|
15
|
-
- `x7z`: Extract files with full paths from a 7z archive.
|
|
10
|
+
Simply designed to fit your shell life π
|
|
16
11
|
|
|
17
|
-
|
|
12
|
+
![Dotfiles banner][banner]
|
|
18
13
|
|
|
19
|
-
|
|
20
|
-
- `ebz2`: Extract a file from a bz2 file.
|
|
14
|
+
## π
°ππ
²π
·π
Έπ
π
΄π π
°π
»π
Έπ
°ππ
΄π
|
|
21
15
|
|
|
22
|
-
|
|
16
|
+
This code provides a set of command aliases to help users compress and
|
|
17
|
+
extract files and directories in various formats on a Unix-based system.
|
|
23
18
|
|
|
24
|
-
|
|
25
|
-
- `egz`: Extract a file from a gz file.
|
|
19
|
+
The following compression formats are supported:
|
|
26
20
|
|
|
27
|
-
|
|
21
|
+
- 7z
|
|
22
|
+
- bzip2
|
|
23
|
+
- gzip
|
|
24
|
+
- jar
|
|
25
|
+
- lz4
|
|
26
|
+
- lzma
|
|
27
|
+
- lzo
|
|
28
|
+
- pigz
|
|
29
|
+
- tar
|
|
30
|
+
- xz
|
|
31
|
+
- zstd
|
|
32
|
+
- zip
|
|
28
33
|
|
|
29
|
-
|
|
30
|
-
|
|
34
|
+
These aliases enable users to compress or extract files and directories
|
|
35
|
+
quickly by using simple commands.
|
|
31
36
|
|
|
32
|
-
|
|
37
|
+
For example:
|
|
33
38
|
|
|
34
|
-
- `
|
|
35
|
-
|
|
39
|
+
- `c7z` can be used to compress a whole directory (including
|
|
40
|
+
subdirectories) to a 7z file.
|
|
41
|
+
- `e7z` can be used to extract a whole directory (including
|
|
42
|
+
subdirectories) from a 7z file.
|
|
36
43
|
|
|
37
|
-
|
|
44
|
+
Similarly, there are aliases for compressing and extracting files and
|
|
45
|
+
directories in all supported formats.
|
|
38
46
|
|
|
39
|
-
|
|
40
|
-
|
|
47
|
+
The aliases are designed to be easy to remember and use, and they should
|
|
48
|
+
make the compression and extraction process much simpler for users.
|
|
41
49
|
|
|
42
|
-
|
|
50
|
+
Please note that some of the compression formats may require additional
|
|
51
|
+
software to be installed on your system.
|
|
43
52
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
- `t7z`: Compress a whole directory (including subdirectories) to a 7z file.
|
|
47
|
-
- `tbz`: Compress a whole directory (including subdirectories) to a bzip2 file.
|
|
48
|
-
- `tgz`: Compress a whole directory (including subdirectories) to a tar.gz file.
|
|
49
|
-
- `txz`: Compress a whole directory (including subdirectories) to a xz file.
|
|
50
|
-
- `txzstd`: Compress a whole directory (including subdirectories) to a zstd file.
|
|
51
|
-
- `tz`: Compress a whole directory (including subdirectories) to a gzip file.
|
|
52
|
-
- `unzip`: Extract a whole directory (including subdirectories) from a zip file.
|
|
53
|
-
- `x7z`: Extract a whole directory (including subdirectories) from a 7z file.
|
|
54
|
-
- `xbz`: Extract a whole directory (including subdirectories) from a bzip2 file.
|
|
55
|
-
- `xgz`: Extract a whole directory (including subdirectories) from a tar.gz file.
|
|
56
|
-
- `xxz`: Extract a whole directory (including subdirectories) from a xz file.
|
|
57
|
-
- `xxzstd`: Extract a whole directory (including subdirectories) from a zstd file.
|
|
58
|
-
- `xz`: Extract a whole directory (including subdirectories) from a gzip file.
|
|
59
|
-
- `zip`: Compress a whole directory (including subdirectories) to a zip file.
|
|
53
|
+
Enjoy the convenience of quickly compressing and extracting files and
|
|
54
|
+
directories with these command aliases!
|
|
60
55
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
- `cxz`: Compress a file to a xz file.
|
|
64
|
-
- `exz`: Extract a file from a xz file.
|
|
65
|
-
- `tlz`: Compress a whole directory (including subdirectories) to a lz file.
|
|
66
|
-
- `xlz`: Extract a whole directory (including subdirectories) from a lz file.
|
|
67
|
-
|
|
68
|
-
### zip
|
|
69
|
-
|
|
70
|
-
- `cz`: Compress a whole directory (including subdirectories) to a zip file.
|
|
71
|
-
- `ez`: Extract a whole directory (including subdirectories) from a zip file.
|
|
72
|
-
- `tbz`: Compress a whole directory (including subdirectories) to a bzip2 file.
|
|
73
|
-
- `txz`: Compress a whole directory (including subdirectories) to a xz file.
|
|
74
|
-
- `tz`: Compress a whole directory (including subdirectories) to a gzip file.
|
|
75
|
-
- `xbz`: Extract a whole directory (including subdirectories) from a bzip2 file.
|
|
76
|
-
- `xxz`: Extract a whole directory (including subdirectories) from a xz file.
|
|
77
|
-
- `xz`: Extract a whole directory (including subdirectories) from a gzip file.
|
|
78
|
-
|
|
79
|
-
### zstd
|
|
80
|
-
|
|
81
|
-
- `czstd`: Compress a whole directory (including subdirectories) to a zstd file.
|
|
82
|
-
- `ezstd`: Extract a whole directory (including subdirectories) from a zstd file.
|
|
83
|
-
- `tzstd`: Compress a whole directory (including subdirectories) to a tar.zst file.
|
|
84
|
-
- `xzstd`: Extract a whole directory (including subdirectories) from a tar.zst file.
|
|
56
|
+
[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
|
|
@@ -1,86 +1,154 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <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 archives.
|
|
5
6
|
# License: MIT
|
|
6
7
|
# Script: archives.aliases.sh
|
|
7
|
-
# Version: 0.2.
|
|
8
|
+
# Version: 0.2.465
|
|
8
9
|
# Website: https://dotfiles.io
|
|
9
10
|
|
|
10
11
|
# π
°ππ
²π
·π
Έπ
π
΄π π
°π
»π
Έπ
°ππ
΄π
|
|
11
|
-
if command -v
|
|
12
|
-
|
|
13
|
-
alias
|
|
14
|
-
|
|
15
|
-
alias
|
|
16
|
-
|
|
12
|
+
if command -v 7z &>/dev/null; then
|
|
13
|
+
# Compress a whole directory (including subdirectories) to a 7z file.
|
|
14
|
+
alias c7z='7z a'
|
|
15
|
+
# Extract a whole directory (including subdirectories) from a 7z file.
|
|
16
|
+
alias e7z='7z x'
|
|
17
|
+
fi
|
|
18
|
+
|
|
19
|
+
if command -v tar &>/dev/null; then
|
|
20
|
+
# Compress a file to a bzip2 file.
|
|
21
|
+
alias cbzip2='tar -cvjf'
|
|
22
|
+
# Compress a whole directory (including subdirectories) to a tar file.
|
|
23
|
+
alias ctar='tar -cvf'
|
|
24
|
+
# Extract a whole directory (including subdirectories) from a tar
|
|
25
|
+
# file.
|
|
26
|
+
alias etar='tar -xvf'
|
|
27
|
+
# Compress a file to a gzip file.
|
|
28
|
+
alias cgzip='tar -zcvf'
|
|
29
|
+
# Compress a whole directory (including subdirectories) to an xz file.
|
|
30
|
+
alias cxz='tar -cvJf'
|
|
31
|
+
# Extract a file from a bzip2 file.
|
|
32
|
+
alias ebzip2='tar -xvjf'
|
|
33
|
+
# Extract a file from a gzip file.
|
|
34
|
+
alias egzip='tar -xvzf'
|
|
35
|
+
# Extract a whole directory (including subdirectories) from an xz
|
|
36
|
+
# file.
|
|
37
|
+
alias exz='tar -xvJf'
|
|
38
|
+
fi
|
|
39
|
+
|
|
40
|
+
if command -v jar &>/dev/null; then
|
|
41
|
+
# Compress a whole directory (including subdirectories) to a jar file.
|
|
42
|
+
alias cjar='jar -cvf'
|
|
43
|
+
# Extract a whole directory (including subdirectories) from a jar
|
|
44
|
+
# file.
|
|
45
|
+
alias ejar='jar -xvf'
|
|
46
|
+
fi
|
|
47
|
+
|
|
48
|
+
if command -v xz &>/dev/null; then
|
|
49
|
+
# Compress a whole directory (including subdirectories) to an xz file.
|
|
50
|
+
alias cxz2='xz -zcvf'
|
|
51
|
+
# Extract a whole directory (including subdirectories) from an xz
|
|
52
|
+
# file.
|
|
53
|
+
alias exz2='xz -zxvf'
|
|
54
|
+
fi
|
|
55
|
+
|
|
56
|
+
if command -v zip &>/dev/null; then
|
|
57
|
+
# Compress a whole directory (including subdirectories) to a zip file.
|
|
58
|
+
alias czip='zip -r'
|
|
59
|
+
# Extract a whole directory (including subdirectories) from a zip
|
|
60
|
+
# file.
|
|
61
|
+
alias ezip='unzip'
|
|
62
|
+
fi
|
|
63
|
+
|
|
64
|
+
if command -v zstd &>/dev/null; then
|
|
65
|
+
# Compress a whole directory (including subdirectories) to a zstd file.
|
|
66
|
+
alias czstd='zstd -zcvf'
|
|
67
|
+
# Extract a whole directory (including subdirectories) from a zstd
|
|
68
|
+
# file.
|
|
69
|
+
alias ezstd='zstd -zxvf'
|
|
70
|
+
fi
|
|
71
|
+
|
|
72
|
+
# Compress a file to a lzma file.
|
|
73
|
+
if command -v xz &>/dev/null; then
|
|
74
|
+
alias clzma='xz -zcvf'
|
|
75
|
+
alias elzma='xz -zxvf'
|
|
76
|
+
fi
|
|
77
|
+
|
|
78
|
+
# Compress a file to a z file.
|
|
79
|
+
if command -v gzip &>/dev/null; then
|
|
80
|
+
alias czlib='gzip -cv'
|
|
81
|
+
alias ezlib='gzip -dv'
|
|
82
|
+
fi
|
|
83
|
+
|
|
84
|
+
# Compress a file to a bz2 file.
|
|
85
|
+
if command -v bzip2 &>/dev/null; then
|
|
86
|
+
alias cbz2='bzip2 -zkvf'
|
|
87
|
+
alias ebz2='bzip2 -dkvf'
|
|
88
|
+
fi
|
|
89
|
+
|
|
90
|
+
# Compress a file to a lzo file.
|
|
91
|
+
if command -v lzop &>/dev/null; then
|
|
92
|
+
alias clzo='lzop -cv'
|
|
93
|
+
alias elzo='lzop -dv'
|
|
17
94
|
fi
|
|
18
95
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
alias
|
|
96
|
+
# Compress a file to a lz4 file.
|
|
97
|
+
if command -v lz4 &>/dev/null; then
|
|
98
|
+
alias clz4='lz4 -zcv'
|
|
99
|
+
alias elz4='lz4 -dcv'
|
|
22
100
|
fi
|
|
23
101
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
alias
|
|
102
|
+
# Compress a file to a zst file.
|
|
103
|
+
if command -v zstd &>/dev/null; then
|
|
104
|
+
alias czst='zstd -zcv'
|
|
105
|
+
alias ezst='zstd -dcv'
|
|
27
106
|
fi
|
|
28
107
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
alias
|
|
108
|
+
# Compress a file to a pigz file.
|
|
109
|
+
if command -v pigz &>/dev/null; then
|
|
110
|
+
alias cpgz='pigz -zkvf'
|
|
111
|
+
alias epgz='pigz -dkvf'
|
|
32
112
|
fi
|
|
33
113
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
114
|
+
# Compress a whole directory (including subdirectories) to a tar.bz2
|
|
115
|
+
# file.
|
|
116
|
+
if command -v tar &>/dev/null && command -v bzip2 &>/dev/null; then
|
|
117
|
+
alias ctbz2='tar -cvjf'
|
|
118
|
+
alias etbz2='tar -xvjf'
|
|
37
119
|
fi
|
|
38
120
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
121
|
+
# Compress a whole directory (including subdirectories) to a tar.lzma
|
|
122
|
+
# file.
|
|
123
|
+
if command -v tar &>/dev/null && command -v xz &>/dev/null; then
|
|
124
|
+
alias ctlzma='tar --lzma -cvf'
|
|
125
|
+
alias etlzma='tar --lzma -xvf'
|
|
42
126
|
fi
|
|
43
127
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
alias
|
|
48
|
-
alias
|
|
49
|
-
alias tgz='tar -cvzf' # tgz: Compress a whole directory (including subdirectories) to a tar.gz file.
|
|
50
|
-
alias txz='tar -cJf' # txz: Compress a whole directory (including subdirectories) to a xz file.
|
|
51
|
-
alias txzstd='tar -c --zstd -f' # txzstd: Compress a whole directory (including subdirectories) to a zstd file.
|
|
52
|
-
alias tz='tar -cvzf' # tz: Compress a whole directory (including subdirectories) to a gzip file.
|
|
53
|
-
alias unzip='tar -xvzf' # unzip: Extract a whole directory (including subdirectories) from a zip file.
|
|
54
|
-
alias x7z='tar -xvf' # x7z: Extract a whole directory (including subdirectories) from a 7z file.
|
|
55
|
-
alias xbz='tar -xvjf' # xbz: Extract a whole directory (including subdirectories) from a bzip2 file.
|
|
56
|
-
alias xgz='tar -xvzf' # xgz: Extract a whole directory (including subdirectories) from a tar.gz file.
|
|
57
|
-
alias xxz='tar -xvJf' # xxz: Extract a whole directory (including subdirectories) from a xz file.
|
|
58
|
-
alias xxzstd='tar -x --zstd -f' # xxzstd: Extract a whole directory (including subdirectories) from a zstd file.
|
|
59
|
-
alias xz='tar -xvzf' # xz: Extract a whole directory (including subdirectories) from a gzip file.
|
|
60
|
-
alias zip='tar -cvzf' # zip: Compress a whole directory (including subdirectories) to a zip file.
|
|
128
|
+
# Compress a whole directory (including subdirectories) to a tar.gz
|
|
129
|
+
# file.
|
|
130
|
+
if command -v tar &>/dev/null && command -v gzip &>/dev/null; then
|
|
131
|
+
alias ctgz='tar -zcvf'
|
|
132
|
+
alias etgz='tar -zxvf'
|
|
61
133
|
fi
|
|
62
134
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
alias
|
|
67
|
-
alias
|
|
135
|
+
# Compress a whole directory (including subdirectories) to a tar.lzo
|
|
136
|
+
# file.
|
|
137
|
+
if command -v tar &>/dev/null && command -v lzop &>/dev/null; then
|
|
138
|
+
alias ctlzo='tar --lzip -cvf'
|
|
139
|
+
alias etlzo='tar --lzip -xvf'
|
|
68
140
|
fi
|
|
69
141
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
alias
|
|
74
|
-
alias
|
|
75
|
-
alias tz='tar -cvzf' # tz: Compress a whole directory (including subdirectories) to a gzip file.
|
|
76
|
-
alias xbz='tar -xvjf' # xbz: Extract a whole directory (including subdirectories) from a bzip2 file.
|
|
77
|
-
alias xxz='tar -xvJf' # xxz: Extract a whole directory (including subdirectories) from a xz file.
|
|
78
|
-
alias xz='tar -xvzf' # xz: Extract a whole directory (including subdirectories) from a gzip file.
|
|
142
|
+
# Compress a whole directory (including subdirectories) to a tar.zst
|
|
143
|
+
# file.
|
|
144
|
+
if command -v tar &>/dev/null && command -v zstd &>/dev/null; then
|
|
145
|
+
alias ctzst='tar --zstd -cvf'
|
|
146
|
+
alias etzst='tar --zstd -xvf'
|
|
79
147
|
fi
|
|
80
148
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
alias
|
|
85
|
-
alias
|
|
149
|
+
# Compress a whole directory (including subdirectories) to a tar.pgz
|
|
150
|
+
# file.
|
|
151
|
+
if command -v tar &>/dev/null && command -v pigz &>/dev/null; then
|
|
152
|
+
alias ctpgz='tar --use-compress-program=pigz -cvf'
|
|
153
|
+
alias etpgz='tar --use-compress-program=pigz -xvf'
|
|
86
154
|
fi
|
|
@@ -1,16 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
<!-- markdownlint-disable MD033 MD041 -->
|
|
2
|
+
|
|
3
|
+
<img src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
4
|
+
alt="dotfiles logo" width="261" align="right" />
|
|
5
|
+
|
|
6
|
+
<!-- markdownlint-enable MD033 MD041 -->
|
|
7
|
+
|
|
8
|
+
# Dotfiles (v0.2.465)
|
|
9
|
+
|
|
10
|
+
Simply designed to fit your shell life π
|
|
11
|
+
|
|
12
|
+
![Dotfiles banner][banner]
|
|
13
|
+
|
|
14
|
+
## π
²π
³ π
°π
»π
Έπ
°ππ
΄π
|
|
2
15
|
|
|
3
16
|
These aliases provide shortcuts for the cd command to help you quickly
|
|
4
17
|
navigate your file system. To use them, add the following lines to your
|
|
5
18
|
.bashrc or .bash_profile file.
|
|
6
19
|
|
|
7
|
-
## Aliases
|
|
8
|
-
|
|
9
20
|
### Navigation
|
|
10
21
|
|
|
11
|
-
- `/`: Go to root directory.
|
|
12
22
|
- `-`: Go to previous directory.
|
|
13
|
-
- `.., ..., ...., .....`: Go up one, two, three, or four directories,
|
|
23
|
+
- `.., ..., ...., .....`: Go up one, two, three, or four directories,
|
|
24
|
+
respectively.
|
|
14
25
|
- `~`: Go to home directory.
|
|
15
26
|
|
|
16
27
|
### Directories
|
|
@@ -34,13 +45,19 @@ navigate your file system. To use them, add the following lines to your
|
|
|
34
45
|
|
|
35
46
|
### Frequently used directories
|
|
36
47
|
|
|
37
|
-
- `app`: Shortcut to go to the Applications directory and list its
|
|
48
|
+
- `app`: Shortcut to go to the Applications directory and list its
|
|
49
|
+
contents.
|
|
38
50
|
- `cod`: Shortcut to go to the Code directory and list its contents.
|
|
39
51
|
- `des`: Shortcut to go to the Desktop directory and list its contents.
|
|
40
|
-
- `doc`: Shortcut to go to the Documents directory and list its
|
|
41
|
-
|
|
42
|
-
- `
|
|
52
|
+
- `doc`: Shortcut to go to the Documents directory and list its
|
|
53
|
+
contents.
|
|
54
|
+
- `dot`: Shortcut to go to the .dotfiles directory and list its
|
|
55
|
+
contents.
|
|
56
|
+
- `dow`: Shortcut to go to the Downloads directory and list its
|
|
57
|
+
contents.
|
|
43
58
|
- `hom`: Shortcut to go to the home directory and list its contents.
|
|
44
59
|
- `mus`: Shortcut to go to the Music directory and list its contents.
|
|
45
60
|
- `pic`: Shortcut to go to the Pictures directory and list its contents.
|
|
46
61
|
- `vid`: Shortcut to go to the Videos directory and list its contents.
|
|
62
|
+
|
|
63
|
+
[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
|
|
@@ -4,14 +4,11 @@
|
|
|
4
4
|
# Description: Sets aliases for the `cd` command.
|
|
5
5
|
# License: MIT
|
|
6
6
|
# Script: cd.aliases.sh
|
|
7
|
-
# Version: 0.2.
|
|
7
|
+
# Version: 0.2.465
|
|
8
8
|
# Website: https://dotfiles.io
|
|
9
9
|
|
|
10
10
|
# π
²π
³ π
°π
»π
Έπ
°ππ
΄π
|
|
11
11
|
|
|
12
|
-
# Shortcut to go to root directory
|
|
13
|
-
alias /='cd /'
|
|
14
|
-
|
|
15
12
|
# Shortcut to go to previous directory
|
|
16
13
|
alias -- -='cd -'
|
|
17
14
|
|
|
@@ -1,28 +1,61 @@
|
|
|
1
|
-
|
|
1
|
+
<!-- markdownlint-disable MD033 MD041 -->
|
|
2
|
+
|
|
3
|
+
<img src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
4
|
+
alt="dotfiles logo" width="261" align="right" />
|
|
5
|
+
|
|
6
|
+
<!-- markdownlint-enable MD033 MD041 -->
|
|
7
|
+
|
|
8
|
+
# Dotfiles (v0.2.465)
|
|
9
|
+
|
|
10
|
+
Simply designed to fit your shell life π
|
|
11
|
+
|
|
12
|
+
![Dotfiles banner][banner]
|
|
13
|
+
|
|
14
|
+
## π
²π
·π
Όπ
Ύπ
³ π
°π
»π
Έπ
°ππ
΄π
|
|
2
15
|
|
|
3
16
|
These aliases provide shortcuts for the chmod command to help you
|
|
4
17
|
quickly change the permissions of files and directories. To use them,
|
|
5
18
|
add the following lines to your .bashrc or .bash_profile file.
|
|
6
19
|
|
|
7
|
-
## Aliases
|
|
8
|
-
|
|
9
20
|
### Change permissions
|
|
10
21
|
|
|
11
|
-
- `000`: (chmod a-rwx) sets permissions so that, (U)ser / owner can't
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
- `
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
- `
|
|
18
|
-
|
|
19
|
-
|
|
22
|
+
- `000`: (chmod a-rwx) sets permissions so that, (U)ser / owner can't
|
|
23
|
+
read, can't write and can't execute. (G)roup can't read, can't write
|
|
24
|
+
and can't execute. (O)thers can't read, can't write and can't execute.
|
|
25
|
+
- `400`: (chmod a-rw) sets permissions so that, (U)ser / owner can't
|
|
26
|
+
read, can't write and can execute. (G)roup can't read, can't write and
|
|
27
|
+
can execute. (O)thers can't read, can't write and can execute.
|
|
28
|
+
- `444`: (chmod a-r) sets permissions so that, (U)ser / owner can't
|
|
29
|
+
read, can't write and can execute. (G)roup can't read, can't write and
|
|
30
|
+
can execute. (O)thers can't read, can't write and can execute.
|
|
31
|
+
- `600`: (chmod a+rwx,u-x,g-rwx,o-rwx) sets permissions so that, (U)ser
|
|
32
|
+
/ owner can read, can write and can't execute. (G)roup can't read,
|
|
33
|
+
can't write and can't execute. (O)thers can't read, can't write and
|
|
34
|
+
can't execute.
|
|
35
|
+
- `644`: (chmod a+rwx,u-x,g-wx,o-wx) sets permissions so that, (U)ser /
|
|
36
|
+
owner can read, can write and can't execute. (G)roup can read, can't
|
|
37
|
+
write and can't execute. (O)thers can read, can't write and can't
|
|
38
|
+
execute.
|
|
39
|
+
- `666`: (chmod a+rwx,u-x,g-x,o-x) sets permissions so that, (U)ser /
|
|
40
|
+
owner can read, can write and can't execute. (G)roup can read, can
|
|
41
|
+
write and can't execute. (O)thers can read, can write and can't
|
|
42
|
+
execute.
|
|
43
|
+
- `755`: (chmod a+rwx,g-w,o-w) sets permissions so that, (U)ser / owner
|
|
44
|
+
can read, can write and can execute. (G)roup can read, can't write
|
|
45
|
+
and can execute. (O)thers can read, can't write and can execute.
|
|
46
|
+
- `764`: (chmod a+rwx,g-x,o-wx) sets permissions so that, (U)ser /
|
|
47
|
+
owner can read, can write and can execute. (G)roup can read, can write
|
|
48
|
+
and can't execute. (O)thers can read, can't write and can't execute.
|
|
49
|
+
- `777`: (chmod a+rwx) sets permissions so that, (U)ser / owner can
|
|
50
|
+
read, can write and can execute. (G)roup can read, can write and can
|
|
51
|
+
execute. (O)thers can read, can write and can execute.
|
|
20
52
|
|
|
21
53
|
### Change ownership
|
|
22
54
|
|
|
23
55
|
- `chgrp`: Change group ownership of files or directories.
|
|
24
56
|
- `chgrpr`: Change group ownership of files or directories recursively.
|
|
25
|
-
- `chgrpu`: Change group ownership of files or directories recursively
|
|
57
|
+
- `chgrpu`: Change group ownership of files or directories recursively
|
|
58
|
+
to the current user.
|
|
26
59
|
- `chmod`: Change file mode bits.
|
|
27
60
|
- `chmodr`: Change file mode bits recursively.
|
|
28
61
|
- `chmodu`: Change file mode bits recursively to the current user.
|
|
@@ -68,3 +101,5 @@ add the following lines to your .bashrc or .bash_profile file.
|
|
|
68
101
|
- `755`: Set permissions to rwxr-xr-x.
|
|
69
102
|
- `775`: Set permissions to rwxrwxr-x.
|
|
70
103
|
- `777`: Set permissions to rwxrwxrwx.
|
|
104
|
+
|
|
105
|
+
[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
|
|
@@ -1,38 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
- `
|
|
20
|
-
- `
|
|
21
|
-
- `
|
|
22
|
-
- `
|
|
23
|
-
|
|
24
|
-
- `
|
|
25
|
-
- `clp
|
|
26
|
-
|
|
27
|
-
- `
|
|
28
|
-
- `
|
|
29
|
-
|
|
30
|
-
- `
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
- `clv`: Clear the terminal screen and print the current virtualenvwrapper information.
|
|
35
|
-
- `ct`: Clear the terminal screen and print the directory tree.
|
|
36
|
-
- `ctree`: Clear the terminal screen and print the directory tree.
|
|
37
|
-
- `cpl`: Clear the terminal screen and print the current working directory and the contents of the current directory.
|
|
38
|
-
- `cplt`: Clear the terminal screen and print the current working directory and the directory tree.- `
|
|
1
|
+
<!-- markdownlint-disable MD033 MD041 -->
|
|
2
|
+
|
|
3
|
+
<img src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
4
|
+
alt="dotfiles logo" width="261" align="right" />
|
|
5
|
+
|
|
6
|
+
<!-- markdownlint-enable MD033 MD041 -->
|
|
7
|
+
|
|
8
|
+
# Dotfiles (v0.2.465)
|
|
9
|
+
|
|
10
|
+
Simply designed to fit your shell life π
|
|
11
|
+
|
|
12
|
+
![Dotfiles banner][banner]
|
|
13
|
+
|
|
14
|
+
## π
²π
»π
΄π
°π π
°π
»π
Έπ
°ππ
΄π
|
|
15
|
+
|
|
16
|
+
This code provides a set of command aliases to make working with the
|
|
17
|
+
terminal easier and more efficient. The following aliases are included:
|
|
18
|
+
|
|
19
|
+
- `c` clears the terminal screen.
|
|
20
|
+
- `cdw` changes the current directory to the workspace directory.
|
|
21
|
+
- `cl` is an alias for `c`, which clears the terminal screen.
|
|
22
|
+
- `clc` clears the terminal screen and lists the contents of the current
|
|
23
|
+
directory.
|
|
24
|
+
- `clh` clears the terminal screen and prints the command history.
|
|
25
|
+
- `clp` clears the terminal screen and prints the current working
|
|
26
|
+
directory.
|
|
27
|
+
- `clt` clears the terminal screen and prints the directory tree.
|
|
28
|
+
- `cpl` clears the terminal screen and prints the current working
|
|
29
|
+
directory and the contents of the current directory.
|
|
30
|
+
- `cplt` clears the terminal screen and prints the current working
|
|
31
|
+
directory and the directory tree.
|
|
32
|
+
|
|
33
|
+
[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
|