Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken Bash Prompt with a weird fix #9

Closed
paulmolluzzo opened this issue Oct 26, 2015 · 1 comment
Closed

Broken Bash Prompt with a weird fix #9

paulmolluzzo opened this issue Oct 26, 2015 · 1 comment

Comments

@paulmolluzzo
Copy link

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant