Initial commit
This commit is contained in:
commit
cefd40b6dc
31 changed files with 1028 additions and 0 deletions
13
bin/mkscript
Executable file
13
bin/mkscript
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/zsh
|
||||
BINDIR=$HOME/.local/bin
|
||||
if [[ -e $BINDIR/$1 ]]; then
|
||||
echo Script $1 exists, opening for edit
|
||||
$EDITOR $BINDIR/$1
|
||||
else
|
||||
touch $BINDIR/$1
|
||||
chmod a+x $BINDIR/$1
|
||||
echo "#!$SHELL" >> $BINDIR/$1
|
||||
$EDITOR $BINDIR/$1
|
||||
exit 0
|
||||
fi
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue