0
votes
0answers
35 views

Why commands work at top of file, but not at the end

This is .tmux.conf file & as you can see it has a shell selection command at top. But it doesn't work if I put this line at the bottom. when I open tmux, it doesn't show any error or anything, but ...
0
votes
0answers
23 views

After Reinstall of Rails, Cannot Run `rails server`

On my main dev computer, I had had ruby installed from a ppa. I decided to reinstall it with rvm for consistency between computers. To uninstall my current environment, I ran sudo apt-get remove ...
1
vote
3answers
129 views

Strategy to maintain dotfiles for different OSs (i.e. osx and ubuntu)

I use a Git repository to maintain my dotfiles (vimrc, zshrc, tmux.conf, etc.). As I've two different operating systems (OSX at home and Ubuntu at work) I've dedicated a branch for each system. This ...
2
votes
1answer
82 views

make a certain software version the default in ubuntu

I currently have 2 version of php installed on ubuntu 12.04. one for php 5.3 installed using apt-get while the other one is installed with xampp with php 5.5 When i execute these commands: > ...
2
votes
1answer
183 views

How can I open an application using the command line and then close the terminal without closing the opened application?

If I open an application from the command line, say Firefox, the application runs as long as the terminal stays open. Closing the terminal's tab will close the application. Is there a way to open an ...
1
vote
1answer
222 views

zsh fail to expand apt-get regex?

zsh seems to fail expand apt-get regular expression. For instance I would like to install all packages that has the prefix llvm-3.1, and I use: sudo apt-get install llvm-3.1* But zsh tells me that: ...
0
votes
1answer
100 views

How does the .profile file work if I fork a process?

Lets say I open vlc or gimp on startup, but those commands don't return until the program closes. Does it just let a bash interpreter run indefinitely until they close or does it run and immediately ...
2
votes
2answers
282 views

What happens under the hood when I run a command line program in another programming language?

Some programming languages have system() exec() calls where I can run commands. What exactly happens when I do that? If I run system("ls") Does it run a bash interpreter on the string? Does it make an ...
0
votes
1answer
252 views

How to prevent scripts from changing the terminal's window title?

I'm using GNOME Terminal and zsh on Ubuntu with Awesome WM. I need to launch a terminal window with a certain title set like "s1" and no script inside that terminal should change the title of the tab ...
3
votes
2answers
495 views

Zsh login shell in Ubuntu

I have a fresh install of Ubuntu Natty. I changed my shell to zsh. When I login, it does not appear to source my ~/.zprofile file. Does gnome not get executed in a login shell of your chosen shell? ...
31
votes
3answers
9k views

Zsh not hitting ~/.profile

I've just installed zsh on my Ubuntu system. It seems zsh isn't executing ~/.profile on init. To my best understanding, this should be an automatic behavior. What am I missing?
2
votes
2answers
2k views

Default prompt for Zsh in Ubuntu

How can you get the prompt "/home/user@address:/path" for Zsh? I run the following unsuccessfully in my .zshrc PROMPT='%d%>:%{\e[0m%} ' I get as my prompt /home/masi
2
votes
5answers
5k views

How to set permissions for folder in Unix/Linux Ubuntu

This is not necessarily direct computer science question but its closely related. Is there any way to do this. I am using Z Shell zsh. I want to set up so whenever i am in folder ~/blah ...
3
votes
1answer
2k views

System-wide environment variables for zsh on Ubuntu

I'm using Ubuntu 9.04 I'm trying to add some system-wide envvars, I want them to be visible to both bash and zsh(my main shell), I added them to /etc/profile but unfortunately I can't see them in zsh ...