Restructuring the repo
This commit is contained in:
parent
21e3cf65e6
commit
3d67598c27
45 changed files with 368 additions and 77 deletions
13
misc/mkscript
Executable file
13
misc/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