Skip to content

Commit

Permalink
Add tool/tool.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
gillchristian committed Aug 31, 2022
1 parent b017dfc commit a20b1de
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
3 changes: 2 additions & 1 deletion notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ Things missing
- [ ] antibody installation (installs in the current dir, on ./bin)
- [ ] purs installation
- [ ] PureScript installation
- [ ] Nix installation (Neuron?)
- [ ] Nix installation?
- [ ] Cleanup of things that aren't used anymore (k8s, minikube, etc)
- [ ] `tool-sync` installation and link of config file
11 changes: 11 additions & 0 deletions tool/tool.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
store_directory = "~/.local/bin"

[bat]
[difftastic]
[exa]
[fd]
[ripgrep]

# TODO: xD
# https://github.com/dalance/amber
# https://github.com/brigand/glint
25 changes: 25 additions & 0 deletions zsh/functions.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,28 @@ function denv {
;;
esac
}

# Sym links made easier
function slink {
if [ "$1" = "--help" ]; then
echo 'Usage'
echo '$ link "/full/origin/path" "/full/target/path"'
echo ''
echo 'Example:'
echo '$ link "$DOTFILES_DIR/tool/tool.toml" ~/.tool.toml'
else
if [[ -e "$2" ]]; then
echo "$2 already exists, if it is a symlink it will be deleted"
if [[ -h "$2" ]]; then
rm -rf "$2"
ln -s $1 $2
else
echo "Not a symlink, renaming and linking"
mv -f "$2" "$2_old"
ln -s $1 $2
fi
else
ln -s $1 $2
fi
fi
}

0 comments on commit a20b1de

Please sign in to comment.