Compare commits
2 commits
cc6b56e7a7
...
14c08f8b6c
Author | SHA1 | Date | |
---|---|---|---|
14c08f8b6c | |||
ebf747e214 |
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Quickly setup user name and email.
|
# Quickly setup user name and email.
|
||||||
|
echo "Current name: $(git config user.name)"
|
||||||
|
echo "Current email: $(git config user.email)"
|
||||||
read -p "User name: " name
|
read -p "User name: " name
|
||||||
git config user.name "$name"
|
git config user.name "$name"
|
||||||
read -p "User email: " email
|
read -p "User email: " email
|
||||||
|
|
16
install.sh
Executable file
16
install.sh
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
ensure_has() {
|
||||||
|
if ! command -v "$1" > /dev/null; then
|
||||||
|
echo "Can't find $1."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
ensure_has fdfind
|
||||||
|
ensure_has fzf
|
||||||
|
ensure_has install-script
|
||||||
|
|
||||||
|
fdfind -t x \
|
||||||
|
| fzf -m --layout=reverse \
|
||||||
|
| while read -r script; do install-script "$script"; done
|
Loading…
Reference in a new issue