Skip to content

Instantly share code, notes, and snippets.

@pascalbaljet
Created Sep 22, 2020
Embed
What would you like to do?
openvalet() {
DIR=$(basename "$PWD")
open "http://$DIR.test"
}
vscode() {
if [ -z "$1" ]
then
code -n .
else
code -n $1
fi
}
sublime() {
if [ -z "$1" ]
then
/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl .
else
/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl $1
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment