Skip to content

Instantly share code, notes, and snippets.

@gomesar
Last active April 28, 2018 15:45
Show Gist options
  • Save gomesar/71db9732d3a38cded3d6b8161148515b to your computer and use it in GitHub Desktop.
Save gomesar/71db9732d3a38cded3d6b8161148515b to your computer and use it in GitHub Desktop.
Install gem with sudo in user environment
#!/bin/bash
# If you get permission denied error while using gem 'install tmuxinator'
# install tmuxinator in user environment
sudo -E gem install tmuxinator
# The -E part keeps your users environment intact.
# Else it would install it for the user root
# Thread: https://github.com/tmuxinator/tmuxinator/issues/27
# Credits: https://github.com/Chinggis6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment