fixes
This commit is contained in:
@@ -14,20 +14,25 @@ def sym_link_folders() -> void:
|
|||||||
]
|
]
|
||||||
|
|
||||||
for folder in FOLDERS:
|
for folder in FOLDERS:
|
||||||
|
if not Path(f"{Path.home()}/{folder}").is_dir() and not Path(f"{Path.home()}/{folder}").is_symlink():
|
||||||
|
Path(f"{Path.home()}/{folder}").symlink_to(f"{target_folder}/{folder}")
|
||||||
|
|
||||||
if Path(f"{Path.home()}/{folder}").is_dir() and not Path(f"{Path.home()}/{folder}").is_symlink():
|
if Path(f"{Path.home()}/{folder}").is_dir() and not Path(f"{Path.home()}/{folder}").is_symlink():
|
||||||
Path(f"{Path.home()}/{folder}").rmdir()
|
Path(f"{Path.home()}/{folder}").rmdir()
|
||||||
Path(f"{Path.home()}/{folder}").symlink_to(f"{target_folder}/{folder}")
|
Path(f"{Path.home()}/{folder}").symlink_to(f"{target_folder}/{folder}")
|
||||||
|
|
||||||
if Path(f"{Path.home()}/Templates").is_dir():
|
if Path(f"{Path.home()}/Templates").is_dir():
|
||||||
Path(f"{Path.home()}/Templates").rmdir()
|
Path(f"{Path.home()}/Templates").rmdir()
|
||||||
|
|
||||||
if Path(f"{Path.home()}/Public").is_dir():
|
if Path(f"{Path.home()}/Public").is_dir():
|
||||||
Path(f"{Path.home()}/Public").rmdir()
|
Path(f"{Path.home()}/Public").rmdir()
|
||||||
|
|
||||||
|
|
||||||
def install_apps() -> void:
|
def install_apps() -> void:
|
||||||
APPS = [
|
APPS = [
|
||||||
'brave-bin',
|
'brave-bin',
|
||||||
'element-desktop',
|
'element-desktop',
|
||||||
'flatpak'
|
'flatpak',
|
||||||
'libreoffice-fresh',
|
'libreoffice-fresh',
|
||||||
'neovim-git',
|
'neovim-git',
|
||||||
'proton-mail-bin',
|
'proton-mail-bin',
|
||||||
@@ -50,6 +55,7 @@ def install_apps() -> void:
|
|||||||
"fish", "-c", "nvm install lts"
|
"fish", "-c", "nvm install lts"
|
||||||
], check=True)
|
], check=True)
|
||||||
|
|
||||||
|
|
||||||
def stow_dot_files() -> void:
|
def stow_dot_files() -> void:
|
||||||
DOTFILES = [
|
DOTFILES = [
|
||||||
'alacritty',
|
'alacritty',
|
||||||
@@ -65,6 +71,7 @@ def stow_dot_files() -> void:
|
|||||||
|
|
||||||
subprocess.run(['git', 'checkout', '--', '.'])
|
subprocess.run(['git', 'checkout', '--', '.'])
|
||||||
|
|
||||||
|
|
||||||
sym_link_folders()
|
sym_link_folders()
|
||||||
install_apps()
|
install_apps()
|
||||||
stow_dot_files()
|
stow_dot_files()
|
||||||
|
|||||||
Reference in New Issue
Block a user