Compare commits
3 Commits
962efa9962
...
fffa61ef36
Author | SHA1 | Date |
---|---|---|
Ray Elliott | fffa61ef36 | |
Ray Elliott | f0922d2fc3 | |
Ray Elliott | a1b412cf1f |
|
@ -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?
|
|
@ -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
|
||||||
|
|
|
@ -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'"
|
Reference in New Issue