Skip to content

Instantly share code, notes, and snippets.

@bcho
Created October 18, 2014 15:28
Show Gist options
  • Select an option

  • Save bcho/43273d9a6900e41f5157 to your computer and use it in GitHub Desktop.

Select an option

Save bcho/43273d9a6900e41f5157 to your computer and use it in GitHub Desktop.
trick
# coding: utf-8
# By default, fabric will use `/bin/bash` as shell.
# Which means it won't process our aliases in the `~/.bashrc`
# (or `~/.bash_profile`).
from fabric.api import env
# We can fix this by invoking bash as a login shell: (quoted from `man bash`):
env.shell = '/bin/bash -l -i -c'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment