summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Egorov <[email protected]>2026-03-19 19:25:09 +0300
committerPavel Egorov <[email protected]>2026-03-19 19:25:09 +0300
commit88eb9fb3dbda22e1ce4cf1a2ac7317f0e941f783 (patch)
tree860dd7917132298d233774c8b6737907e615c957
parentb7935ea7981dc3657ae0050b3517174a1d59a29d (diff)
downloaddotfiles-88eb9fb3dbda22e1ce4cf1a2ac7317f0e941f783.tar.gz
dotfiles-88eb9fb3dbda22e1ce4cf1a2ac7317f0e941f783.zip
[fish] gitinit now can create target dir
Diffstat (limited to '')
-rw-r--r--.config/fish/conf.d/alias.fish8
1 files changed, 7 insertions, 1 deletions
diff --git a/.config/fish/conf.d/alias.fish b/.config/fish/conf.d/alias.fish
index 2f1b2cb..01f3859 100644
--- a/.config/fish/conf.d/alias.fish
+++ b/.config/fish/conf.d/alias.fish
@@ -17,7 +17,13 @@ function goto
17 mkdir -p $argv[1] && cd $argv[1] 17 mkdir -p $argv[1] && cd $argv[1]
18end 18end
19 19
20function gitinit 20function gitinit -a name
21 if test -z "$name"
22 set name "./"
23 end
24
25 goto $name
26
21 git init 27 git init
22 git commit -m "Initial commit" --allow-empty 28 git commit -m "Initial commit" --allow-empty
23end 29end