@sebastienrousseau/dotfiles 0.2.466 β 0.2.468
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 +19 -15
- package/dist/Makefile +2 -2
- package/dist/bin/backup.js.map +1 -1
- package/dist/bin/constants.d.ts +2 -2
- package/dist/bin/constants.js +1 -1
- package/dist/bin/dotfiles.d.ts +2 -2
- package/dist/bin/dotfiles.d.ts.map +1 -1
- package/dist/bin/dotfiles.js +1 -2
- package/dist/bin/dotfiles.js.map +1 -1
- package/dist/bin/download.d.ts +2 -2
- package/dist/bin/download.d.ts.map +1 -1
- package/dist/bin/download.js +1 -2
- package/dist/bin/download.js.map +1 -1
- package/dist/bin/index.js +1 -1
- package/dist/bin/index.js.map +1 -1
- package/dist/filesizes.txt +85 -87
- package/dist/lib/README.md +9 -5
- package/dist/lib/aliases/README.md +8 -4
- package/dist/lib/aliases/archives/README.md +29 -26
- package/dist/lib/aliases/archives/archives.aliases.sh +148 -145
- package/dist/lib/aliases/cd/README.md +46 -44
- package/dist/lib/aliases/cd/cd.aliases.sh +63 -29
- package/dist/lib/aliases/chmod/README.md +8 -4
- package/dist/lib/aliases/chmod/chmod.aliases.sh +60 -42
- package/dist/lib/aliases/clear/README.md +8 -4
- package/dist/lib/aliases/clear/clear.aliases.sh +57 -28
- package/dist/lib/aliases/configuration/README.md +8 -4
- package/dist/lib/aliases/configuration/configuration.aliases.sh +56 -30
- package/dist/lib/aliases/default/README.md +8 -4
- package/dist/lib/aliases/default/default.aliases.sh +99 -86
- package/dist/lib/aliases/dig/README.md +8 -4
- package/dist/lib/aliases/dig/dig.aliases.sh +3 -3
- package/dist/lib/aliases/disk-usage/README.md +8 -4
- package/dist/lib/aliases/disk-usage/du.aliases.sh +2 -2
- package/dist/lib/aliases/editor/README.md +8 -4
- package/dist/lib/aliases/editor/editor.aliases.sh +3 -3
- package/dist/lib/aliases/find/README.md +8 -4
- package/dist/lib/aliases/find/find.aliases.sh +3 -3
- package/dist/lib/aliases/gcloud/README.md +8 -4
- package/dist/lib/aliases/gcloud/gcloud.aliases.sh +3 -3
- package/dist/lib/aliases/git/README.md +8 -4
- package/dist/lib/aliases/git/git.aliases.sh +2 -2
- package/dist/lib/aliases/gnu/README.md +8 -4
- package/dist/lib/aliases/gnu/gnucoreutils-aliases.sh +1 -1
- package/dist/lib/aliases/heroku/README.md +8 -4
- package/dist/lib/aliases/heroku/heroku.aliases.sh +2 -2
- package/dist/lib/aliases/interactive/README.md +29 -17
- package/dist/lib/aliases/interactive/interactive.aliases.sh +14 -17
- package/dist/lib/aliases/jekyll/README.md +8 -4
- package/dist/lib/aliases/jekyll/jekyll.aliases.sh +3 -3
- package/dist/lib/aliases/list/README.md +8 -4
- package/dist/lib/aliases/list/list.aliases.sh +2 -2
- package/dist/lib/aliases/macOS/README.md +8 -4
- package/dist/lib/aliases/macOS/macos.aliases.sh +2 -2
- package/dist/lib/aliases/make/README.md +8 -4
- package/dist/lib/aliases/make/make.aliases.sh +2 -2
- package/dist/lib/aliases/mkdir/README.md +8 -4
- package/dist/lib/aliases/mkdir/mkdir.aliases.sh +2 -2
- package/dist/lib/aliases/npm/README.md +8 -4
- package/dist/lib/aliases/npm/npm.aliases.sh +2 -2
- package/dist/lib/aliases/permission/README.md +8 -4
- package/dist/lib/aliases/permission/permission.aliases.sh +2 -2
- package/dist/lib/aliases/pnpm/README.md +8 -4
- package/dist/lib/aliases/pnpm/pnpm.aliases.sh +2 -2
- package/dist/lib/aliases/ps/README.md +8 -4
- package/dist/lib/aliases/ps/ps.aliases.sh +2 -2
- package/dist/lib/aliases/rsync/README.md +8 -4
- package/dist/lib/aliases/rsync/rsync.aliases.sh +2 -2
- package/dist/lib/aliases/rust/README.md +8 -4
- package/dist/lib/aliases/rust/rust.aliases.sh +23 -23
- package/dist/lib/aliases/subversion/README.md +8 -4
- package/dist/lib/aliases/subversion/subversion.aliases.sh +2 -2
- package/dist/lib/aliases/sudo/README.md +8 -4
- package/dist/lib/aliases/sudo/sudo.aliases.sh +2 -2
- package/dist/lib/aliases/tmux/README.md +8 -4
- package/dist/lib/aliases/tmux/tmux.aliases.sh +2 -2
- package/dist/lib/aliases/update/README.md +8 -4
- package/dist/lib/aliases/update/update.aliases.sh +2 -2
- package/dist/lib/aliases/uuid/README.md +8 -4
- package/dist/lib/aliases/uuid/uuid.aliases.sh +2 -2
- package/dist/lib/aliases/wget/README.md +8 -4
- package/dist/lib/aliases/wget/wget.aliases.sh +2 -2
- package/dist/lib/aliases.sh +42 -12
- package/dist/lib/configurations/README.md +8 -4
- package/dist/lib/configurations/bash/bashrc +3 -3
- package/dist/lib/configurations/curl/curlrc +2 -2
- package/dist/lib/configurations/default/color.sh +2 -2
- package/dist/lib/configurations/default/constants.sh +3 -3
- package/dist/lib/configurations/default/editor.sh +2 -2
- package/dist/lib/configurations/default/prompt.sh +2 -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 +2 -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/vim/vimrc +1 -1
- package/dist/lib/configurations/wget/wgetrc +2 -2
- package/dist/lib/configurations/zsh/zshrc +11 -11
- package/dist/lib/configurations.sh +27 -9
- package/dist/lib/functions/README.md +8 -4
- package/dist/lib/functions/cdls.sh +2 -2
- package/dist/lib/functions/curlheader.sh +2 -2
- package/dist/lib/functions/curlstatus.sh +2 -2
- package/dist/lib/functions/curltime.sh +3 -3
- package/dist/lib/functions/encode64.sh +2 -2
- package/dist/lib/functions/environment.sh +2 -2
- package/dist/lib/functions/extract.sh +2 -2
- package/dist/lib/functions/freespace.sh +2 -2
- package/dist/lib/functions/genpwd.sh +4 -4
- package/dist/lib/functions/goto.sh +2 -2
- package/dist/lib/functions/hidehiddenfiles.sh +2 -2
- package/dist/lib/functions/hostinfo.sh +2 -2
- package/dist/lib/functions/hstats.sh +2 -2
- package/dist/lib/functions/httpdebug.sh +2 -2
- package/dist/lib/functions/keygen.sh +2 -2
- package/dist/lib/functions/last.sh +2 -2
- package/dist/lib/functions/logout.sh +2 -2
- package/dist/lib/functions/lowercase.sh +2 -2
- package/dist/lib/functions/matrix.sh +2 -2
- package/dist/lib/functions/mount_read_only.sh +2 -2
- package/dist/lib/functions/myproc.sh +2 -2
- package/dist/lib/functions/prependpath.sh +2 -2
- package/dist/lib/functions/ql.sh +2 -2
- package/dist/lib/functions/rd.sh +2 -2
- package/dist/lib/functions/remove_disk.sh +2 -2
- package/dist/lib/functions/ren.sh +2 -2
- package/dist/lib/functions/showhiddenfiles.sh +2 -2
- package/dist/lib/functions/size.sh +2 -2
- package/dist/lib/functions/stopwatch.sh +2 -2
- package/dist/lib/functions/uppercase.sh +2 -2
- package/dist/lib/functions/view-source.sh +2 -2
- package/dist/lib/functions/vscode.sh +2 -2
- package/dist/lib/functions/whoisport.sh +2 -2
- package/dist/lib/functions/zipf.sh +2 -2
- package/dist/lib/functions.sh +27 -10
- package/dist/lib/history.sh +58 -21
- package/dist/lib/paths/ant/ant.paths.sh +2 -2
- package/dist/lib/paths/default/default.paths.sh +2 -2
- package/dist/lib/paths/homebrew/homebrew.paths.sh +2 -2
- package/dist/lib/paths/java/java.paths.sh +2 -2
- package/dist/lib/paths/maven/maven.paths.sh +2 -2
- package/dist/lib/paths/node/node.paths.sh +2 -2
- package/dist/lib/paths/nvm/nvm.paths.sh +2 -2
- package/dist/lib/paths/pnpm/pnpm.paths.sh +2 -2
- package/dist/lib/paths/python/python.paths.sh +2 -2
- package/dist/lib/paths/ruby/ruby.paths.sh +2 -2
- package/dist/lib/paths/tmux/tmux.paths.sh +2 -2
- package/dist/lib/paths.sh +28 -12
- package/dist/scripts/backup.sh +2 -2
- package/dist/scripts/banner.sh +2 -2
- package/dist/scripts/build.sh +2 -2
- package/dist/scripts/clean.sh +2 -2
- package/dist/scripts/compile.sh +2 -2
- package/dist/scripts/copy.sh +2 -2
- package/dist/scripts/dotfiles.sh +2 -2
- package/dist/scripts/download.sh +2 -2
- package/dist/scripts/help.sh +2 -2
- package/dist/scripts/ssh.sh +2 -2
- package/dist/scripts/unpack.sh +2 -2
- package/package.json +6 -5
- package/dist/lib/configurations/tmux/vi +0 -9
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
<!-- markdownlint-disable MD033 MD041 -->
|
|
1
|
+
<!-- markdownlint-disable MD033 MD041 MD043 -->
|
|
2
2
|
|
|
3
|
-
<img
|
|
4
|
-
|
|
3
|
+
<img
|
|
4
|
+
src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
5
|
+
alt="dotfiles logo"
|
|
6
|
+
width="261"
|
|
7
|
+
align="right"
|
|
8
|
+
/>
|
|
5
9
|
|
|
6
10
|
<!-- markdownlint-enable MD033 MD041 -->
|
|
7
11
|
|
|
8
|
-
# Dotfiles (v0.2.
|
|
12
|
+
# Dotfiles (v0.2.468)
|
|
9
13
|
|
|
10
14
|
Simply designed to fit your shell life π
|
|
11
15
|
|
|
@@ -1,42 +1,71 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
#
|
|
5
|
-
# Copyright (c) 2015-2023. All rights reserved
|
|
6
|
-
# License: MIT
|
|
3
|
+
################################################################################
|
|
4
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π
|
|
7
5
|
# Script: clear.aliases.sh
|
|
8
|
-
# Version: 0.2.
|
|
6
|
+
# Version: 0.2.468
|
|
7
|
+
# Author: @wwdseb
|
|
8
|
+
# Copyright (c) 2015-2024. All rights reserved
|
|
9
|
+
# Description: Enhances terminal interaction with aliases for clearing the screen,
|
|
10
|
+
# navigating directories, and displaying directory contents in an organized manner.
|
|
9
11
|
# Website: https://dotfiles.io
|
|
12
|
+
# License: MIT
|
|
13
|
+
################################################################################
|
|
10
14
|
|
|
11
|
-
#
|
|
15
|
+
# Configurable paths
|
|
16
|
+
WORKSPACE_DIR="${HOME}/workspace"
|
|
12
17
|
|
|
13
|
-
#
|
|
14
|
-
|
|
18
|
+
# Validate directory existence
|
|
19
|
+
function validate_dir() {
|
|
20
|
+
if [[ ! -d "$1" ]]; then
|
|
21
|
+
echo "Directory $1 not found."
|
|
22
|
+
return 1
|
|
23
|
+
fi
|
|
24
|
+
return 0
|
|
25
|
+
}
|
|
15
26
|
|
|
16
|
-
#
|
|
17
|
-
|
|
27
|
+
# Functions for aliases
|
|
28
|
+
function cd_workspace() {
|
|
29
|
+
validate_dir "${WORKSPACE_DIR}" && cd "${WORKSPACE_DIR}" || return
|
|
30
|
+
}
|
|
18
31
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
32
|
+
function clear_screen() {
|
|
33
|
+
clear
|
|
34
|
+
}
|
|
22
35
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
36
|
+
function clear_list_current() {
|
|
37
|
+
clear && ls -a
|
|
38
|
+
}
|
|
26
39
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
40
|
+
function clear_pwd_list() {
|
|
41
|
+
clear && pwd && echo '' && ls -a && echo ''
|
|
42
|
+
}
|
|
30
43
|
|
|
31
|
-
|
|
32
|
-
|
|
44
|
+
function clear_pwd_tree() {
|
|
45
|
+
clear && pwd && echo '' && tree ./ && echo ''
|
|
46
|
+
}
|
|
33
47
|
|
|
34
|
-
|
|
35
|
-
|
|
48
|
+
function clear_history() {
|
|
49
|
+
clear && history
|
|
50
|
+
}
|
|
36
51
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
52
|
+
function print_working_dir() {
|
|
53
|
+
pwd
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function clear_print_tree() {
|
|
57
|
+
clear && tree
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
# π
²π
»π
΄π
°π π
°π
»π
Έπ
°ππ
΄π
|
|
40
61
|
|
|
41
|
-
# Alias
|
|
42
|
-
alias
|
|
62
|
+
# Alias definitions
|
|
63
|
+
alias cdw='cd_workspace'
|
|
64
|
+
alias c='clear_screen'
|
|
65
|
+
alias clc='clear_list_current'
|
|
66
|
+
alias cpl='clear_pwd_list'
|
|
67
|
+
alias cplt='clear_pwd_tree'
|
|
68
|
+
alias clh='clear_history'
|
|
69
|
+
alias cl='clear_screen'
|
|
70
|
+
alias clp='print_working_dir'
|
|
71
|
+
alias clt='clear_print_tree'
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
<!-- markdownlint-disable MD033 MD041 -->
|
|
1
|
+
<!-- markdownlint-disable MD033 MD041 MD043 -->
|
|
2
2
|
|
|
3
|
-
<img
|
|
4
|
-
|
|
3
|
+
<img
|
|
4
|
+
src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
5
|
+
alt="dotfiles logo"
|
|
6
|
+
width="261"
|
|
7
|
+
align="right"
|
|
8
|
+
/>
|
|
5
9
|
|
|
6
10
|
<!-- markdownlint-enable MD033 MD041 -->
|
|
7
11
|
|
|
8
|
-
# Dotfiles (v0.2.
|
|
12
|
+
# Dotfiles (v0.2.468)
|
|
9
13
|
|
|
10
14
|
Simply designed to fit your shell life π
|
|
11
15
|
|
|
@@ -1,47 +1,73 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
#
|
|
5
|
-
# Copyright (c) 2015-2023. All rights reserved
|
|
6
|
-
# License: MIT
|
|
3
|
+
################################################################################
|
|
4
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π
|
|
7
5
|
# Script: configuration.aliases.sh
|
|
8
|
-
# Version: 0.2.
|
|
6
|
+
# Version: 0.2.468
|
|
7
|
+
# Author: @wwdseb
|
|
8
|
+
# Copyright (c) 2015-2024. All rights reserved
|
|
9
|
+
# Description: Script containing aliases to open configuration files in default
|
|
10
|
+
# editor
|
|
9
11
|
# Website: https://dotfiles.io
|
|
12
|
+
# License: MIT
|
|
13
|
+
################################################################################
|
|
14
|
+
|
|
15
|
+
# Set default text editor
|
|
16
|
+
EDITOR="${EDITOR:-vi}"
|
|
17
|
+
|
|
18
|
+
# Apache aliases
|
|
19
|
+
# ------------------------------------------------------------------------------
|
|
20
|
+
|
|
21
|
+
# Open Apache configuration file in default text editor
|
|
22
|
+
alias edit_apache_config='${EDITOR} /etc/apache2/apache2.conf'
|
|
23
|
+
|
|
24
|
+
# Bash aliases
|
|
25
|
+
# ------------------------------------------------------------------------------
|
|
26
|
+
|
|
27
|
+
# Open Bash configuration file in default text editor
|
|
28
|
+
alias edit_bashrc='${EDITOR} $HOME/.bashrc'
|
|
29
|
+
|
|
30
|
+
# Open Bash profile in default text editor
|
|
31
|
+
alias edit_bash_profile='${EDITOR} $HOME/.bash_profile'
|
|
32
|
+
|
|
33
|
+
# Docker aliases
|
|
34
|
+
# ------------------------------------------------------------------------------
|
|
10
35
|
|
|
11
|
-
#
|
|
36
|
+
# Open Docker Compose file in default text editor
|
|
37
|
+
alias edit_docker_compose='${EDITOR} docker-compose.yml'
|
|
12
38
|
|
|
13
|
-
#
|
|
14
|
-
|
|
39
|
+
# General aliases
|
|
40
|
+
# ------------------------------------------------------------------------------
|
|
15
41
|
|
|
16
|
-
#
|
|
17
|
-
alias
|
|
42
|
+
# Open current directory in default text editor
|
|
43
|
+
alias edit_current_directory='${EDITOR} .'
|
|
18
44
|
|
|
19
|
-
#
|
|
20
|
-
|
|
45
|
+
# Git aliases
|
|
46
|
+
# ------------------------------------------------------------------------------
|
|
21
47
|
|
|
22
|
-
#
|
|
23
|
-
alias
|
|
48
|
+
# Open Git configuration file in default text editor
|
|
49
|
+
alias edit_git_config='${EDITOR} $HOME/.gitconfig'
|
|
24
50
|
|
|
25
|
-
#
|
|
26
|
-
alias
|
|
51
|
+
# Open Git ignore file in default text editor
|
|
52
|
+
alias edit_git_ignore='${EDITOR} $HOME/.gitignore'
|
|
27
53
|
|
|
28
|
-
#
|
|
29
|
-
|
|
54
|
+
# System config aliases
|
|
55
|
+
# ------------------------------------------------------------------------------
|
|
30
56
|
|
|
31
|
-
#
|
|
32
|
-
alias
|
|
57
|
+
# Open hosts file in default text editor
|
|
58
|
+
alias edit_hosts='${EDITOR} /etc/hosts'
|
|
33
59
|
|
|
34
|
-
#
|
|
35
|
-
alias
|
|
60
|
+
# Open Nginx configuration file in default text editor
|
|
61
|
+
alias edit_nginx_config='${EDITOR} /etc/nginx/nginx.conf'
|
|
36
62
|
|
|
37
|
-
#
|
|
38
|
-
alias
|
|
63
|
+
# Open SSH configuration file in default text editor
|
|
64
|
+
alias edit_ssh_config='${EDITOR} $HOME/.ssh/config'
|
|
39
65
|
|
|
40
|
-
#
|
|
41
|
-
alias
|
|
66
|
+
# Open Zsh configuration file in default text editor
|
|
67
|
+
alias edit_zshrc='${EDITOR} $HOME/.zshrc'
|
|
42
68
|
|
|
43
|
-
#
|
|
44
|
-
alias
|
|
69
|
+
# Open Zsh profile in default text editor
|
|
70
|
+
alias edit_zsh_profile='${EDITOR} $HOME/.zsh_profile'
|
|
45
71
|
|
|
46
|
-
#
|
|
47
|
-
|
|
72
|
+
# Add blank lines between groups
|
|
73
|
+
echo -e "\n\n"
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
<!-- markdownlint-disable MD033 MD041 -->
|
|
1
|
+
<!-- markdownlint-disable MD033 MD041 MD043 -->
|
|
2
2
|
|
|
3
|
-
<img
|
|
4
|
-
|
|
3
|
+
<img
|
|
4
|
+
src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
5
|
+
alt="dotfiles logo"
|
|
6
|
+
width="261"
|
|
7
|
+
align="right"
|
|
8
|
+
/>
|
|
5
9
|
|
|
6
10
|
<!-- markdownlint-enable MD033 MD041 -->
|
|
7
11
|
|
|
8
|
-
# Dotfiles (v0.2.
|
|
12
|
+
# Dotfiles (v0.2.468)
|
|
9
13
|
|
|
10
14
|
Simply designed to fit your shell life π
|
|
11
15
|
|
|
@@ -1,126 +1,139 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
#
|
|
5
|
-
# Copyright (c) 2015-2023. All rights reserved
|
|
6
|
-
# License: MIT
|
|
3
|
+
################################################################################
|
|
4
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π
|
|
7
5
|
# Script: default.aliases.sh
|
|
8
|
-
# Version: 0.2.
|
|
6
|
+
# Version: 0.2.468
|
|
7
|
+
# Author: @wwdseb
|
|
8
|
+
# Copyright (c) 2015-2024. All rights reserved
|
|
9
|
+
# Description: Script containing default shell aliases
|
|
9
10
|
# Website: https://dotfiles.io
|
|
11
|
+
# License: MIT
|
|
12
|
+
################################################################################
|
|
10
13
|
|
|
11
|
-
#
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
#
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
#
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
#
|
|
22
|
-
alias h='history'
|
|
14
|
+
# Function: set_default_aliases
|
|
15
|
+
#
|
|
16
|
+
# Description:
|
|
17
|
+
# Sets default shell aliases for enhanced shell usage.
|
|
18
|
+
#
|
|
19
|
+
# Arguments:
|
|
20
|
+
# None
|
|
21
|
+
#
|
|
22
|
+
# Notes:
|
|
23
|
+
# - Some aliases are designed for enhanced shell navigation and utility.
|
|
24
|
+
# - Ensure to validate that all aliases work as expected in the bash shell.
|
|
23
25
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
set_default_aliases() {
|
|
27
|
+
fc -W
|
|
26
28
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
## General aliases
|
|
30
|
+
# Shortcut for the `clear` command.
|
|
31
|
+
alias c="clear"
|
|
29
32
|
|
|
30
|
-
#
|
|
31
|
-
alias
|
|
33
|
+
# Display the current date and time.
|
|
34
|
+
alias da='date "+%Y-%m-%d %A %T %Z"'
|
|
32
35
|
|
|
33
|
-
#
|
|
34
|
-
|
|
35
|
-
alias t='tail -f'
|
|
36
|
+
# Shortcut for `pwd` which returns working directory name.
|
|
37
|
+
alias p='pwd'
|
|
36
38
|
|
|
37
|
-
#
|
|
38
|
-
alias
|
|
39
|
+
# Display the $PATH variable on newlines.
|
|
40
|
+
alias path='echo ${PATH//:/\\n}'
|
|
39
41
|
|
|
40
|
-
|
|
42
|
+
# Reload the shell.
|
|
43
|
+
alias r='reload'
|
|
41
44
|
|
|
42
|
-
#
|
|
43
|
-
|
|
45
|
+
# Prints the last 10 lines of a text or log file, and then waits for new
|
|
46
|
+
# additions to the file to print it in real time.
|
|
47
|
+
alias t='tail -f'
|
|
44
48
|
|
|
45
|
-
#
|
|
46
|
-
alias
|
|
49
|
+
# Show the current week number.
|
|
50
|
+
alias wk='date +%V'
|
|
47
51
|
|
|
48
|
-
|
|
49
|
-
|
|
52
|
+
## Exit/shutdown aliases
|
|
53
|
+
# Shortcut for the `exit` command.
|
|
54
|
+
alias ':q'='quit'
|
|
50
55
|
|
|
51
|
-
# Shortcut for the `exit` command.
|
|
52
|
-
alias
|
|
56
|
+
# Shortcut for the `exit` command.
|
|
57
|
+
alias bye='quit'
|
|
53
58
|
|
|
54
|
-
# Shortcut for the `exit` command.
|
|
55
|
-
alias
|
|
59
|
+
# Shortcut for the `exit` command.
|
|
60
|
+
alias q='quit'
|
|
56
61
|
|
|
57
|
-
#
|
|
58
|
-
alias
|
|
62
|
+
# Shortcut for the `exit` command.
|
|
63
|
+
alias x='quit'
|
|
59
64
|
|
|
60
|
-
#
|
|
61
|
-
alias
|
|
65
|
+
# Shortcut for the `exit` command.
|
|
66
|
+
alias quit='exit'
|
|
62
67
|
|
|
63
|
-
#
|
|
64
|
-
alias
|
|
68
|
+
# Shutdown the system.
|
|
69
|
+
alias halt='sudo /sbin/halt'
|
|
65
70
|
|
|
66
|
-
|
|
71
|
+
# Alias to list recent commands
|
|
72
|
+
alias h='dotfiles_history'
|
|
67
73
|
|
|
68
|
-
#
|
|
69
|
-
|
|
70
|
-
alias ifconfig='sudo ifconfig'
|
|
74
|
+
# Alias to view history
|
|
75
|
+
alias history='dotfiles_history'
|
|
71
76
|
|
|
72
|
-
#
|
|
73
|
-
alias
|
|
77
|
+
# Poweroff the system.
|
|
78
|
+
alias poweroff='sudo /sbin/shutdown'
|
|
74
79
|
|
|
75
|
-
#
|
|
76
|
-
alias
|
|
80
|
+
# Reboot the system.
|
|
81
|
+
alias reboot='sudo /sbin/reboot'
|
|
77
82
|
|
|
78
|
-
|
|
79
|
-
|
|
83
|
+
## Network aliases
|
|
84
|
+
# Append sudo to ifconfig (configure network interface parameters)
|
|
85
|
+
# command.
|
|
86
|
+
alias ifconfig='sudo ifconfig'
|
|
80
87
|
|
|
81
|
-
#
|
|
82
|
-
alias
|
|
88
|
+
# Get network interface parameters for en0.
|
|
89
|
+
alias ipinfo='ipconfig getpacket en0'
|
|
83
90
|
|
|
84
|
-
#
|
|
85
|
-
alias
|
|
91
|
+
# Show only active network listeners.
|
|
92
|
+
alias nls='sudo lsof -i -P | grep LISTEN'
|
|
86
93
|
|
|
87
|
-
#
|
|
88
|
-
alias
|
|
94
|
+
# List of open ports.
|
|
95
|
+
alias op='sudo lsof -i -P'
|
|
89
96
|
|
|
90
|
-
|
|
97
|
+
# Limit Ping to 5 ECHO_REQUEST packets.
|
|
98
|
+
alias ping='ping -c 5'
|
|
91
99
|
|
|
92
|
-
#
|
|
93
|
-
alias
|
|
100
|
+
# List all listening ports.
|
|
101
|
+
alias ports='netstat -tulan'
|
|
94
102
|
|
|
95
|
-
#
|
|
96
|
-
|
|
97
|
-
alias top='sudo btop'
|
|
103
|
+
# Start a simple HTTP server to serve the current directory on port 8000.
|
|
104
|
+
alias srv='python3 -m http.server 8000 --bind 127.0.0.1'
|
|
98
105
|
|
|
99
|
-
|
|
100
|
-
|
|
106
|
+
## System monitoring aliases
|
|
107
|
+
# Allows the user to interactively monitor the system's vital resources
|
|
108
|
+
# or server's processes in real time.
|
|
109
|
+
alias top='sudo btop'
|
|
101
110
|
|
|
102
|
-
|
|
111
|
+
# Remove all log files in /private/var/log/asl/.
|
|
112
|
+
alias spd='sudo rm -rf /private/var/log/asl/*'
|
|
103
113
|
|
|
104
|
-
|
|
105
|
-
|
|
114
|
+
## Utility aliases
|
|
115
|
+
# Count the number of files in the current directory.
|
|
116
|
+
alias ctf='echo $(ls -1 | wc -l)'
|
|
106
117
|
|
|
107
|
-
# Use compression when transferring data.
|
|
108
|
-
alias curl='curl --compressed'
|
|
118
|
+
# Use compression when transferring data.
|
|
119
|
+
alias curl='curl --compressed'
|
|
109
120
|
|
|
110
|
-
# Quickly search for file.
|
|
111
|
-
alias qfind='find . -name '
|
|
121
|
+
# Quickly search for file.
|
|
122
|
+
alias qfind='find . -name '
|
|
112
123
|
|
|
113
|
-
# Reload the shell.
|
|
114
|
-
alias reload='exec $SHELL -l'
|
|
124
|
+
# Reload the shell.
|
|
125
|
+
alias reload='exec $SHELL -l'
|
|
115
126
|
|
|
116
|
-
# Get the weather.
|
|
117
|
-
alias wth='curl -s "wttr.in/?format=3"'
|
|
127
|
+
# Get the weather.
|
|
128
|
+
alias wth='curl -s "wttr.in/?format=3"'
|
|
118
129
|
|
|
119
|
-
|
|
130
|
+
## File system navigation aliases
|
|
131
|
+
# Clear the terminal screen and print the contents of the current
|
|
132
|
+
# directory.
|
|
133
|
+
alias clc='clear && ls -a'
|
|
120
134
|
|
|
121
|
-
# Clear the terminal screen and print
|
|
122
|
-
|
|
123
|
-
|
|
135
|
+
# Clear the terminal screen and print
|
|
136
|
+
alias clp='pwd'
|
|
137
|
+
}
|
|
124
138
|
|
|
125
|
-
|
|
126
|
-
alias clp='pwd'
|
|
139
|
+
set_default_aliases
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
<!-- markdownlint-disable MD033 MD041 -->
|
|
1
|
+
<!-- markdownlint-disable MD033 MD041 MD043 -->
|
|
2
2
|
|
|
3
|
-
<img
|
|
4
|
-
|
|
3
|
+
<img
|
|
4
|
+
src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
5
|
+
alt="dotfiles logo"
|
|
6
|
+
width="261"
|
|
7
|
+
align="right"
|
|
8
|
+
/>
|
|
5
9
|
|
|
6
10
|
<!-- markdownlint-enable MD033 MD041 -->
|
|
7
11
|
|
|
8
|
-
# Dotfiles (v0.2.
|
|
12
|
+
# Dotfiles (v0.2.468)
|
|
9
13
|
|
|
10
14
|
Simply designed to fit your shell life π
|
|
11
15
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.468) - <https://dotfiles.io>
|
|
4
4
|
# Made with β₯ in London, UK by @wwdseb
|
|
5
|
-
# Copyright (c) 2015-
|
|
5
|
+
# Copyright (c) 2015-2024. All rights reserved
|
|
6
6
|
# License: MIT
|
|
7
7
|
# Script: dig.aliases.sh
|
|
8
|
-
# Version: 0.2.
|
|
8
|
+
# Version: 0.2.468
|
|
9
9
|
# Website: https://dotfiles.io
|
|
10
10
|
|
|
11
11
|
# π
³π
Έπ
Ά π
°π
»π
Έπ
°ππ
΄π
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
<!-- markdownlint-disable MD033 MD041 -->
|
|
1
|
+
<!-- markdownlint-disable MD033 MD041 MD043 -->
|
|
2
2
|
|
|
3
|
-
<img
|
|
4
|
-
|
|
3
|
+
<img
|
|
4
|
+
src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
5
|
+
alt="dotfiles logo"
|
|
6
|
+
width="261"
|
|
7
|
+
align="right"
|
|
8
|
+
/>
|
|
5
9
|
|
|
6
10
|
<!-- markdownlint-enable MD033 MD041 -->
|
|
7
11
|
|
|
8
|
-
# Dotfiles (v0.2.
|
|
12
|
+
# Dotfiles (v0.2.468)
|
|
9
13
|
|
|
10
14
|
Simply designed to fit your shell life π
|
|
11
15
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
3
|
# Author: Sebastien Rousseau
|
|
4
|
-
# Copyright (c) 2015-
|
|
4
|
+
# Copyright (c) 2015-2024. All rights reserved
|
|
5
5
|
# Description: Sets Disk Usage Aliases
|
|
6
6
|
# License: MIT
|
|
7
7
|
# Script: du.aliases.sh
|
|
8
|
-
# Version: 0.2.
|
|
8
|
+
# Version: 0.2.468
|
|
9
9
|
# Website: https://dotfiles.io
|
|
10
10
|
|
|
11
11
|
# π
³π
Έππ
Ί πππ
°π
Άπ
΄ π
°π
»π
Έπ
°ππ
΄π
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
<!-- markdownlint-disable MD033 MD041 -->
|
|
1
|
+
<!-- markdownlint-disable MD033 MD041 MD043 -->
|
|
2
2
|
|
|
3
|
-
<img
|
|
4
|
-
|
|
3
|
+
<img
|
|
4
|
+
src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
5
|
+
alt="dotfiles logo"
|
|
6
|
+
width="261"
|
|
7
|
+
align="right"
|
|
8
|
+
/>
|
|
5
9
|
|
|
6
10
|
<!-- markdownlint-enable MD033 MD041 -->
|
|
7
11
|
|
|
8
|
-
# Dotfiles (v0.2.
|
|
12
|
+
# Dotfiles (v0.2.468)
|
|
9
13
|
|
|
10
14
|
Simply designed to fit your shell life π
|
|
11
15
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.468) - <https://dotfiles.io>
|
|
4
4
|
# Made with β₯ in London, UK by @wwdseb
|
|
5
|
-
# Copyright (c) 2015-
|
|
5
|
+
# Copyright (c) 2015-2024. All rights reserved
|
|
6
6
|
# License: MIT
|
|
7
7
|
# Script: editor.aliases.sh
|
|
8
|
-
# Version: 0.2.
|
|
8
|
+
# Version: 0.2.468
|
|
9
9
|
# Website: https://dotfiles.io
|
|
10
10
|
|
|
11
11
|
# π
΄π
³π
Έππ
Ύπ π
°π
»π
Έπ
°ππ
΄π
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
<!-- markdownlint-disable MD033 MD041 -->
|
|
1
|
+
<!-- markdownlint-disable MD033 MD041 MD043 -->
|
|
2
2
|
|
|
3
|
-
<img
|
|
4
|
-
|
|
3
|
+
<img
|
|
4
|
+
src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
5
|
+
alt="dotfiles logo"
|
|
6
|
+
width="261"
|
|
7
|
+
align="right"
|
|
8
|
+
/>
|
|
5
9
|
|
|
6
10
|
<!-- markdownlint-enable MD033 MD041 -->
|
|
7
11
|
|
|
8
|
-
# Dotfiles (v0.2.
|
|
12
|
+
# Dotfiles (v0.2.468)
|
|
9
13
|
|
|
10
14
|
Simply designed to fit your shell life π
|
|
11
15
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.468) - <https://dotfiles.io>
|
|
4
4
|
# Made with β₯ in London, UK by @wwdseb
|
|
5
|
-
# Copyright (c) 2015-
|
|
5
|
+
# Copyright (c) 2015-2024. All rights reserved
|
|
6
6
|
# License: MIT
|
|
7
7
|
# Script: find.aliases.sh
|
|
8
|
-
# Version: 0.2.
|
|
8
|
+
# Version: 0.2.468
|
|
9
9
|
# Website: https://dotfiles.io
|
|
10
10
|
|
|
11
11
|
# π
΅π
Έπ
½π
³ π
°π
»π
Έπ
°ππ
΄π
|