diff --git a/.config/fish/functions/ll.fish b/.config/fish/functions/ll.fish index 662c3e9..321f171 100644 --- a/.config/fish/functions/ll.fish +++ b/.config/fish/functions/ll.fish @@ -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 diff --git a/sync b/sync new file mode 100755 index 0000000..b00d2d7 --- /dev/null +++ b/sync @@ -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