We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
instagit
1 parent d7cf7f0 commit cd214f4Copy full SHA for cd214f4
home/bashrc
@@ -184,6 +184,13 @@ catch() {
184
path=$(which "$1") && [[ $(file -L "$path") == *text* ]] && bat "$path"
185
}
186
187
+instagit() {
188
+ cd ~/tmp || { mkdir ~/tmp && cd ~/tmp; } || return
189
+ local d
190
+ d=$(qualified-noun) && mkdir "$d" || { d=$(qualified-noun) && mkdir "$d"; } || return
191
+ cd "$d" && git init --quiet
192
+}
193
+
194
# Select a line from oneliners.bash with fzf and paste the selection to stdin. This code
195
# is copied and adapted from the `__fzf_history__` function in
196
# /usr/share/fzf/key-bindings.bash (as of fzf 0.16.8-1 from Arch's community repo,
0 commit comments