Skip to content

Commit a16a33f

Browse files
committed
fix(zsh): mksh script opens file in editor
1 parent be90a38 commit a16a33f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

home/.config/zsh/alias.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ glog() { git log --oneline --no-decorate "-${1:-5}" ${@:2} }
4343
bak() { cp -r "$1" "$1.bak" }
4444
unbak() { mv "$1" $(sed "s/.bak$//" <<< "$1") }
4545

46-
mksh() { echo "#!/bin/sh" >> "$1" && chmod +x "$1" }
46+
mksh() { echo "#!/bin/sh" >> "$1" && chmod +x "$1" && "$EDITOR" "$1" }
4747

4848
#### Fzf #########################################
4949
# go to one of the lastest dirs

0 commit comments

Comments
 (0)