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: http_unix_socket:
# What web browser gh should use when opening URLs. If blank, will refer to environment. # What web browser gh should use when opening URLs. If blank, will refer to environment.
browser: browser:
version: "1"

View file

@ -1,6 +1,5 @@
import os import os
import pathlib import pathlib
import shutil
import subprocess import subprocess
import tempfile import tempfile
import urllib.request import urllib.request
@ -50,20 +49,14 @@ def configure_git():
def backup_pip(): def backup_pip():
pip = pathlib.Path.home() / ".config" / "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(): if pip.exists():
pip.rename(pip_bak) pip.rename("pip.bak")
def restore_pip(): def restore_pip():
pip = pathlib.Path.home() / ".config" / "pip" pip = pathlib.Path.home() / ".config" / "pip.bak"
pip_bak = pathlib.Path.home() / ".config" / "pip.bak" if pip.exists():
if pip_bak.exists(): pip.rename("pip")
pip_bak.rename(pip)
def configure_python(): def configure_python():