Skip to content

Instantly share code, notes, and snippets.

@Codesleuth
Last active August 29, 2015 14:00
Show Gist options
  • Save Codesleuth/11318588 to your computer and use it in GitHub Desktop.
Save Codesleuth/11318588 to your computer and use it in GitHub Desktop.
My dotfiles
#! /bin/bash
# functions
vscode() {
# opens Visual Studio Code with the specified parameters
VSCODE_CWD=$PWD
$USERPROFILE/AppData/Local/Code/Update.exe --processStart Code.exe -a="$*"
}
# aliases
alias code=vscode
alias edit='start notepad++.exe $*'
alias set-gopath='export GOPATH=$(pwd) && export PATH=$GOPATH/bin:$PATH && echo "GOPATH set to $GOPATH"'
[alias]
st = status
co = checkout
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
[user]
name = David Wood
email = [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment