alpha
Login
or
Join now
xcc.es
/
dotfiles
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/mrgnw/dotfiles. My shell customizations - aliases, functions, and themes.
dotfiles
shell
zinit
zsh
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
use uv for pip / env
author
Morgan
date
2 years ago
(May 19, 2024, 9:13 PM +0200)
commit
46c5d62f
46c5d62f576109d4956ed4f30d20c96f64f94bb1
parent
144ec9e7
144ec9e70c93f151436c947b842f87e6ccb657bc
+9
-17
1 changed file
Expand all
Collapse all
Unified
Split
python.zsh
+9
-17
python.zsh
View file
Reviewed
···
1
1
-
# zinit ice OMZ::davidparsson/zsh-pyenv-lazy silent wait"0b"
2
2
-
# zinit load davidparsson/zsh-pyenv-lazy
3
3
-
4
4
-
p+() {pip install "$@"}
5
5
-
p-() {pip uninstall "$@"}
1
1
+
p+() { uv pip install "$@"}
2
2
+
p-() { uv pip uninstall "$@"}
6
3
7
7
-
alias jupy='jupyter notebook'
8
8
-
9
9
-
# activate env
10
10
-
»py() {
11
11
-
# activate .venv or create venv
12
12
-
if [[ -d .venv ]];
13
13
-
then source .venv/bin/activate
14
14
-
else
15
15
-
python -m venv .venv
16
16
-
source .venv/bin/activate
17
17
-
fi
4
4
+
»(){
5
5
+
if [ -d .venv ]; then
6
6
+
source .venv/bin/activate
7
7
+
else
8
8
+
echo "\t» ~/.venv"
9
9
+
source ~/.venv/bin/activate
10
10
+
fi
18
11
}
19
12
«(){ deactivate }
20
20
-
-v() { trash .venv}
21
13
22
14
# allows pip install x[y]
23
15
set +o nomatch