update
This commit is contained in:
parent
0e016de84a
commit
2b0d559371
16
aliases.sh
16
aliases.sh
|
@ -99,3 +99,19 @@ git-re() {
|
|||
ch() {
|
||||
curl "cheat.sh/$@"
|
||||
}
|
||||
|
||||
newsh() {
|
||||
set -e
|
||||
|
||||
if [ -f "$1" ] ; then
|
||||
echo "Error: file exists: $1"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "#!/bin/sh" > "$1"
|
||||
echo "" >> "$1"
|
||||
echo "$2" >> "$1"
|
||||
|
||||
chmod +x "$1"
|
||||
nvim "$1" +3
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue