0
votes
2answers
79 views

Use the result of 'whoami' as part of an alias

I am setting up my default .bashrc on my Ubuntu machine that I will soon be adding more and more users to. One command that users will have access to is mysql, logging them into the SQL system on the ...
1
vote
1answer
1k views

.profile and .bash_profile ignored when starting tmux from .bashrc?

I've been having an issue with getting my .profile to be sourced when SSHing into an Ubuntu 12.04 server instance. My .bashrc does the following towards the end: if [[ "$TERM" != "screen-256color" ]] ...
0
votes
1answer
924 views

How can I show only the current directory after the prompt in Ubuntu 10.04

I have tried the suggestions here: How to shorten the no of characters display for the current directory in the prompt But adding these lines to the .bashrc file had no effect. Uname -a : ...
0
votes
1answer
106 views

Create a function that wraps an alias, but prints out the alias string

I want to create a bash function that will basically wrap an alias, except that it will output what the alias is doing so I don't forget the actual command. e.g.: alias abc='cd ~/root' So when I ...
9
votes
3answers
2k views

Bash completion makes bash start slowly

Starting a bash on my ubuntu system takes about 2 seconds. If I remove loading /etc/bash_completition in .bashrc it starts without delay. Of course I don't want to give up completition and I don't ...
1
vote
3answers
266 views

How to detect ubuntu in a shared bashrc?

I share my .bashrc (all my dotfiles, actually) between ubuntu and archlinux. Since the paths may vary between them, I'd like to run some commands only on ubuntu (and others only on archlinux). How can ...
3
votes
2answers
4k views

How can I change my bash prompt on Ubuntu?

I have one account on an Ubuntu server with the correct PS1 variable and I want to make one of my other accounts on the same server have the same PS1 variable, so that my prompt on this new account ...
3
votes
1answer
662 views

Problems with bash path when using 'su'

In Ubuntu Lucid Lynx, I'm trying to do su -l user -c "foo.sh args" where foo.sh is an executable bash script on the PATH set in ~user/.bashrc. Unfortunately, this fails because it can't find ...
0
votes
1answer
267 views

/etc/inputrc does not seem to be recognized as user on Ubuntu 8.04.2 LTS

On a new installation of Ubuntu 8.04.2 LTS, logging in as a standard user does not maintain the keybindings (whether through sudo su - or direct from ssh). As the root user everything is fine and ...
1
vote
2answers
658 views

Ubuntu Launcher Items Don't Have Correct Environment Vars under NX

I've got an environment variable issue I'm having trouble resolving. I'm running Ubuntu (Karmic, 9.10) and coming in via NX (NoMachine) on a Mac. I've added several environment variables in my ...
1
vote
2answers
2k views

Can't change permission for bash.bashrc file in Ubuntu

I'm trying to change the permission for my .bashrc file in Ubuntu but don't seem to have permission. I've tried following the example here: Open up publicity.html for reading and writing by anyone. ...
1
vote
1answer
52 views

Ubuntu Karmic: what logs do I need to look at to figure out boot script problems

I made some changes to bashrc and have somehow messed up booting into gnome. I can now only boot into gnome failsafe and have no wireless. Where do I need to look to see what the problems are?
4
votes
2answers
1k views

To have Vim Psql's editor

I have a Fresh Ubuntu installation. I have no personal dot-files active. I run unsuccessfully \e file.sql in Psql, when I have the following in my .bashrc, since Nano opens instead of Vim export ...