Compare commits
3 commits
a6e4ce98f0
...
5cecab18eb
Author | SHA1 | Date | |
---|---|---|---|
5cecab18eb | |||
8d4861b599 | |||
9e0e4ac61f |
5 changed files with 29 additions and 15 deletions
|
@ -11,10 +11,10 @@ url="$(git remote get-url origin)"
|
|||
re="^(https|git)(:\/\/|@)([^\/:]+)[\/:]([^\/:]+)\/(.+)(.git)*$"
|
||||
|
||||
if [[ $url =~ $re ]]; then
|
||||
#protocol=${BASH_REMATCH[1]}
|
||||
#separator=${BASH_REMATCH[2]}
|
||||
#hostname=${BASH_REMATCH[3]}
|
||||
user=${BASH_REMATCH[4]}
|
||||
#protocol=${BASH_REMATCH[1]}
|
||||
#separator=${BASH_REMATCH[2]}
|
||||
#hostname=${BASH_REMATCH[3]}
|
||||
user=${BASH_REMATCH[4]}
|
||||
repo=$(basename -s .git "${BASH_REMATCH[5]}")
|
||||
fi
|
||||
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
export DRONE_SERVER='https://ci.serguzim.me'
|
||||
export DRONE_SERVER="https://ci.serguzim.me"
|
||||
|
||||
export HASTE_SERVER="https://haste.snrd.eu"
|
||||
|
||||
export LINKWARDEN_URL="https://bookmarks.serguzim.me"
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
|
||||
[diff]
|
||||
tool = difftastic
|
||||
external = difft
|
||||
[difftool]
|
||||
prompt = false
|
||||
[difftool "difftastic"]
|
||||
|
@ -24,12 +23,10 @@
|
|||
b = branch -vv
|
||||
ci = commit
|
||||
cia = commit -C HEAD --amend
|
||||
d = diff
|
||||
dc = diff --cached
|
||||
ds = diff --stat
|
||||
dw = diff --word-diff=color
|
||||
dt = difftool
|
||||
dtc = difftool --cached
|
||||
d = difftool
|
||||
dc = difftool --cached
|
||||
ds = difftool --stat
|
||||
dw = difftool --word-diff=color
|
||||
l = log --graph
|
||||
lo = log --graph --decorate --pretty='format:%C(auto)%h <%as>%d %s' --abbrev-commit --all
|
||||
s = status
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
git # git
|
||||
gitflow # tool for git workflow
|
||||
git-lfs # git support for large files
|
||||
haste-client # tool to paste files
|
||||
hostname # tool to get hostname
|
||||
jq # tool for json
|
||||
moar # moar is less
|
||||
|
|
|
@ -1,9 +1,23 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
echo "Updating push-url to use ssh"
|
||||
echo "Loading environment variables"
|
||||
. "$HOME/.config/environment"
|
||||
|
||||
echo "Configuring yadm"
|
||||
yadm gitconfig core.bare false
|
||||
yadm gitconfig core.worktree "$HOME"
|
||||
yadm gitconfig status.showUntrackedFiles no
|
||||
yadm remote set-url --push origin "git@git.serguzim.me:serguzim/.dotfiles.git"
|
||||
|
||||
echo "Autoinstall base"
|
||||
autoinstall base
|
||||
if [ ! -x "$(command -v autoinstall)" ];
|
||||
then
|
||||
echo "Installing autoinstall command"
|
||||
mkdir -p "$HOME/.local/bin"
|
||||
curl -Lo "$HOME/.local/bin/autoinstall" https://git.serguzim.me/serguzim/tools/releases/download/latest/autoinstall
|
||||
chmod +x "$HOME/.local/bin/autoinstall"
|
||||
fi
|
||||
|
||||
echo "Autoinstalling base"
|
||||
autoinstall run base
|
||||
|
||||
echo "Don't forget to decrypt yadm secrets"
|
||||
|
|
Loading…
Reference in a new issue