mirror of
https://github.com/Steffo99/config-fish.git
synced 2024-12-22 14:54:23 +00:00
Revenv
This commit is contained in:
parent
d11c3eaa27
commit
afd8eb6f54
3 changed files with 23 additions and 0 deletions
|
@ -0,0 +1,3 @@
|
|||
|
||||
# Created by `pipx` on 2022-01-04 02:25:15
|
||||
set PATH $PATH /home/steffo/.local/bin
|
3
functions/reboot-windows.fish
Normal file
3
functions/reboot-windows.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
function reboot-windows --wraps='systemctl reboot --boot-loader-entry=windows.conf' --description 'alias reboot-windows systemctl reboot --boot-loader-entry=windows.conf'
|
||||
systemctl reboot --boot-loader-entry=windows.conf $argv;
|
||||
end
|
17
functions/revenv.fish
Normal file
17
functions/revenv.fish
Normal file
|
@ -0,0 +1,17 @@
|
|||
function revenv
|
||||
echo_progress "Removing previous venv..."
|
||||
rm -rfi venv
|
||||
echo
|
||||
echo_progress "Creating a new venv..."
|
||||
python -m venv venv
|
||||
echo
|
||||
echo_progress "Accessing the new venv..."
|
||||
source venv/bin/activate.fish
|
||||
echo
|
||||
echo_progress "Installing "
|
||||
echo_highlight "$argv"
|
||||
pip install $argv
|
||||
echo
|
||||
echo_progress "Done!"
|
||||
echo
|
||||
end
|
Loading…
Reference in a new issue