Skip to content

Instantly share code, notes, and snippets.

@sschmeier
sschmeier / tmux_conda_fix.md
Created February 8, 2020 21:59 — forked from ekreutz/tmux_conda_fix.md
Fix tmux messing with conda path

Fix tmux messing with conda

Problem: When running a conda environment and opening tmux on macOS, a utility called path_helper is run again. Essentially, the shell is initialized twice which messes up the ${PATH} so that the wrong Python version shows up within tmux.

Solution

If using bash, edit /etc/profile and add one line. (For zsh, edit /etc/zprofile)

...
@sschmeier
sschmeier / private-fork.md
Last active August 5, 2020 08:59 — forked from DavideMontersino/private-fork.md
How to fork to a private gitlab instance

Private fork on GitLab

Aim

Have a public repo on github for the world to see + have a the same repo private on gitlab for project specific branches/dev. Locally use github as upstream and gitlab as origin. We develop in gitlab and push general applicable changes to our upstream github repo.

In detail:

  1. one for our private repository on gitlab (will be the default one, called origin)
  2. one to be connected to a repo on github, to be able to publish new general changes (will be called upstream)