Compare commits

..

2 commits

Author SHA1 Message Date
23f762ae3b Added automatic folder creation 2023-09-28 11:08:06 +02:00
9442a160c7 Added nu_aliases 2023-09-28 11:02:00 +02:00
2 changed files with 7 additions and 0 deletions

3
shell/nu/.nu_aliases Normal file
View file

@ -0,0 +1,3 @@
def jaaj [] { ^jaaj | lolcat }
def rainbowfetch [] { neofetch | lolcat }

4
sync
View file

@ -17,10 +17,14 @@ synced_files = [
('shell/bash/.bash_aliases', '~/.bash_aliases'), ('shell/bash/.bash_aliases', '~/.bash_aliases'),
('shell/bash/.bash_env', '~/.bash_env'), ('shell/bash/.bash_env', '~/.bash_env'),
('shell/bash/.bash_exec', '~/.bash_exec'), ('shell/bash/.bash_exec', '~/.bash_exec'),
('shell/nu/.nu_aliases', '~/.nu_aliases'),
] ]
def save(): def save():
for p in synced_files: for p in synced_files:
folder = "/".join(p[0].split("/")[0:-1])
if not os.path.exists(folder):
os.mkdir(folder)
os.system(f"rsync -r {p[1]} {p[0]}") os.system(f"rsync -r {p[1]} {p[0]}")
def restore(): def restore():