refactor: Move .ff-chrome/ into .include/ dir
This commit is contained in:
parent
b2c85667e6
commit
8c259f5292
3 changed files with 5 additions and 2 deletions
|
@ -53,6 +53,9 @@ Then run `./bootstrap`.
|
|||
- yabai (macOS)
|
||||
- [dortania](https://github.com/dortania) (A great hackintosh guide)
|
||||
|
||||
## Special directory
|
||||
- `.include/`: Directory containing configs that need to be installed manually
|
||||
|
||||
## Tips
|
||||
|
||||
### Small guide for my tiling WM hotkeys
|
||||
|
|
|
@ -69,11 +69,11 @@ chrome_path = pathlib.Path(f"{profile_path}/chrome")
|
|||
chrome_path.mkdir(parents=True, exist_ok=True)
|
||||
user_chrome_path = chrome_path / "userChrome.css"
|
||||
try:
|
||||
user_chrome_path.symlink_to(f"{dotfiles}/.ff-chrome/userChrome.css")
|
||||
user_chrome_path.symlink_to(f"{dotfiles}/.include/ff-chrome/userChrome.css")
|
||||
except FileExistsError:
|
||||
prompt = input("Overwrite existing userChrome.css? [y/N] ")
|
||||
if not bool_from_string(prompt, False):
|
||||
exit(0)
|
||||
user_chrome_path.unlink()
|
||||
user_chrome_path.symlink_to(f"{dotfiles}/.ff-chrome/userChrome.css")
|
||||
user_chrome_path.symlink_to(f"{dotfiles}/.include/ff-chrome/userChrome.css")
|
||||
print("userChrome.css has successfully installed.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue