3
votes
1answer
60 views

Is there a way to mirror directory changes in Terminator?

I'm on Ubuntu 12.04 and am using Terminator as my primary terminal. I like it because it lets me keep a python interpreter and bash terminal open at the same time, in the same view. What is annoying ...
1
vote
1answer
22 views

display only the git root directory if it is a git directory in PS1

I know you can do something like this for the PS1: Corvid @ ~/github/gitdirectory (master) $ but, this might be a bit odd: I want to only show the basename of the git directory, no matter where I ...
2
votes
2answers
57 views

installing a script in $PATH

I am trying to use yeoman in Ubuntu. Everything is installed correctly but I can't use the command yo from bash. If I navigate to the appropriate directory and run node cli.js everything works from ...
0
votes
1answer
44 views

What causes “bash: /bin: Is a directory” every time a terminal is opened? [closed]

This is initial screen I am getting on Ubuntu 12.04, when I open a terminal (Ctrl+Alt+T): That is, the text on the terminal is: bash: /bin: Is a directory chase@chase-desktop:~$ gedit ~/.bashrc ...
4
votes
2answers
113 views

Shell gives no prompt if auto completion is enabled (blinking cursor instead)

I tryed to enable shell autocompletion uncommenting the following lines in my .bashrc: # enable programmable completion features (you don't need to enable # this, if it's already enabled in ...
2
votes
0answers
58 views

how to easily make an Alias command permanent

I search everywhere and almost everyone was suggesting to open the ~/.bashrc or ~/.bash_aliases , then put the alias command there, I created a function name palias as permanent alias function and put ...
4
votes
1answer
59 views

Open terminal in current directory with tmux

I have a simple .bashrc file at the moment that allows me to always open the same terminal (reopen, actually) running tmux. The important part is shown below. The essence of this is that when you ...
8
votes
2answers
1k views

What does the first '.' do in . ~/.bashrc? [duplicate]

I saw a post about fix your alias in .bashrc. And he says after you put your alias in .bashrc , you need to use: . ~/.bashrc I do not quite understand what the first dot(' . ') does here. What's ...
2
votes
2answers
58 views

Bash Function Oblivion [duplicate]

I'm fairly new to Linux, as many of you may have noticed. What I speak particularly is adding personal, user-generated functions and alias in my .bashrc file. I'm not exactly sure how bash works but ...
3
votes
2answers
174 views

.bashrc shebang line reports command not found

Tried the following shebang lines: $ head -n2 .bashrc | od -c 0000000 357 273 277 # ! / b i n / b a s h \n $ bash bash: #!/bin/bash: No such file or directory .bashrc starts ...
0
votes
0answers
87 views

After exporting $PATH, commands don't work anymore

Trying installing Java, I tried to add it to the executable path with the line: export PATH=/usr/lib/jvm/jdk1.7.0_60/bin:$PATH in the system-wide /etc/bash.bashrc file. For some reason this ...
0
votes
0answers
36 views

Alias's in .bash* not working

I am trying to create an alias and it does not seem to be working. I have tried it with both .bashrc and .bash_aliases. If I open my terminal and perform source .bashrc, then they work OK. What am I ...
1
vote
0answers
20 views

Weird problem: can not connect network until a terminal is opened in Live system

Live system based on ubuntu server 12.04.2 with manual installed X and openbox. startx is in a shell script which is called in /etc/rc.local with su -l root -c /scriptsFolder/script.sh A program is ...
0
votes
1answer
184 views

TangoWithDjango .bashrc edit causing errors

I'm currently doing the Tango with Django module and I've edited my .bashrc as it lists. Appending [[ -s $HOME/.pythonbrew/etc/bashrc ]] && source $HOME/.pythonbrew/etc/bashrc to the end ...
2
votes
1answer
46 views

Need to exec $SHELL on new terminal for settings to work

Unsure what is interfering with my shell, on every new shell I need to exec $SHELL to get correct settings to take. I am getting this prompt by default sayth@sayth-TravelMate-5740G:~$ and after ...
-1
votes
2answers
62 views

Why doesn't the command finish

I have added this to .bashrc alias a='ap update && ap dist-upgrade -y && do-release-upgrade -d && ap check && ap autoremove -y && ap autoclean' So i can run ...
-1
votes
1answer
226 views

alias of nodejs as node on 14.04

i installed nodejs with apt-get on 14.04 When i do nodejs -v v0.10.25 and when i do node -v node : command not found. So i want to make alias of nodejs as node So i inserted a line in ...
1
vote
2answers
82 views

After being root, the custom .bashrc file no longer runs?

I modified my .bashrc file to customize my terminal. I modified the else PS1 statement to the one I needed and it works fine but when I login as root it switched back to the one it originally had. How ...
0
votes
1answer
35 views

Changing .bashrc to allow a call to “android” from any directory

I can successfully do the following command in the directory listed kn@MrComp:~/.android_os/adt-bundle-linux/sdk/tools$ android list targets Available Android targets: ---------- id: 1 or ...
0
votes
1answer
31 views

How to edit displayed bash name [duplicate]

I've done some googling, and looking around this stack overflow, but this one seems to elude me. How might I reduce/edit the displayed bash name on the terminal prompt? I.E. This: ...
-1
votes
1answer
186 views

Environment Variables and .bashrc [closed]

I need Help in this: that is how to do this Edit the setting file of the user. In our case it should be in the root directory of the user and the name is .bashrc or .bash_profile 2.- Add the ...
1
vote
3answers
371 views

Add a binary to my path

I have an executable. I want to execute the executable in terminal with name only like other commands. I can put my executable in /usr/local/bin or I could add its PATH to ~/.bashrc. Both will work. ...
0
votes
1answer
73 views

In .bashrc how to use the output of “uname -m” as path (I get error: “uname: No such file or directory”)?

In my $HOME/.bashrc I defined the following variable: ARCH="uname -m" Calling from the terminal: $ARCH I'd like to get: x86_64 and I get as I'd like: x86_64 But calling: local/$ARCH I'd ...
0
votes
2answers
109 views

unable to type commands in terminal

I was install mpi and I have given the path for it in the .bashrc and I closed my terminal and after some time again I opened terminal it's showing following error in the very first line followed by ...
0
votes
2answers
51 views

Where can I put commands that I want to run for all interactive, non-login shells?

Normally, in bash, the answer would be ~/.bashrc or /etc/bash.bashrc. But unfortunately Ubuntu is sourcing these files from ~/.profile and /etc/profile respectively. So, where should I put such ...
1
vote
2answers
207 views

No files in /etc/skel/ ; Can't restore .bashrc

I recently messed up my .bashrc file, which I mentioned in this question: Problem with installing Android developer files on Eclipse - messed up something with .bashrc, and I can't find a way to ...
1
vote
2answers
581 views

My terminal shows only a blank screen--How can it?

I recently installed Ubuntu 13.10. in the process of editing bash.bashrc file something went wrong and all of a sudden all i'm getting when I open my terminal is a blank screen. No directory names or ...
-2
votes
1answer
148 views

How to absalutely fully change terminal prompt to color

its mind bogglingly supprising how hard it is to TOTALLY change terminal prompt graphic featurs.... Like PS1 Or in my case color features.... I have edited /etc/bash.bashrc and ~/.bashrc and ...
1
vote
2answers
182 views

Merging Home Directories Breaks Readline/.bashrc

Over the last few days, I merged a home directory from a working install of 12.04 to an old home directory, I believe from an install of 10.04 (it was a bare driv) I got the new drive to load and ...
0
votes
1answer
126 views

Change a vps' welcome message

When I log into my sudo user on an Ubuntu vps, this message appears: There is a Quick installer available in /usr/sbin named quickinstaller.sh. It will give you the option of installing a LAMP ...
0
votes
0answers
66 views

Some help with my terminal

When I access the terminal it always comes out something like user @ ubuntu: ~ $ , but now after trying to install a .tar.gz driver for my printer (my PC still does not recognize it), I get only ...
-1
votes
1answer
189 views

How to install class bench using make all and bashrc [duplicate]

Class bench is program for Linux,Classbench duty is create packets and generate some rules which they call them filter set.In class bench there is three folder: trace_generator db_generator ...
1
vote
1answer
152 views

Synclient alias in .bashrc not responding

I created an alias to turn the mousepad off with synclient, but it does not respond as expected. After running the synclient touchpadoff=1 in the terminal however, the alias starts to work properly. ...
1
vote
1answer
383 views

Creating new user, inconsistent bash prompt

I've created a new user profile with: useradd kitty passwd kitty mkdir kitty chmod 0700 kitty chown -R kitty:kitty adduser kitty sudo #when I did it I initially didn't ...
0
votes
1answer
104 views

Display part of fortune in different color

I created a custom fortune file for my favourite tweets in the format tweet and then the @username in a new line. An Example is: "You've changed." "Yeah I know, I'm a Transformer." ...
1
vote
1answer
2k views

Commands not working after editing .bashrc file

I need to install a programming software called cuda for my academic purpose. Googling how to install it on my Ubuntu 10.04, I found these and I have done that. download the software cd ~/Downloads ...
5
votes
3answers
1k views

gnome-terminal does not allow changing the title

I've selected "Replace initial title" setting in gnome-terminal's preferences, but it just shows the default title "Terminal". After reading this answer, I added this to my .bashrc: ...
0
votes
1answer
3k views

How to reset .bashrc file which edited before to set PATH ANDROID sdk

bash: export: `/home/entw/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local /bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/bin': not a valid identifier bash: /home/entw/.bashrc: line 111: ...
0
votes
2answers
263 views

How to get original system command after overwriting it with a function?

I'm at a Hackathon right now so if someone would answer this soon, you'd be doing me a huge favor. I've written a function called ls() in my .bashrc that looks like this: ls() { if(some ...
3
votes
2answers
3k views

Changing behavior of bash prompt when functioning as root

Before you click away, this isn't the typical "how do I make my bash prompt have color" question. I've already customized my bash prompt to look like this: [user @ host]----[$(pwd)] $ where ...
0
votes
1answer
2k views

Bash alias not found stuck on my terminal

I was trying to make my Ubuntu connect to nexus tab and used the following command lines: echo "alias android-connect=\"mtpfs -o allow_other /media/GalaxyNexus\"" >> ~/.bashrc echo "alias ...
1
vote
1answer
129 views

Bash is printing (only) one of my aliases before every prompt

I think this is the relevant bit of my ~/.bashrc file: # enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors ...
4
votes
3answers
2k views

How can I shorten the bash prompt's current path to one letter per directory?

I can't remember where, but I've already seen the bash prompt's current path shortened in an interesting way: every directory contained in the path is replaced by its first letter only. For instance: ...
10
votes
1answer
8k views

Why is /etc/profile not invoked for non-login shells?

Login and non-login shell defined as: su - $USER # will give you a login shell bash # will give you a non-login shell /etc/profile is not invoked for non-login shells, such as when you start ...
1
vote
1answer
358 views

Terminal auto-closes with “command not found” error

I followed this guide in omg ubuntu. I've just replaced the "GalaxyNexus" with "AsusInfinity". Now terminal won't open printing this: And closing after that... What did the last 3 commands do ...
3
votes
1answer
186 views

Aliases - able to pass arguments?

I want to make an alias in my .bashrc or .bashrc_aliases file (probably the latter). Specifically, I want to call the clang command for my *.c file I'm writing. What I'm looking for is best summed up ...
2
votes
3answers
504 views

gsutil bashrc file path setting

Actually I have just installed gsutil by following the instructions here. But now when I am typing gsutil at command prompt I am getting following: No command was given. Choose one of -b, -d, -e, or ...
3
votes
2answers
516 views

How to check which terminal emulator is being currently used?

I have gnome-terminal and Guake installed. I want to give different startup messages to be displayed on these terminal emulators as they start. What code should I write in .bashrc so that this is ...
2
votes
1answer
2k views

What can cause my .profile file to not be loaded when a new terminal shell is initialized?

There are no errors in xsession and I don't have a .bash_login or .bash_profile file, so I'm 100% certain neither of those is loaded and thus cancels .profile loading. When I rename the .profile to ...
1
vote
2answers
718 views

dircolors/ls not being displayed correctly under NTFS drive

I've been messing around with the colours of the files under the .dircolor file, and it worked perfectly under the Linux folders. But whenever I try to ls to a NTFS folder all files are displayed ...