mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-11-14 04:57:53 -06:00
Compare commits
No commits in common. "b8dc281b44c5e6f8fe819954b3bf5026aef49c9d" and "d3f4bf9db908042f7b29eaa4cb3d3047d56c1fe2" have entirely different histories.
b8dc281b44
...
d3f4bf9db9
1 changed files with 4 additions and 6 deletions
|
@ -52,7 +52,7 @@ from typing import (
|
|||
from urllib.error import HTTPError
|
||||
from urllib.request import urlopen
|
||||
|
||||
__version__ = "23.5a2-8-gf5dd514-dev"
|
||||
__version__ = "23.5a2-5-g4e6acac-dev"
|
||||
|
||||
|
||||
class Config:
|
||||
|
@ -1048,18 +1048,16 @@ class Viv:
|
|||
make_executable(src)
|
||||
echo("symlinking cli")
|
||||
|
||||
if cli.is_file() and confirm(
|
||||
f"Existing file at {a.style(cli,'bold')}, would you like to overwrite it?"
|
||||
):
|
||||
cli.unlink(src)
|
||||
if not cli.is_file():
|
||||
cli.symlink_to(src)
|
||||
else:
|
||||
cli.unlink()
|
||||
cli.symlink_to(src)
|
||||
|
||||
echo("Remember to include the following line in your shell rc file:")
|
||||
sys.stderr.write(
|
||||
' export PYTHONPATH="$PYTHONPATH:$HOME/'
|
||||
f'{src.relative_to(Path.home()).parent}"\n'
|
||||
f'{src.relative_to(Path.home())}"\n'
|
||||
)
|
||||
|
||||
def manage(self, args: Namespace) -> None:
|
||||
|
|
Loading…
Reference in a new issue