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"
|
["autostart.toml"]="$HOME/.config/autostart.toml"
|
||||||
["bash"]="$HOME/.bashrc"
|
["bash"]="$HOME/.bashrc"
|
||||||
["bspwm"]="$HOME/.config/bspwm/bspwmrc"
|
["bspwm"]="$HOME/.config/bspwm/bspwmrc"
|
||||||
["environment"]="$HOME/.config/environment"
|
["env"]="$HOME/.config/environment"
|
||||||
["environment.d"]="$HOME/.config/environment.d/"
|
["env.d"]="$HOME/.config/env.d/"
|
||||||
["environment.local"]="$HOME/.config/environment.d/99-local"
|
|
||||||
["git"]="$HOME/.config/git/config"
|
["git"]="$HOME/.config/git/config"
|
||||||
["git-ignore"]="$HOME/.config/git/ignore"
|
["git-ignore"]="$HOME/.config/git/ignore"
|
||||||
["home-manager"]="$HOME/.config/home-manager/home.nix"
|
["home-manager"]="$HOME/.config/home-manager/home.nix"
|
||||||
|
|
|
@ -12,10 +12,17 @@ _autoinstall_base () {
|
||||||
[ ! -x "$(command -v starship)" ] \
|
[ ! -x "$(command -v starship)" ] \
|
||||||
&& curl -sS "https://starship.rs/install.sh" | BIN_DIR="$HOME/.local/bin" FORCE=1 sh
|
&& curl -sS "https://starship.rs/install.sh" | BIN_DIR="$HOME/.local/bin" FORCE=1 sh
|
||||||
|
|
||||||
_autoinstall_file \
|
[ ! -x "$(command -v "git-fire")" ] \
|
||||||
|
&& _autoinstall_exe \
|
||||||
"https://raw.githubusercontent.com/qw3rtman/git-fire/master/git-fire" \
|
"https://raw.githubusercontent.com/qw3rtman/git-fire/master/git-fire" \
|
||||||
"$HOME/.local/bin/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
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,6 +87,10 @@ _autoinstall_file () {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_autoinstall_exe () {
|
||||||
|
_autoinstall_file "$1" "$2" && chmod +x "$2"
|
||||||
|
}
|
||||||
|
|
||||||
_autoinstall_archive () {
|
_autoinstall_archive () {
|
||||||
if [ ! -f "$2" ]
|
if [ ! -f "$2" ]
|
||||||
then
|
then
|
||||||
|
|
|
@ -82,6 +82,6 @@ alias xdebug='XDEBUG_CONFIG="remote_host=127.0.0.1 remote_port=9003"'
|
||||||
[ -x "$(command -v rmtrash)" ] && alias rm='rmtrash -I --one-file-system -v'
|
[ -x "$(command -v rmtrash)" ] && alias rm='rmtrash -I --one-file-system -v'
|
||||||
[ -x "$(command -v rmdirtrash)" ] && alias rmdir='rmdirtrash'
|
[ -x "$(command -v rmdirtrash)" ] && alias rmdir='rmdirtrash'
|
||||||
|
|
||||||
[ -x "$(command -v yadm)" ] || alias yadm='git --git-dir="$HOME/.local/share/yadm/repo.git"'
|
[ ! -x "$(command -v yadm)" ] && alias yadm='git --git-dir="$HOME/.local/share/yadm/repo.git"'
|
||||||
|
|
||||||
[ -f "$HOME/.config/aliasrc.local" ] && . "$HOME/.config/aliasrc.local"
|
[ -f "$HOME/.config/aliasrc.local" ] && . "$HOME/.config/aliasrc.local"
|
||||||
|
|
2
.config/env.d/.gitignore
vendored
Normal file
2
.config/env.d/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
99-local
|
||||||
|
99-secrets
|
|
@ -26,6 +26,7 @@
|
||||||
ripgrep # grep-alternative
|
ripgrep # grep-alternative
|
||||||
rmtrash # rm wrapper to use trash
|
rmtrash # rm wrapper to use trash
|
||||||
shellcheck # tool for shell-syntax
|
shellcheck # tool for shell-syntax
|
||||||
|
starship # shell prompt
|
||||||
tokei # project-language statistics
|
tokei # project-language statistics
|
||||||
trash-cli # trash utils
|
trash-cli # trash utils
|
||||||
unzip # unzip
|
unzip # unzip
|
||||||
|
|
|
@ -5,3 +5,5 @@ yadm remote set-url --push origin "git@git.serguzim.me:serguzim/.dotfiles.git"
|
||||||
|
|
||||||
echo "Autoinstall base"
|
echo "Autoinstall base"
|
||||||
autoinstall base
|
autoinstall base
|
||||||
|
|
||||||
|
echo "Don't forget to decrypt yadm secrets"
|
||||||
|
|
Binary file not shown.
2
.npmrc
Normal file
2
.npmrc
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
@fortawesome:registry=https://npm.fontawesome.com/
|
||||||
|
//npm.fontawesome.com/:_authToken=${FONTAWESOME_NPM_AUTH_TOKEN}
|
Loading…
Reference in a new issue