Compare commits

...

3 Commits

Author SHA1 Message Date
Ray Elliott fffa61ef36 add TODO 2020-03-22 16:55:06 +00:00
Ray Elliott f0922d2fc3 add README 2020-03-22 16:20:31 +00:00
Ray Elliott a1b412cf1f add lf install and configuration 2020-03-22 16:16:19 +00:00
3 changed files with 31 additions and 0 deletions

6
README.md Normal file
View File

@ -0,0 +1,6 @@
## TODO
Need to take into account whether git cloning is via ssh (when need to be able
to make git commits to remote) or via http (when read only access is required).
Could just have a git base url that is set in config.sh - will this be sufficient?

View File

@ -20,5 +20,9 @@ fi
$_cmd_su "git config --global user.email '$_git_user_email'" $_cmd_su "git config --global user.email '$_git_user_email'"
$_cmd_su "git config --global user.name '$_git_user_name'" $_cmd_su "git config --global user.name '$_git_user_name'"
# TODO populate global .gitignore
# *.swp
# node_modules/
' Session.vim'
# TODO ensure group sudo is allowed sudo # TODO ensure group sudo is allowed sudo

21
pkg-setup/lf.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/sh
_cmd_su="su --login $_user -c"
_config_dir="/home/$_user/.config/lf"
set -e
_download_url="https://github.com/gokcehan/lf/releases/download/$_lf_version/lf-linux-amd64.tar.gz"
if [ -z $_config_loaded ] ; then
echo "No config loaded - loading '../config.sh'"
. ../config.sh
fi
# wget "$_download_url" -O /tmp/lf.tar.gz
# tar -xzvf /tmp/lf.tar.gz -C /usr/local/bin/
if [ -d "$_config_dir" ] ; then
rm -Rf "$_config_dir"
fi
$_cmd_su "git clone 'https://git.rayelliott.dev/dots/lf.git' '$_config_dir'"