This commit is contained in:
Andrey Parhomenko 2023-08-29 13:42:38 +03:00
parent e08c40eb06
commit b33ba5a3f8
2 changed files with 6 additions and 3 deletions

View file

@ -1,10 +1,11 @@
#!/bin/sh #!/bin/sh
rpath="$(dirname `readlink -f $0`)" rpath="$(dirname `readlink -f $0`)"
dot="$rpath/file" dot="$rpath/file"
cmd="$@"
for i in $dot/* ; do for i in $dot/* ; do
ln="$HOME/.`basename $i`" ln="$HOME/.`basename $i`"
rm -rf "$ln" rm -rf "$ln"
echo $ln $i echo $ln $i
ln -s "$i" "$ln" $cmd "$i" "$ln"
done done

View file

@ -12,9 +12,11 @@ local opts = {noremap = true, silent = true}
map('n', '\\rcolor', ':colorscheme jien\n', opts) map('n', '\\rcolor', ':colorscheme jien\n', opts)
map('n', '\\ecolor', ':e $HOME/lib/nvim/colors/jien.vim\n', opts) map('n', '\\ecolor', ':e $HOME/lib/nvim/colors/jien.vim\n', opts)
-- File tree.s -- Moving around.
map('n', '\\home', ":cd $HOME\n", opts) map('n', '\\home', ":cd $HOME\n", opts)
map('n', '\\ft', ':ToggleSidebarCarbon\n', opts)
-- Search
map('n', '\\noh', ':noh\n', opts)
-- Tabs. -- Tabs.
map('n', '\\tn', ':tabnew\n', opts) map('n', '\\tn', ':tabnew\n', opts)