Skip to content

Instantly share code, notes, and snippets.

@pascalbaljet
Created September 22, 2020 08:44
Show Gist options
  • Save pascalbaljet/01eb3b5822d2a7fa801cdeb82df43072 to your computer and use it in GitHub Desktop.
Save pascalbaljet/01eb3b5822d2a7fa801cdeb82df43072 to your computer and use it in GitHub Desktop.
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