Skip to content

Instantly share code, notes, and snippets.

@PellePedro
Last active April 30, 2018 18:26
Show Gist options
  • Save PellePedro/f96479c3d1bbe221f1291f9fe95107f7 to your computer and use it in GitHub Desktop.
Save PellePedro/f96479c3d1bbe221f1291f9fe95107f7 to your computer and use it in GitHub Desktop.
Development Environment Setup
Alias for devops container
```
# Alias for .bashrc
eval "$(direnv hook bash)"
alias fdns='sudo killall -HUP mDNSResponder;sudo killall mDNSResponderHelper;sudo dscacheutil -flushcache'
alias dev='docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/root/host pellepedro/devenv:latest bash'
alias godev='docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/root/go/src/host pellepedro/devenv:latest bash'
export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"'
```
```
# Alias for .zshrc
eval "$(direnv hook zsh)"
alias fdns='sudo killall -HUP mDNSResponder;sudo killall mDNSResponderHelper;sudo dscacheutil -flushcache'
alias dev='docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/root/host pellepedro/devenv:latest bash'
alias godev='docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/root/go/src/host pellepedro/devenv:latest bash'
export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"'
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment