update ll fish func and add ./sync

This commit is contained in:
Hedy Li 2020-12-26 08:21:55 +00:00
parent 36441305d9
commit 4854561039
2 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,7 @@
function ll
exa -lahg --git -t modified $argv
if which exa > /dev/null
exa -lahg --git -t modified $argv
else
ls -Al $argv
end
end

12
sync Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
# local to repo
# WORK IN PROGRESS!
for var in "$@"
do
dest=$(cat paths.json | jq '.'$var -r)
src=$dest
[ -d $dest ] && src=$dest'/*'
cp ~/$src $dest
done