Move dotfiles to root
This commit is contained in:
parent
f445d85ee1
commit
b6368d07ed
46 changed files with 5 additions and 21 deletions
|
@ -1,17 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
TYPE=$(gum choose "fix" "feat" "docs" "ci" "style" "refactor" "test" "chore" "revert")
|
|
||||||
SCOPE=$(gum input --placeholder "scope")
|
|
||||||
|
|
||||||
test -n "$SCOPE" && SCOPE="($SCOPE)"
|
|
||||||
|
|
||||||
TO_COMMIT=$(gum choose --no-limit $(git ls-files --modified --others --exclude-standard))
|
|
||||||
|
|
||||||
SUMMARY=$(gum input --value "$TYPE$SCOPE: " --placeholder "Commit Summary")
|
|
||||||
DESCRIPTION=$(gum write --placeholder "Details of this change...")
|
|
||||||
|
|
||||||
gum confirm "Commit?"
|
|
||||||
|
|
||||||
if [[ "$?" -eq 0 ]]; then
|
|
||||||
git add $TO_COMMIT;
|
|
||||||
git commit -m "$SUMMARY" -m "$DESCRIPTION";
|
|
||||||
fi
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
for conf in $(ls dotfiles); do
|
|
||||||
ln -sn $PWD/dotfiles/$conf $HOME/.config/$conf
|
|
||||||
done
|
|
5
fish/functions/fish_update_dotfiles.fish
Normal file
5
fish/functions/fish_update_dotfiles.fish
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
function fish_update_dotfiles
|
||||||
|
for conf in (ls)
|
||||||
|
ln --force -sn $PWD/$conf $HOME/.config/$conf
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue