Improve yadm and other configs
This commit is contained in:
parent
0ca2831d05
commit
d1094ae994
9 changed files with 24 additions and 7 deletions
5
.bin/.e
5
.bin/.e
|
@ -8,9 +8,8 @@ declare -A mapper=(
|
|||
["autostart.toml"]="$HOME/.config/autostart.toml"
|
||||
["bash"]="$HOME/.bashrc"
|
||||
["bspwm"]="$HOME/.config/bspwm/bspwmrc"
|
||||
["environment"]="$HOME/.config/environment"
|
||||
["environment.d"]="$HOME/.config/environment.d/"
|
||||
["environment.local"]="$HOME/.config/environment.d/99-local"
|
||||
["env"]="$HOME/.config/environment"
|
||||
["env.d"]="$HOME/.config/env.d/"
|
||||
["git"]="$HOME/.config/git/config"
|
||||
["git-ignore"]="$HOME/.config/git/ignore"
|
||||
["home-manager"]="$HOME/.config/home-manager/home.nix"
|
||||
|
|
|
@ -12,9 +12,16 @@ _autoinstall_base () {
|
|||
[ ! -x "$(command -v starship)" ] \
|
||||
&& curl -sS "https://starship.rs/install.sh" | BIN_DIR="$HOME/.local/bin" FORCE=1 sh
|
||||
|
||||
_autoinstall_file \
|
||||
"https://raw.githubusercontent.com/qw3rtman/git-fire/master/git-fire" \
|
||||
"$HOME/.local/bin/git-fire"
|
||||
[ ! -x "$(command -v "git-fire")" ] \
|
||||
&& _autoinstall_exe \
|
||||
"https://raw.githubusercontent.com/qw3rtman/git-fire/master/git-fire" \
|
||||
"$HOME/.local/bin/git-fire"
|
||||
|
||||
[ ! -x "$(command -v "yadm")" ] \
|
||||
&& _autoinstall_exe \
|
||||
"https://github.com/TheLocehiliosan/yadm/raw/master/yadm" \
|
||||
"$HOME/.local/bin/yadm" \
|
||||
&& yadm alt
|
||||
|
||||
return 0
|
||||
}
|
||||
|
@ -80,6 +87,10 @@ _autoinstall_file () {
|
|||
return 1
|
||||
}
|
||||
|
||||
_autoinstall_exe () {
|
||||
_autoinstall_file "$1" "$2" && chmod +x "$2"
|
||||
}
|
||||
|
||||
_autoinstall_archive () {
|
||||
if [ ! -f "$2" ]
|
||||
then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue