aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.config/git/config2
-rw-r--r--.gitignore1
-rw-r--r--mitamae/default.rb18
3 files changed, 6 insertions, 15 deletions
diff --git a/.config/git/config b/.config/git/config
index c82a726..d485275 100644
--- a/.config/git/config
+++ b/.config/git/config
@@ -94,7 +94,6 @@
fixup = commit --fixup
amend = commit --amend --no-edit
clone1 = clone --depth=1
- sw = "!~/bin/gitalias/git-sw"
swc = switch -c
swm = "!__fn() { \
if git rev-parse --verify --quiet main > /dev/null 2>&1; then \
@@ -177,7 +176,6 @@
fi; \
}; __fn"
setup-hooks = "!cp ~/dotfiles/githooks/* \"$(git rev-parse --show-toplevel)/.git/hooks\""
- extract-issue = "!~/bin/gitalias/git-extract-issue"
init-empty = "!__fn() { \
if [ \"$1\" = \"\" ]; then \
echo \"usage: git init-empty <user>\" >&2; \
diff --git a/.gitignore b/.gitignore
index f6b1936..840dd4e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,3 @@
/.bootstrap
/.config/alacritty/alacritty.local.toml
-/bin/gitalias/git-*
/nvim-startup.log
diff --git a/mitamae/default.rb b/mitamae/default.rb
index 16de368..0ae7610 100644
--- a/mitamae/default.rb
+++ b/mitamae/default.rb
@@ -47,24 +47,18 @@ link "#{home}/.config/nvim" do
to "#{home}/dotfiles/.config/nvim"
end
+directory "#{home}/bin"
+
# Go
execute "go" do
- command "go build -o bin/gitalias/git-extract-issue src/gitalias/git-extract-issue.go"
- not_if "test -f bin/gitalias/git-extract-issue"
+ command "go build -o #{home}/bin/git-extract-issue src/gitalias/git-extract-issue.go"
+ not_if "test -f #{home}/bin/git-extract-issue"
end
execute "go" do
- command "go build -o bin/gitalias/git-sw src/gitalias/git-sw.go"
- not_if "test -f bin/gitalias/git-sw"
+ command "go build -o #{home}/bin/git-sw src/gitalias/git-sw.go"
+ not_if "test -f #{home}/bin/git-sw"
end
-directory "#{home}/bin/gitalias"
-
-link "#{home}/bin/gitalias/git-extract-issue" do
- to "#{home}/dotfiles/bin/gitalias/git-extract-issue"
-end
-link "#{home}/bin/gitalias/git-sw" do
- to "#{home}/dotfiles/bin/gitalias/git-sw"
-end
link "#{home}/bin/tmux-pane-idx" do
to "#{home}/dotfiles/bin/tmux-pane-idx"
end