jamesob / desk

A lightweight workspace manager for the shell
MIT License
2.54k stars 112 forks source link

Broken Bash Prompt with a weird fix #9

Closed paulmolluzzo closed 9 years ago

paulmolluzzo commented 9 years ago

This might be unique to the way I'm using bash and local settings, but I have to use the following command to get my prompt back:

exec -l bash

Without this I 1) lose my pretty prompt, 2) get a weird error in tmux (using tmuxinator) that says bash: update_terminal_cwd: command not found.

I don't know why I need to do this and I don't know that anything needs to be fixed, but if there's a way to avoid this setting it might be good for future users of desk.

For reference my version of bash is and I'm on OSX Yosemite:

GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin14)
Copyright (C) 2007 Free Software Foundation, Inc.
paulmolluzzo commented 9 years ago

Well, I'm fairly sure that this is unique to my local env but probably a common setup. My prompt (and my bash aliases and all that jazz) is in my .bash_profile. This is all working just fine because OSX runs all new terminal windows as login shells. It looks like desk is creating new interactive, non-login shells, so only .bashrc is sourced.

I can leave this working solution of adding exec -l bash in every new desk file and force it to run a login shell, or I can follow the advice in (this post)[http://www.joshstaiger.org/archives/2005/07/bash_profile_vs.html] and move all the prompt and PATH and alias stuff to .bashrc thereby removing the need for the other solution.

Not sure there's anything worth changing in desk so I'll close this out and let @jamesob reopen if he wants.