Compare commits

..

No commits in common. "3322afbce3dddf440e1d5265c1cedaa34c47c72d" and "09b2fdd6d2701a3cbced65b53816910c73045dbc" have entirely different histories.

2 changed files with 4 additions and 12 deletions

View file

@ -13,4 +13,3 @@ aliases:
http_unix_socket:
# What web browser gh should use when opening URLs. If blank, will refer to environment.
browser:
version: "1"

View file

@ -1,6 +1,5 @@
import os
import pathlib
import shutil
import subprocess
import tempfile
import urllib.request
@ -50,20 +49,14 @@ def configure_git():
def backup_pip():
pip = pathlib.Path.home() / ".config" / "pip"
pip_bak = pathlib.Path.home() / ".config" / "pip.bak"
if pip_bak.exists():
print("Removing stray backup directory...")
shutil.rmtree(pip_bak)
if pip.exists():
pip.rename(pip_bak)
pip.rename("pip.bak")
def restore_pip():
pip = pathlib.Path.home() / ".config" / "pip"
pip_bak = pathlib.Path.home() / ".config" / "pip.bak"
if pip_bak.exists():
pip_bak.rename(pip)
pip = pathlib.Path.home() / ".config" / "pip.bak"
if pip.exists():
pip.rename("pip")
def configure_python():