@sebastienrousseau/dotfiles 0.2.468 β 0.2.469
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 +5 -5
- package/dist/Makefile +126 -43
- 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/filesizes.txt +146 -144
- package/dist/lib/README.md +79 -5
- package/dist/lib/aliases/README.md +44 -42
- package/dist/lib/aliases/archives/README.md +120 -34
- package/dist/lib/aliases/archives/archives.aliases.sh +106 -149
- package/dist/lib/aliases/cd/README.md +119 -38
- package/dist/lib/aliases/cd/cd.aliases.sh +37 -59
- package/dist/lib/aliases/chmod/README.md +146 -95
- package/dist/lib/aliases/chmod/chmod.aliases.sh +71 -55
- package/dist/lib/aliases/clear/README.md +2 -2
- package/dist/lib/aliases/clear/clear.aliases.sh +4 -4
- package/dist/lib/aliases/configuration/README.md +2 -2
- package/dist/lib/aliases/configuration/configuration.aliases.sh +3 -6
- package/dist/lib/aliases/default/README.md +2 -2
- package/dist/lib/aliases/default/default.aliases.sh +3 -3
- package/dist/lib/aliases/dig/README.md +2 -2
- package/dist/lib/aliases/dig/dig.aliases.sh +4 -4
- package/dist/lib/aliases/disk-usage/README.md +2 -2
- package/dist/lib/aliases/disk-usage/du.aliases.sh +2 -2
- package/dist/lib/aliases/editor/README.md +2 -2
- package/dist/lib/aliases/editor/editor.aliases.sh +4 -4
- package/dist/lib/aliases/find/README.md +2 -2
- package/dist/lib/aliases/find/find.aliases.sh +4 -4
- package/dist/lib/aliases/gcloud/README.md +2 -2
- package/dist/lib/aliases/gcloud/gcloud.aliases.sh +4 -4
- package/dist/lib/aliases/git/README.md +2 -2
- package/dist/lib/aliases/git/git.aliases.sh +3 -3
- package/dist/lib/aliases/gnu/README.md +2 -2
- package/dist/lib/aliases/gnu/gnucoreutils-aliases.sh +2 -2
- package/dist/lib/aliases/heroku/README.md +2 -2
- package/dist/lib/aliases/heroku/heroku.aliases.sh +3 -3
- package/dist/lib/aliases/interactive/README.md +2 -2
- package/dist/lib/aliases/interactive/interactive.aliases.sh +3 -3
- package/dist/lib/aliases/list/README.md +112 -23
- package/dist/lib/aliases/list/list.aliases.sh +130 -84
- package/dist/lib/aliases/macOS/README.md +2 -2
- package/dist/lib/aliases/macOS/macos.aliases.sh +3 -3
- package/dist/lib/aliases/make/README.md +2 -2
- package/dist/lib/aliases/make/make.aliases.sh +3 -3
- package/dist/lib/aliases/mkdir/README.md +2 -2
- package/dist/lib/aliases/mkdir/mkdir.aliases.sh +3 -3
- package/dist/lib/aliases/npm/README.md +2 -2
- package/dist/lib/aliases/npm/npm.aliases.sh +3 -3
- package/dist/lib/aliases/permission/README.md +2 -2
- package/dist/lib/aliases/permission/permission.aliases.sh +3 -3
- package/dist/lib/aliases/pnpm/README.md +2 -2
- package/dist/lib/aliases/pnpm/pnpm.aliases.sh +3 -3
- package/dist/lib/aliases/ps/README.md +2 -2
- package/dist/lib/aliases/ps/ps.aliases.sh +3 -3
- package/dist/lib/aliases/python/python.aliases.sh +141 -0
- package/dist/lib/aliases/rsync/README.md +2 -2
- package/dist/lib/aliases/rsync/rsync.aliases.sh +3 -3
- package/dist/lib/aliases/rust/README.md +165 -44
- package/dist/lib/aliases/rust/rust.aliases.sh +109 -117
- package/dist/lib/aliases/subversion/README.md +2 -2
- package/dist/lib/aliases/subversion/subversion.aliases.sh +3 -3
- package/dist/lib/aliases/sudo/README.md +2 -2
- package/dist/lib/aliases/sudo/sudo.aliases.sh +3 -3
- package/dist/lib/aliases/tmux/README.md +2 -2
- package/dist/lib/aliases/tmux/tmux.aliases.sh +3 -3
- package/dist/lib/aliases/update/README.md +2 -2
- package/dist/lib/aliases/update/update.aliases.sh +307 -66
- package/dist/lib/aliases/uuid/README.md +2 -2
- package/dist/lib/aliases/uuid/uuid.aliases.sh +3 -3
- package/dist/lib/aliases/wget/README.md +2 -2
- package/dist/lib/aliases/wget/wget.aliases.sh +3 -3
- package/dist/lib/aliases.sh +2 -2
- package/dist/lib/configurations/README.md +2 -2
- package/dist/lib/configurations/bash/bashrc +163 -35
- package/dist/lib/configurations/curl/curlrc +3 -6
- package/dist/lib/configurations/default/color.sh +3 -3
- package/dist/lib/configurations/default/constants.sh +4 -4
- package/dist/lib/configurations/default/editor.sh +3 -3
- package/dist/lib/configurations/default/prompt.sh +20 -11
- package/dist/lib/configurations/input/inputrc +3 -3
- package/dist/lib/configurations/nano/nanorc +3 -3
- package/dist/lib/configurations/profile/profile +3 -3
- package/dist/lib/configurations/prompt/prompt.sh +81 -0
- package/dist/lib/configurations/tmux/default +3 -3
- package/dist/lib/configurations/tmux/display +3 -3
- package/dist/lib/configurations/tmux/linux +3 -3
- package/dist/lib/configurations/tmux/navigation +3 -3
- package/dist/lib/configurations/tmux/panes +3 -3
- package/dist/lib/configurations/tmux/theme +4 -4
- package/dist/lib/configurations/tmux/tmux +3 -3
- package/dist/lib/configurations/vim/vimrc +191 -71
- package/dist/lib/configurations/wget/wgetrc +3 -3
- package/dist/lib/configurations/zsh/zshrc +3 -4
- package/dist/lib/configurations.sh +19 -7
- package/dist/lib/functions/README.md +68 -54
- package/dist/lib/functions/apihealth.sh +277 -0
- package/dist/lib/functions/apilatency.sh +157 -0
- package/dist/lib/functions/apiload.sh +165 -0
- package/dist/lib/functions/backup.sh +143 -0
- package/dist/lib/functions/cdls.sh +52 -6
- package/dist/lib/functions/curlheader.sh +66 -10
- package/dist/lib/functions/curlstatus.sh +64 -7
- package/dist/lib/functions/curltime.sh +56 -14
- package/dist/lib/functions/encode64.sh +87 -7
- package/dist/lib/functions/environment.sh +65 -25
- package/dist/lib/functions/extract.sh +79 -27
- package/dist/lib/functions/freespace.sh +55 -9
- package/dist/lib/functions/genpwd.sh +93 -29
- package/dist/lib/functions/goto.sh +59 -8
- package/dist/lib/functions/hexdump.sh +96 -0
- package/dist/lib/functions/hiddenfiles.sh +77 -0
- package/dist/lib/functions/hostinfo.sh +92 -21
- package/dist/lib/functions/hstats.sh +69 -5
- package/dist/lib/functions/httpdebug.sh +109 -5
- package/dist/lib/functions/kebabcase.sh +61 -0
- package/dist/lib/functions/keygen.sh +188 -25
- package/dist/lib/functions/last.sh +106 -5
- package/dist/lib/functions/logout.sh +114 -6
- package/dist/lib/functions/lowercase.sh +49 -17
- package/dist/lib/functions/matrix.sh +205 -30
- package/dist/lib/functions/mount_read_only.sh +3 -3
- package/dist/lib/functions/myproc.sh +3 -3
- package/dist/lib/functions/prependpath.sh +3 -3
- package/dist/lib/functions/ql.sh +3 -3
- package/dist/lib/functions/rd.sh +3 -3
- package/dist/lib/functions/remove_disk.sh +3 -3
- package/dist/lib/functions/ren.sh +68 -8
- package/dist/lib/functions/sentencecase.sh +63 -0
- package/dist/lib/functions/showhiddenfiles.sh +3 -3
- package/dist/lib/functions/size.sh +6 -5
- package/dist/lib/functions/snakecase.sh +61 -0
- package/dist/lib/functions/stopwatch.sh +3 -3
- package/dist/lib/functions/sysinfo.sh +145 -0
- package/dist/lib/functions/titlecase.sh +65 -0
- package/dist/lib/functions/uppercase.sh +51 -19
- package/dist/lib/functions/view-source.sh +3 -3
- package/dist/lib/functions/vscode.sh +3 -3
- package/dist/lib/functions/whoisport.sh +3 -3
- package/dist/lib/functions/zipf.sh +3 -3
- package/dist/lib/functions.sh +21 -7
- package/dist/lib/history.sh +36 -88
- package/dist/lib/paths/README.md +52 -0
- package/dist/lib/paths/custom.paths.sh +40 -0
- package/dist/lib/paths/default.paths.sh +37 -0
- package/dist/lib/paths.sh +27 -14
- package/dist/scripts/backup.sh +3 -3
- package/dist/scripts/banner.sh +3 -3
- package/dist/scripts/build.sh +3 -3
- package/dist/scripts/clean.sh +3 -3
- package/dist/scripts/compile.sh +3 -3
- package/dist/scripts/copy.sh +3 -3
- package/dist/scripts/dotfiles.sh +3 -3
- package/dist/scripts/download.sh +3 -3
- package/dist/scripts/help.sh +3 -3
- package/dist/scripts/ssh.sh +3 -3
- package/dist/scripts/unpack.sh +3 -3
- package/package.json +10 -10
- package/dist/lib/aliases/jekyll/README.md +0 -41
- package/dist/lib/aliases/jekyll/jekyll.aliases.sh +0 -54
- package/dist/lib/functions/filehead.sh +0 -4
- package/dist/lib/functions/hidehiddenfiles.sh +0 -14
- package/dist/lib/paths/ant/ant.paths.sh +0 -15
- package/dist/lib/paths/default/default.paths.sh +0 -19
- package/dist/lib/paths/homebrew/homebrew.paths.sh +0 -27
- package/dist/lib/paths/java/java.paths.sh +0 -19
- package/dist/lib/paths/maven/maven.paths.sh +0 -18
- package/dist/lib/paths/node/node.paths.sh +0 -15
- package/dist/lib/paths/nvm/nvm.paths.sh +0 -23
- package/dist/lib/paths/pnpm/pnpm.paths.sh +0 -15
- package/dist/lib/paths/python/python.paths.sh +0 -36
- package/dist/lib/paths/ruby/ruby.paths.sh +0 -25
- package/dist/lib/paths/tmux/tmux.paths.sh +0 -12
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
################################################################################
|
|
4
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π - Python Development Environment Configuration
|
|
5
|
+
# Made with β₯ in London, UK by Sebastien Rousseau
|
|
6
|
+
# Copyright (c) 2015-2025. All rights reserved
|
|
7
|
+
# License: MIT
|
|
8
|
+
#
|
|
9
|
+
# Description:
|
|
10
|
+
# Configuration file for Python development environment, including aliases,
|
|
11
|
+
# environment variables, and utility functions for common Python tasks.
|
|
12
|
+
#
|
|
13
|
+
################################################################################
|
|
14
|
+
|
|
15
|
+
# Environment Variables
|
|
16
|
+
export PYTHONIOENCODING='UTF-8' # Set UTF-8 encoding for Python I/O
|
|
17
|
+
export PYTHONUTF8=1 # Enable UTF-8 mode for Python
|
|
18
|
+
export PYTHONDONTWRITEBYTECODE=1 # Prevent Python from writing .pyc files
|
|
19
|
+
export PYTHONUNBUFFERED=1 # Force Python output to be unbuffered
|
|
20
|
+
export PYENV_VIRTUALENV_DISABLE_PROMPT=1 # Disable virtualenv prompt modification
|
|
21
|
+
|
|
22
|
+
# Frameworks and Applications
|
|
23
|
+
# Add Python 3.12 or the Homebrew Python to PATH
|
|
24
|
+
if command -v /opt/homebrew/bin/python3 >/dev/null; then
|
|
25
|
+
export PATH="/opt/homebrew/bin:${PATH}"
|
|
26
|
+
elif command -v /Library/Frameworks/Python.framework/Versions/3.12/bin/python3 >/dev/null; then
|
|
27
|
+
export PATH="/Library/Frameworks/Python.framework/Versions/3.12/bin:${PATH}"
|
|
28
|
+
fi
|
|
29
|
+
|
|
30
|
+
if command -v 'python3' >/dev/null; then
|
|
31
|
+
# Python Version Management
|
|
32
|
+
python() {
|
|
33
|
+
command python3 "$@"
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
pip() {
|
|
37
|
+
command pip3 "$@"
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
# Basic Python Commands
|
|
41
|
+
alias py='python' # Quick Python access
|
|
42
|
+
alias ipy='ipython' # Interactive Python shell
|
|
43
|
+
alias pyv='python --version' # Show Python version
|
|
44
|
+
alias pydoc='python -m pydoc' # Python documentation
|
|
45
|
+
|
|
46
|
+
# Package Management
|
|
47
|
+
alias pipi='pip install' # Install packages
|
|
48
|
+
alias pipl='pip list' # List installed packages
|
|
49
|
+
alias pipup='pip install --upgrade' # Upgrade packages
|
|
50
|
+
alias pipun='pip uninstall -y' # Uninstall packages
|
|
51
|
+
alias pipf='pip freeze' # Show frozen requirements
|
|
52
|
+
alias pipr='pip install -r' # Install from requirements
|
|
53
|
+
alias pipout='pip freeze > requirements.txt' # Save requirements
|
|
54
|
+
|
|
55
|
+
# Development Tools
|
|
56
|
+
alias pep8='autopep8' # Code formatting
|
|
57
|
+
alias lint='pylint' # Code linting
|
|
58
|
+
alias black='python -m black' # Code formatting with black
|
|
59
|
+
alias mypy='python -m mypy' # Static type checking
|
|
60
|
+
alias ruff='python -m ruff' # Fast Python linter
|
|
61
|
+
|
|
62
|
+
# Testing
|
|
63
|
+
alias pytest='python -m pytest' # Run tests
|
|
64
|
+
alias pytestv='pytest -v' # Verbose test output
|
|
65
|
+
alias pytestc='pytest --cov' # Test coverage
|
|
66
|
+
alias unittest='python -m unittest' # Run unittest
|
|
67
|
+
|
|
68
|
+
# Virtual Environment Management
|
|
69
|
+
alias venv='python -m venv' # Create virtual environment
|
|
70
|
+
alias mkvenv='python -m venv ./venv' # Create venv in current directory
|
|
71
|
+
alias venva='source ./venv/bin/activate' # Activate venv
|
|
72
|
+
alias deact='deactivate' # Deactivate venv
|
|
73
|
+
alias rmvenv='rm -rf ./venv' # Remove venv
|
|
74
|
+
|
|
75
|
+
# Cleanup
|
|
76
|
+
alias rmpyc="find . -type f -name '*.pyc' -delete" # Remove .pyc files
|
|
77
|
+
alias rmpyo="find . -type f -name '*.pyo' -delete" # Remove .pyo files
|
|
78
|
+
alias rmpyall="find . -type f -name '*.py[cod]' -delete && find . -type d -name __pycache__ -delete" # Remove all
|
|
79
|
+
|
|
80
|
+
# Utility Functions
|
|
81
|
+
python_speed() {
|
|
82
|
+
if [ $# -eq 0 ]; then
|
|
83
|
+
echo "Usage: python_speed 'Python code here'"
|
|
84
|
+
return 1
|
|
85
|
+
fi
|
|
86
|
+
python -m timeit -s "$1"
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
python_profile() {
|
|
90
|
+
if [ $# -eq 0 ]; then
|
|
91
|
+
echo "Usage: python_profile script.py"
|
|
92
|
+
return 1
|
|
93
|
+
fi
|
|
94
|
+
python -m cProfile "$1"
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
python_debug() {
|
|
98
|
+
if [ $# -eq 0 ]; then
|
|
99
|
+
echo "Usage: python_debug script.py"
|
|
100
|
+
return 1
|
|
101
|
+
fi
|
|
102
|
+
python -m pdb "$1"
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
python_serve() {
|
|
106
|
+
local port="${1:-8000}"
|
|
107
|
+
python -m http.server "$port"
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
# Project Templates
|
|
111
|
+
python_new_project() {
|
|
112
|
+
if [ $# -eq 0 ]; then
|
|
113
|
+
echo "Usage: python_new_project project_name"
|
|
114
|
+
return 1
|
|
115
|
+
fi
|
|
116
|
+
local project_name="$1"
|
|
117
|
+
mkdir -p "$project_name"/{src,tests,docs}
|
|
118
|
+
touch "$project_name/README.md"
|
|
119
|
+
touch "$project_name/requirements.txt"
|
|
120
|
+
touch "$project_name/setup.py"
|
|
121
|
+
touch "$project_name/src/__init__.py"
|
|
122
|
+
touch "$project_name/tests/__init__.py"
|
|
123
|
+
echo "Created new Python project structure in ./$project_name"
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
# Environment Information
|
|
127
|
+
python_info() {
|
|
128
|
+
echo "Python Version:"
|
|
129
|
+
python --version
|
|
130
|
+
echo -e "\nPip Version:"
|
|
131
|
+
pip --version
|
|
132
|
+
echo -e "\nVirtual Environment:"
|
|
133
|
+
if [ -n "$VIRTUAL_ENV" ]; then
|
|
134
|
+
echo "Active: $VIRTUAL_ENV"
|
|
135
|
+
else
|
|
136
|
+
echo "None active"
|
|
137
|
+
fi
|
|
138
|
+
echo -e "\nInstalled Packages:"
|
|
139
|
+
pip list
|
|
140
|
+
}
|
|
141
|
+
fi
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
<img
|
|
4
4
|
src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
5
5
|
alt="dotfiles logo"
|
|
6
|
-
width="
|
|
6
|
+
width="66"
|
|
7
7
|
align="right"
|
|
8
8
|
/>
|
|
9
9
|
|
|
10
10
|
<!-- markdownlint-enable MD033 MD041 -->
|
|
11
11
|
|
|
12
|
-
# Dotfiles (v0.2.
|
|
12
|
+
# Dotfiles (v0.2.469)
|
|
13
13
|
|
|
14
14
|
Simply designed to fit your shell life π
|
|
15
15
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
4
|
-
# Made with β₯ in London, UK by
|
|
5
|
-
# Copyright (c) 2015-
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.469) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by Sebastien Rousseau
|
|
5
|
+
# Copyright (c) 2015-2025. All rights reserved
|
|
6
6
|
# License: MIT
|
|
7
7
|
|
|
8
8
|
# ππππ
½π
² π
°π
»π
Έπ
°ππ
΄π
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
<!-- markdownlint-disable MD033 MD041 MD043 -->
|
|
2
|
-
|
|
3
2
|
<img
|
|
4
3
|
src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
5
4
|
alt="dotfiles logo"
|
|
6
|
-
width="
|
|
5
|
+
width="66"
|
|
7
6
|
align="right"
|
|
8
7
|
/>
|
|
9
|
-
|
|
10
8
|
<!-- markdownlint-enable MD033 MD041 -->
|
|
11
9
|
|
|
12
|
-
# Dotfiles (v0.2.
|
|
10
|
+
# Dotfiles (v0.2.469)
|
|
13
11
|
|
|
14
12
|
Simply designed to fit your shell life π
|
|
15
13
|
|
|
@@ -17,45 +15,168 @@ Simply designed to fit your shell life π
|
|
|
17
15
|
|
|
18
16
|
## ππππππ
Ώ π
°π
½π
³ π
²π
°ππ
Άπ
Ύ π
°π
»π
Έπ
°ππ
΄π
|
|
19
17
|
|
|
20
|
-
This code provides a set of aliases for
|
|
21
|
-
commands.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
- `
|
|
28
|
-
- `
|
|
29
|
-
- `
|
|
30
|
-
- `
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
- `
|
|
35
|
-
- `
|
|
36
|
-
- `
|
|
37
|
-
- `
|
|
38
|
-
- `
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
- `
|
|
43
|
-
- `
|
|
44
|
-
- `
|
|
45
|
-
- `
|
|
46
|
-
- `
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
- `
|
|
51
|
-
- `
|
|
52
|
-
- `
|
|
53
|
-
- `
|
|
54
|
-
- `
|
|
55
|
-
- `
|
|
56
|
-
- `
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
18
|
+
This code provides a comprehensive set of aliases for Rust development
|
|
19
|
+
using `cargo` and `rustup` commands.
|
|
20
|
+
|
|
21
|
+
### Cargo Aliases
|
|
22
|
+
|
|
23
|
+
#### Basic Commands
|
|
24
|
+
|
|
25
|
+
- `cg` - Cargo shortcut
|
|
26
|
+
- `cgn` - Create new binary project
|
|
27
|
+
- `cgni` - Create new library project
|
|
28
|
+
- `cginit` - Initialize project in current directory
|
|
29
|
+
|
|
30
|
+
#### Build and Run
|
|
31
|
+
|
|
32
|
+
- `cgb` - Build debug
|
|
33
|
+
- `cgbr` - Build release
|
|
34
|
+
- `cgr` - Run debug
|
|
35
|
+
- `cgrr` - Run release
|
|
36
|
+
- `cgw` - Watch and rebuild
|
|
37
|
+
|
|
38
|
+
#### Testing and Benchmarking
|
|
39
|
+
|
|
40
|
+
- `cgt` - Run tests
|
|
41
|
+
- `cgtr` - Run tests in release mode
|
|
42
|
+
- `cgbh` - Run benchmarks
|
|
43
|
+
- `cgta` - Test all targets
|
|
44
|
+
- `cgtt` - Single threaded tests
|
|
45
|
+
|
|
46
|
+
#### Code Quality
|
|
47
|
+
|
|
48
|
+
- `cgc` - Check compilation
|
|
49
|
+
- `cgcl` - Clean build artifacts
|
|
50
|
+
- `cgcy` - Run clippy lints
|
|
51
|
+
- `cgf` - Format code
|
|
52
|
+
- `cgfa` - Format all code
|
|
53
|
+
- `cgfx` - Auto-fix code issues
|
|
54
|
+
- `cgaud` - Security vulnerabilities check
|
|
55
|
+
|
|
56
|
+
#### Documentation
|
|
57
|
+
|
|
58
|
+
- `cgd` - Build and open documentation
|
|
59
|
+
- `cgdr` - Build release documentation
|
|
60
|
+
- `cgdo` - Document private items
|
|
61
|
+
|
|
62
|
+
#### Dependencies
|
|
63
|
+
|
|
64
|
+
- `cga` - Add dependency
|
|
65
|
+
- `cgad` - Add dev dependency
|
|
66
|
+
- `cgu` - Update dependencies
|
|
67
|
+
- `cgo` - Check outdated dependencies
|
|
68
|
+
- `cgv` - Vendor dependencies
|
|
69
|
+
- `cgtree` - Display dependency tree
|
|
70
|
+
|
|
71
|
+
#### Cross Compilation
|
|
72
|
+
|
|
73
|
+
- `cgx` - Build using Zig
|
|
74
|
+
- `cgxw` - Cross compilation
|
|
75
|
+
- `cgxt` - Target specific platform
|
|
76
|
+
|
|
77
|
+
#### Analysis and Profiling
|
|
78
|
+
|
|
79
|
+
- `cgfl` - Generate flamegraph
|
|
80
|
+
- `cgbl` - Binary size analysis
|
|
81
|
+
- `cgl` - Code coverage
|
|
82
|
+
- `cgm` - Module structure
|
|
83
|
+
- `cgex` - Expand macros
|
|
84
|
+
|
|
85
|
+
#### Package Management
|
|
86
|
+
|
|
87
|
+
- `cgi` - Install binary
|
|
88
|
+
- `cgun` - Uninstall binary
|
|
89
|
+
- `cgp` - Publish to crates.io
|
|
90
|
+
- `cgs` - Search crates.io
|
|
91
|
+
- `cgcp` - Create release package
|
|
92
|
+
|
|
93
|
+
#### Advanced Build
|
|
94
|
+
|
|
95
|
+
- `cgba` - Build all targets
|
|
96
|
+
- `cgbt` - Build with all features
|
|
97
|
+
- `cgbp` - Build with specific profile
|
|
98
|
+
|
|
99
|
+
#### Project Templates
|
|
100
|
+
|
|
101
|
+
- `cgnb` - New binary from template
|
|
102
|
+
- `cgnl` - New library from template
|
|
103
|
+
- `cgnt` - New from custom template
|
|
104
|
+
|
|
105
|
+
### Rustup Aliases
|
|
106
|
+
|
|
107
|
+
#### Updates and Installation
|
|
108
|
+
|
|
109
|
+
- `ru` - Update all toolchains
|
|
110
|
+
- `rus` - Update stable toolchain
|
|
111
|
+
- `run` - Update nightly toolchain
|
|
112
|
+
- `rti` - Install specific toolchain
|
|
113
|
+
|
|
114
|
+
#### Components Management
|
|
115
|
+
|
|
116
|
+
- `rca` - Add component
|
|
117
|
+
- `rcl` - List components
|
|
118
|
+
- `rcr` - Remove component
|
|
119
|
+
|
|
120
|
+
#### Toolchain Management
|
|
121
|
+
|
|
122
|
+
- `rtl` - List installed toolchains
|
|
123
|
+
- `rtu` - Uninstall toolchain
|
|
124
|
+
- `rde` - Set default toolchain
|
|
125
|
+
|
|
126
|
+
#### Target Management
|
|
127
|
+
|
|
128
|
+
- `rtaa` - Add compilation target
|
|
129
|
+
- `rtal` - List available targets
|
|
130
|
+
- `rtar` - Remove compilation target
|
|
131
|
+
|
|
132
|
+
#### Environment Running
|
|
133
|
+
|
|
134
|
+
- `rns` - Run command with stable
|
|
135
|
+
- `rnn` - Run command with nightly
|
|
136
|
+
|
|
137
|
+
#### Documentation and Help
|
|
138
|
+
|
|
139
|
+
- `rdo` - Open Rust documentation
|
|
140
|
+
|
|
141
|
+
#### Override Management
|
|
142
|
+
|
|
143
|
+
- `rpr` - Set directory toolchain
|
|
144
|
+
- `rpl` - List directory overrides
|
|
145
|
+
- `rpn` - Remove directory override
|
|
146
|
+
|
|
147
|
+
#### Toolchain Information
|
|
148
|
+
|
|
149
|
+
- `rws` - Show active rustc path
|
|
150
|
+
- `rsh` - Show toolchain info
|
|
151
|
+
|
|
152
|
+
### Common Workflows
|
|
153
|
+
|
|
154
|
+
#### New Project Setup
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
# Create new project with common dependencies
|
|
158
|
+
cgn myproject && cd myproject && cga serde && cgad tokio
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
#### Release Workflow
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
# Check, test, and build for release
|
|
165
|
+
cgcy && cgt && cgbr && cgaud
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
#### Documentation Update
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
# Format code and update documentation
|
|
172
|
+
cgfa && cgd && cgdo
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
#### Cross-compilation Check
|
|
176
|
+
|
|
177
|
+
```bash
|
|
178
|
+
# Check build for different architecture
|
|
179
|
+
cgxw check --target aarch64-unknown-linux-gnu
|
|
180
|
+
```
|
|
60
181
|
|
|
61
182
|
[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
|
|
@@ -1,127 +1,119 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
# Copyright (c) 2015-2024. All rights reserved
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.469) - <https://dotfiles.io>
|
|
3
|
+
# Made with β₯ in London, UK by Sebastien Rousseau
|
|
4
|
+
# Copyright (c) 2015-2025. All rights reserved
|
|
6
5
|
# License: MIT
|
|
7
6
|
|
|
8
7
|
# π
²π
°ππ
Άπ
Ύ π
°π
»π
Έπ
°ππ
΄π
|
|
9
|
-
|
|
10
8
|
if command -v 'cargo' >/dev/null; then
|
|
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
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
9
|
+
# Basic Commands
|
|
10
|
+
alias cg='cargo' # Cargo shortcut
|
|
11
|
+
alias cgn='cg new' # Create new binary project
|
|
12
|
+
alias cgni='cg new --lib' # Create new library project
|
|
13
|
+
alias cginit='cg init' # Initialize project in current directory
|
|
14
|
+
|
|
15
|
+
# Build and Run
|
|
16
|
+
alias cgb='cg build' # Build debug
|
|
17
|
+
alias cgbr='cg build --release' # Build release
|
|
18
|
+
alias cgr='cg run' # Run debug
|
|
19
|
+
alias cgrr='cg run --release' # Run release
|
|
20
|
+
alias cgw='cg watch' # Watch and rebuild
|
|
21
|
+
|
|
22
|
+
# Testing and Benchmarking
|
|
23
|
+
alias cgt='cg test' # Run tests
|
|
24
|
+
alias cgtr='cg test --release' # Run tests in release mode
|
|
25
|
+
alias cgbh='cg bench' # Run benchmarks
|
|
26
|
+
alias cgta='cg test --all' # Test all targets
|
|
27
|
+
alias cgtt='cg test -- --test-threads=1' # Single threaded tests
|
|
28
|
+
|
|
29
|
+
# Code Quality
|
|
30
|
+
alias cgc='cg check' # Check compilation
|
|
31
|
+
alias cgcl='cg clean' # Clean build artifacts
|
|
32
|
+
alias cgcy='cg clippy' # Run clippy lints
|
|
33
|
+
alias cgf='cg fmt' # Format code
|
|
34
|
+
alias cgfa='cg fmt --all' # Format all code
|
|
35
|
+
alias cgfx='cg fix' # Auto-fix code issues
|
|
36
|
+
alias cgaud='cg audit' # Security vulnerabilities check
|
|
37
|
+
|
|
38
|
+
# Documentation
|
|
39
|
+
alias cgd='cg doc --open' # Build and open documentation
|
|
40
|
+
alias cgdr='cg doc --release' # Build release documentation
|
|
41
|
+
alias cgdo='cg doc --document-private-items' # Document private items
|
|
42
|
+
|
|
43
|
+
# Dependencies
|
|
44
|
+
alias cga='cg add' # Add dependency
|
|
45
|
+
alias cgad='cg add --dev' # Add dev dependency
|
|
46
|
+
alias cgu='cg update' # Update dependencies
|
|
47
|
+
alias cgo='cg outdated' # Check outdated dependencies
|
|
48
|
+
alias cgv='cg vendor' # Vendor dependencies
|
|
49
|
+
alias cgtree='cg tree' # Display dependency tree
|
|
50
|
+
|
|
51
|
+
# Cross Compilation
|
|
52
|
+
alias cgx='cg zigbuild' # Build using Zig
|
|
53
|
+
alias cgxw='cg cross' # Cross compilation
|
|
54
|
+
alias cgxt='cg target' # Target specific platform
|
|
55
|
+
|
|
56
|
+
# Analysis and Profiling
|
|
57
|
+
alias cgfl='cg flamegraph' # Generate flamegraph
|
|
58
|
+
alias cgbl='cg bloat' # Binary size analysis
|
|
59
|
+
alias cgl='cg llvm-cov' # Code coverage
|
|
60
|
+
alias cgm='cg modules' # Module structure
|
|
61
|
+
alias cgex='cg expand' # Expand macros
|
|
62
|
+
|
|
63
|
+
# Package Management
|
|
64
|
+
alias cgi='cg install' # Install binary
|
|
65
|
+
alias cgun='cg uninstall' # Uninstall binary
|
|
66
|
+
alias cgp='cg publish' # Publish to crates.io
|
|
67
|
+
alias cgs='cg search' # Search crates.io
|
|
68
|
+
alias cgcp='cg package' # Create release package
|
|
69
|
+
|
|
70
|
+
# Advanced Build
|
|
71
|
+
alias cgba='cg build --all-targets' # Build all targets
|
|
72
|
+
alias cgbt='cg build --all-features' # Build with all features
|
|
73
|
+
alias cgbp='cg build --release --profile' # Build with specific profile
|
|
74
|
+
|
|
75
|
+
# Project Templates
|
|
76
|
+
alias cgnb='cg generate --bin' # New binary from template
|
|
77
|
+
alias cgnl='cg generate --lib' # New library from template
|
|
78
|
+
alias cgnt='cg generate' # New from custom template
|
|
77
79
|
fi
|
|
78
80
|
|
|
79
81
|
# ππππππ
Ώ π
°π
»π
Έπ
°ππ
΄π
|
|
80
82
|
if command -v 'rustup' >/dev/null; then
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
# Rustup toolchain uninstall.
|
|
119
|
-
alias rtu='rustup toolchain uninstall'
|
|
120
|
-
|
|
121
|
-
# Update rustup nightly.
|
|
122
|
-
alias ruc='rustup update nightly'
|
|
123
|
-
|
|
124
|
-
# Update rustup stable.
|
|
125
|
-
alias rus='rustup update stable'
|
|
126
|
-
|
|
83
|
+
# Updates and Installation
|
|
84
|
+
alias ru='rustup update' # Update all toolchains
|
|
85
|
+
alias rus='rustup update stable' # Update stable toolchain
|
|
86
|
+
alias run='rustup update nightly' # Update nightly toolchain
|
|
87
|
+
alias rti='rustup toolchain install' # Install specific toolchain
|
|
88
|
+
|
|
89
|
+
# Components Management
|
|
90
|
+
alias rca='rustup component add' # Add component
|
|
91
|
+
alias rcl='rustup component list' # List components
|
|
92
|
+
alias rcr='rustup component remove' # Remove component
|
|
93
|
+
|
|
94
|
+
# Toolchain Management
|
|
95
|
+
alias rtl='rustup toolchain list' # List installed toolchains
|
|
96
|
+
alias rtu='rustup toolchain uninstall' # Uninstall toolchain
|
|
97
|
+
alias rde='rustup default' # Set default toolchain
|
|
98
|
+
|
|
99
|
+
# Target Management
|
|
100
|
+
alias rtaa='rustup target add' # Add compilation target
|
|
101
|
+
alias rtal='rustup target list' # List available targets
|
|
102
|
+
alias rtar='rustup target remove' # Remove compilation target
|
|
103
|
+
|
|
104
|
+
# Environment Running
|
|
105
|
+
alias rns='rustup run stable' # Run command with stable
|
|
106
|
+
alias rnn='rustup run nightly' # Run command with nightly
|
|
107
|
+
|
|
108
|
+
# Documentation and Help
|
|
109
|
+
alias rdo='rustup doc --open' # Open Rust documentation
|
|
110
|
+
|
|
111
|
+
# Override Management
|
|
112
|
+
alias rpr='rustup override set' # Set directory toolchain
|
|
113
|
+
alias rpl='rustup override list' # List directory overrides
|
|
114
|
+
alias rpn='rustup override none' # Remove directory override
|
|
115
|
+
|
|
116
|
+
# Toolchain Information
|
|
117
|
+
alias rws='rustup which rustc' # Show active rustc path
|
|
118
|
+
alias rsh='rustup show' # Show toolchain info
|
|
127
119
|
fi
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
<img
|
|
4
4
|
src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
5
5
|
alt="dotfiles logo"
|
|
6
|
-
width="
|
|
6
|
+
width="66"
|
|
7
7
|
align="right"
|
|
8
8
|
/>
|
|
9
9
|
|
|
10
10
|
<!-- markdownlint-enable MD033 MD041 -->
|
|
11
11
|
|
|
12
|
-
# Dotfiles (v0.2.
|
|
12
|
+
# Dotfiles (v0.2.469)
|
|
13
13
|
|
|
14
14
|
Simply designed to fit your shell life π
|
|
15
15
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
4
|
-
# Made with β₯ in London, UK by
|
|
5
|
-
# Copyright (c) 2015-
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.469) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by Sebastien Rousseau
|
|
5
|
+
# Copyright (c) 2015-2025. All rights reserved
|
|
6
6
|
# License: MIT
|
|
7
7
|
|
|
8
8
|
# πππ
±π
π
΄πππ
Έπ
Ύπ
½ π
°π
»π
Έπ
°ππ
΄π
|