@sebastienrousseau/dotfiles 0.2.463 β 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 +34 -8
- 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 +20 -26
- package/dist/lib/paths/ant/ant.paths.sh +9 -10
- 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 +12 -13
- 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 -7
- 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,46 +1,43 @@
|
|
|
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 the `dig` command.
|
|
5
6
|
# License: MIT
|
|
6
7
|
# Script: dig.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 d='$(which dig)'
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
alias
|
|
17
|
-
alias dgs='$(which dig) +short' # dgs: Perform a DNS lookup for a short answer.
|
|
12
|
+
if command -v dig &>/dev/null; then
|
|
13
|
+
# d: Run the dig command with the default options.
|
|
14
|
+
alias d='$(which dig)'
|
|
15
|
+
|
|
16
|
+
# d4: Perform a DNS lookup for an IPv4 address.
|
|
17
|
+
alias d4='$(which dig) +short -4'
|
|
18
18
|
|
|
19
|
-
# DNS
|
|
20
|
-
alias
|
|
19
|
+
# d6: Perform a DNS lookup for an IPv6 address.
|
|
20
|
+
alias d6='$(which dig) +short -6'
|
|
21
21
|
|
|
22
|
-
#
|
|
23
|
-
alias
|
|
24
|
-
alias ip6='$(which dig) -6 AAAA +short myip.opendns.com. @resolver1.opendns.com.' # ip6: Get your public IPv6 address.
|
|
25
|
-
alias ips='ip4; ip6' # ips: Get your public IPv4 and IPv6 addresses.
|
|
26
|
-
alias wip='$(which dig) +short myip.opendns.com @resolver1.opendns.com' # wip: Get your public IP address.
|
|
22
|
+
# dga: Perform a DNS lookup for all records.
|
|
23
|
+
alias dga='$(which dig) +all ANY'
|
|
27
24
|
|
|
28
|
-
# DNS
|
|
29
|
-
alias
|
|
25
|
+
# dgs: Perform a DNS lookup for a short answer.
|
|
26
|
+
alias dgs='$(which dig) +short'
|
|
30
27
|
|
|
31
|
-
#
|
|
32
|
-
alias
|
|
28
|
+
# digg: Dig with Google's DNS.
|
|
29
|
+
alias digg='$(which dig) @8.8.8.8 +nocmd any +multiline +noall +answer'
|
|
33
30
|
|
|
34
|
-
#
|
|
35
|
-
alias
|
|
31
|
+
# ip4: Get your public IPv4 address.
|
|
32
|
+
alias ip4='$(which dig) +short myip.opendns.com @resolver1.opendns.com -4'
|
|
36
33
|
|
|
37
|
-
#
|
|
38
|
-
alias
|
|
34
|
+
# ip6: Get your public IPv6 address.
|
|
35
|
+
alias ip6='$(which dig) -6 AAAA +short myip.opendns.com. @resolver1.opendns.com.'
|
|
39
36
|
|
|
40
|
-
#
|
|
41
|
-
alias
|
|
37
|
+
# ips: Get your public IPv4 and IPv6 addresses.
|
|
38
|
+
alias ips='ip4; ip6'
|
|
42
39
|
|
|
43
|
-
#
|
|
44
|
-
alias
|
|
40
|
+
# wip: Get your public IP address.
|
|
41
|
+
alias wip='$(which dig) +short myip.opendns.com @resolver1.opendns.com'
|
|
45
42
|
|
|
46
43
|
fi
|
|
@@ -0,0 +1,32 @@
|
|
|
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 help users manage disk
|
|
17
|
+
usage on a Unix-based system.
|
|
18
|
+
|
|
19
|
+
The following aliases are provided:
|
|
20
|
+
|
|
21
|
+
- `du`: Display the disk usage of the current directory.
|
|
22
|
+
- `du1`: Show the file size of files and directories in the current
|
|
23
|
+
directory.
|
|
24
|
+
- `duh`: Show the file size of files and directories.
|
|
25
|
+
- `ducks`: Display the top 10 largest files and directories in the
|
|
26
|
+
current directory.
|
|
27
|
+
- `dus`: Show the file size in human-readable format, sorted by size.
|
|
28
|
+
- `dusym`: Show the file size of files and directories in the current
|
|
29
|
+
directory, including symlinks.
|
|
30
|
+
- `dut`: Show the total file size of the current directory.
|
|
31
|
+
|
|
32
|
+
[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
# Author: Sebastien Rousseau
|
|
4
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
5
|
+
# Description: Sets Disk Usage Aliases
|
|
6
|
+
# License: MIT
|
|
7
|
+
# Script: du.aliases.sh
|
|
8
|
+
# Version: 0.2.465
|
|
9
|
+
# Website: https://dotfiles.io
|
|
10
|
+
|
|
11
|
+
# π
³π
Έππ
Ί πππ
°π
Άπ
΄ π
°π
»π
Έπ
°ππ
΄π
|
|
12
|
+
|
|
13
|
+
if command -v 'du' >/dev/null; then
|
|
14
|
+
|
|
15
|
+
# Display the disk usage of the current directory.
|
|
16
|
+
alias du="du -h"
|
|
17
|
+
|
|
18
|
+
# File size of files and directories in current directory.
|
|
19
|
+
alias du1='du -hxd 1 | sort -h'
|
|
20
|
+
|
|
21
|
+
# Top 10 largest files and directories in current directory.
|
|
22
|
+
alias ducks="du -cks * .* | sort -rn | head -n 10"
|
|
23
|
+
|
|
24
|
+
# File size of files and directories.
|
|
25
|
+
alias duh='du'
|
|
26
|
+
|
|
27
|
+
# File size human readable output sorted by size.
|
|
28
|
+
alias dus='du -hs *'
|
|
29
|
+
|
|
30
|
+
# File size of files and directories in current directory including
|
|
31
|
+
# symlinks.
|
|
32
|
+
alias dusym="du * -hsLc"
|
|
33
|
+
|
|
34
|
+
# Total file size of current directory.
|
|
35
|
+
alias dut='dus'
|
|
36
|
+
|
|
37
|
+
# DNS aliases
|
|
38
|
+
|
|
39
|
+
# Run the dig command with the default options.
|
|
40
|
+
alias d='$(which dig)'
|
|
41
|
+
|
|
42
|
+
# Perform a DNS lookup for CNAME records.
|
|
43
|
+
alias dc='$(which dig) +short -t CNAME'
|
|
44
|
+
|
|
45
|
+
# Perform a DNS lookup for all records.
|
|
46
|
+
alias dga='$(which dig) +all ANY'
|
|
47
|
+
|
|
48
|
+
# Dig with Google's DNS.
|
|
49
|
+
alias digg='$(which dig) @8.8.8.8 +nocmd any +multiline +noall +answer'
|
|
50
|
+
|
|
51
|
+
# Perform a DNS lookup for a short answer.
|
|
52
|
+
alias dgs='$(which dig) +short'
|
|
53
|
+
|
|
54
|
+
# Perform a DNS lookup for NS records.
|
|
55
|
+
alias dns='$(which dig) +short -t NS'
|
|
56
|
+
|
|
57
|
+
# Perform a DNS lookup for MX records.
|
|
58
|
+
alias dmx='$(which dig) +short -t MX'
|
|
59
|
+
|
|
60
|
+
# Perform a DNS lookup for PTR records.
|
|
61
|
+
alias dptr='$(which dig) +short -x'
|
|
62
|
+
|
|
63
|
+
# Perform a DNS lookup for TXT records.
|
|
64
|
+
alias dt='$(which dig) +short -t TXT'
|
|
65
|
+
|
|
66
|
+
# Perform a DNS lookup for an IPv4 address.
|
|
67
|
+
alias d4='$(which dig) +short -4'
|
|
68
|
+
|
|
69
|
+
# Perform a DNS lookup for an IPv6 address.
|
|
70
|
+
alias d6='$(which dig) +short -6'
|
|
71
|
+
|
|
72
|
+
# Get your public IPv4 address.
|
|
73
|
+
alias ip4='$(which dig) +short myip.opendns.com @resolver1.opendns.com -4'
|
|
74
|
+
|
|
75
|
+
# Get your public IPv6 address.
|
|
76
|
+
alias ip6='$(which dig) -6 AAAA +short myip.opendns.com. @resolver1.opendns.com.'
|
|
77
|
+
|
|
78
|
+
# Get your public IPv4 and IPv6 addresses.
|
|
79
|
+
alias ips='ip4; ip6'
|
|
80
|
+
|
|
81
|
+
# Get your public IP address.
|
|
82
|
+
alias wip='$(which dig) +short myip.opendns.com @resolver1.opendns.com'
|
|
83
|
+
|
|
84
|
+
fi
|
|
@@ -1,47 +1,49 @@
|
|
|
1
|
-
|
|
1
|
+
<!-- markdownlint-disable MD033 MD041 -->
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
<img src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
4
|
+
alt="dotfiles logo" width="261" align="right" />
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
<!-- markdownlint-enable MD033 MD041 -->
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
# Dotfiles (v0.2.465)
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
- `nano1`: Edit a file with Nano, with cursor position display.
|
|
12
|
-
- `nanos`: Edit a file with Nano, soft wrapping enabled.
|
|
10
|
+
Simply designed to fit your shell life π
|
|
13
11
|
|
|
14
|
-
|
|
12
|
+
![Dotfiles banner][banner]
|
|
15
13
|
|
|
16
|
-
|
|
17
|
-
- `vi`: Edit a file with Vim.
|
|
18
|
-
- `vimdiff`: Compare two files with Vimdiff.
|
|
19
|
-
- `vimh`: Edit a file with Vim in no compatible mode.
|
|
20
|
-
- `vims`: Edit a file with Vim, sourcing the given session file.
|
|
14
|
+
## π
΄π
³π
Έππ
Ύπ π
°π
»π
Έπ
°ππ
΄π
|
|
21
15
|
|
|
22
|
-
|
|
16
|
+
This code provides command aliases for editing files on a Unix-based
|
|
17
|
+
system using various text editors.
|
|
23
18
|
|
|
24
|
-
|
|
25
|
-
- `code1`: Edit a file with Visual Studio Code, with extensions disabled.
|
|
26
|
-
- `codef`: Open a new instance of Visual Studio Code.
|
|
27
|
-
- `cdiff`: Compare two files with Visual Studio Code.
|
|
19
|
+
The following editors are supported:
|
|
28
20
|
|
|
29
|
-
|
|
21
|
+
- nano (GNU nano)
|
|
22
|
+
- vim (Vim)
|
|
23
|
+
- vi (Vi)
|
|
24
|
+
- code (Visual Studio Code)
|
|
25
|
+
- gedit (gedit)
|
|
26
|
+
- notepad++ (Notepad++)
|
|
30
27
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
- `geditd`: Edit a file with Gedit, with split view enabled.
|
|
28
|
+
The aliases are designed to make it easy for users to quickly open and
|
|
29
|
+
edit files with their preferred text editor. The aliases are:
|
|
34
30
|
|
|
35
|
-
|
|
31
|
+
- `e`: Edit a file
|
|
32
|
+
- `edit`: Edit a file
|
|
33
|
+
- `editor`: Edit a file
|
|
34
|
+
- `mate`: Edit a file
|
|
35
|
+
- `n`: Edit a file
|
|
36
|
+
- `v`: Edit a file
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
The code checks if any of the supported editors are installed on the
|
|
39
|
+
system and sets the corresponding alias to open the file in the
|
|
40
|
+
available editor.
|
|
39
41
|
|
|
40
|
-
|
|
42
|
+
This makes it easy for users to switch between editors or use their
|
|
43
|
+
preferred editor without having to remember the specific command for
|
|
44
|
+
each editor.
|
|
41
45
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
- `n`: Edit a file.
|
|
47
|
-
- `v`: Edit a file.
|
|
46
|
+
Enjoy the convenience of quickly editing files with these command
|
|
47
|
+
aliases!
|
|
48
|
+
|
|
49
|
+
[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
|
|
@@ -1,52 +1,26 @@
|
|
|
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 Editor Aliases
|
|
5
6
|
# License: MIT
|
|
6
7
|
# Script: editor.aliases.sh
|
|
7
|
-
# Version: 0.2.
|
|
8
|
+
# Version: 0.2.465
|
|
8
9
|
# Website: https://dotfiles.io
|
|
9
10
|
|
|
10
11
|
# π
΄π
³π
Έππ
Ύπ π
°π
»π
Έπ
°ππ
΄π
|
|
12
|
+
|
|
11
13
|
editors="nano vim vi code gedi notepad++"
|
|
12
14
|
for editor in ${editors}; do
|
|
13
15
|
if command -v "${editor}" &>/dev/null; then
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
alias vi='vim' # vi: Edit a file with Vim.
|
|
23
|
-
alias vimdiff='vim -d' # vimdiff: Compare two files with Vimdiff.
|
|
24
|
-
alias vimh='vim -u NONE -N' # vimh: Edit a file with Vim in no compatible mode.
|
|
25
|
-
alias vims='vim -S' # vims: Edit a file with Vim, sourcing the given session file.
|
|
26
|
-
;;
|
|
27
|
-
"code")
|
|
28
|
-
alias c='code' # c: Edit a file with Visual Studio Code.
|
|
29
|
-
alias code1='code --disable-extensions' # code1: Edit a file with Visual Studio Code, with extensions disabled.
|
|
30
|
-
alias codef='code --new-window' # codef: Open a new instance of Visual Studio Code.
|
|
31
|
-
alias cdiff='code --diff' # cdiff: Compare two files with Visual Studio Code.
|
|
32
|
-
;;
|
|
33
|
-
"gedi")
|
|
34
|
-
alias g='gedit' # g: Edit a file with Gedit.
|
|
35
|
-
alias gedit1='gedit -w' # gedit1: Edit a file with Gedit and wait until it is closed.
|
|
36
|
-
alias geditd='gedit -s' # geditd: Edit a file with Gedit, with split view enabled.
|
|
37
|
-
;;
|
|
38
|
-
"notepad++")
|
|
39
|
-
alias npp='notepad++' # npp: Edit a file with Notepad++.
|
|
40
|
-
alias npp1='notepad++ -nosession' # npp1: Edit a file with Notepad++, without restoring a previous session.
|
|
41
|
-
;;
|
|
42
|
-
*) ;;
|
|
43
|
-
esac
|
|
44
|
-
alias e='${editor}' # e: Edit a file.
|
|
45
|
-
alias edit='${editor}' # edit: Edit a file.
|
|
46
|
-
alias editor='${editor}' # editor: Edit a file.
|
|
47
|
-
alias mate='${editor}' # mate: Edit a file.
|
|
48
|
-
alias n='${editor}' # n: Edit a file.
|
|
49
|
-
alias v='${editor}' # v: Edit a file.
|
|
16
|
+
# Edit aliases
|
|
17
|
+
alias e='${editor}'
|
|
18
|
+
alias edit='${editor}'
|
|
19
|
+
alias editor='${editor}'
|
|
20
|
+
alias mate='${editor}'
|
|
21
|
+
alias n='${editor}'
|
|
22
|
+
alias v='${editor}'
|
|
23
|
+
|
|
50
24
|
break
|
|
51
25
|
fi
|
|
52
26
|
done
|
|
@@ -1,29 +1,42 @@
|
|
|
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
|
-
|
|
26
|
-
- `
|
|
27
|
-
|
|
28
|
-
- `
|
|
29
|
-
- `
|
|
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 for the `fd` utility that is
|
|
17
|
+
an alternative to the `find` command on Unix-based systems.
|
|
18
|
+
|
|
19
|
+
`fd` is a simple, fast, and user-friendly tool that can be used to
|
|
20
|
+
search for files and directories in a given path. These aliases make it
|
|
21
|
+
easier to use `fd` by providing simple and memorable commands for common
|
|
22
|
+
use cases.
|
|
23
|
+
|
|
24
|
+
Here are some of the available aliases:
|
|
25
|
+
|
|
26
|
+
- `fd` is the default alias for `fd --color always` that lists all files
|
|
27
|
+
with colorized output.
|
|
28
|
+
- `fda` lists all files with absolute paths.
|
|
29
|
+
- `fdc` lists all files with case-insensitive search.
|
|
30
|
+
- `fdd` lists all files with details.
|
|
31
|
+
- `fde` lists all files with a specified extension.
|
|
32
|
+
- `fdf` lists all files while following symbolic links.
|
|
33
|
+
- `fdh` shows help for `fd`.
|
|
34
|
+
- `fdh` lists all files, including hidden files.
|
|
35
|
+
- `fdn` lists all files that match a specified glob.
|
|
36
|
+
- `fdo` lists all files with owner information.
|
|
37
|
+
- `fds` lists all files with size.
|
|
38
|
+
- `fdu` lists all files with exclusion rules.
|
|
39
|
+
- `fdv` shows the version of `fd`.
|
|
40
|
+
- `fdx` executes a command for each search result.
|
|
41
|
+
|
|
42
|
+
[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
|
|
@@ -1,34 +1,60 @@
|
|
|
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 Find Aliases
|
|
5
6
|
# License: MIT
|
|
6
7
|
# Script: find.aliases.sh
|
|
7
|
-
# Version: 0.2.
|
|
8
|
+
# Version: 0.2.465
|
|
8
9
|
# Website: https://dotfiles.io
|
|
9
10
|
|
|
10
11
|
# π
΅π
Έπ
½π
³ π
°π
»π
Έπ
°ππ
΄π
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
alias
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
alias
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
alias
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
alias
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
alias
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
alias
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
alias
|
|
12
|
+
|
|
13
|
+
if command -v fd &>/dev/null; then
|
|
14
|
+
# fd: a simple, fast and user-friendly alternative to find
|
|
15
|
+
# Always colorize output by default.
|
|
16
|
+
alias fd='fd --color always'
|
|
17
|
+
|
|
18
|
+
# List all files with absolute path.
|
|
19
|
+
alias fda='fd --absolute-path'
|
|
20
|
+
|
|
21
|
+
# List all files with case-insensitive search.
|
|
22
|
+
alias fdc='fd --ignore-case'
|
|
23
|
+
|
|
24
|
+
# List all files with details.
|
|
25
|
+
alias fdd='fd --list-details'
|
|
26
|
+
|
|
27
|
+
# List all files with extension.
|
|
28
|
+
alias fde='fd --extension'
|
|
29
|
+
|
|
30
|
+
# List all files with follow symlinks.
|
|
31
|
+
alias fdf='fd --follow'
|
|
32
|
+
|
|
33
|
+
# List all files with help.
|
|
34
|
+
alias fdh='fd --help'
|
|
35
|
+
|
|
36
|
+
# List all files, including hidden files.
|
|
37
|
+
alias fdh='fd --hidden'
|
|
38
|
+
|
|
39
|
+
# List all files with glob.
|
|
40
|
+
alias fdn='fd --glob'
|
|
41
|
+
|
|
42
|
+
# List all files with owner.
|
|
43
|
+
alias fdo='fd --owner'
|
|
44
|
+
|
|
45
|
+
# List all files with size.
|
|
46
|
+
alias fds='fd --size'
|
|
47
|
+
|
|
48
|
+
# List all files with exclude.
|
|
49
|
+
alias fdu='fd --exclude'
|
|
50
|
+
|
|
51
|
+
# List all files with version.
|
|
52
|
+
alias fdv='fd --version'
|
|
53
|
+
|
|
54
|
+
# Execute a command for each search result.
|
|
55
|
+
alias fdx='fd --exec'
|
|
56
|
+
|
|
57
|
+
# Use fd as a replacement for find.
|
|
58
|
+
alias find='fd'
|
|
59
|
+
|
|
34
60
|
fi
|