bashrc's questions - English 1answer

485 bashrc questions.

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 ...

I need to add the following lines to the end of .bashrc file in Ubuntu. How can I add these lines automatically using a script. If I run the script, then it automatically inserts the lines at the end ...

There are lots of questions about .bashrc. But I couldn't have found anything about this one: why are there two .bashrcs? ~/.bashrc and /etc/skel/.bashrc. When I compare them, I find no difference. ...

I have an Intel module which I need to load whenever I start konsole|terminal. After adding this module directly into .bashrc, it's giving me problem upon logging in. Is there some way I could avoid ...

I installed texlive and I want to add it as an environment variable to my Path so that Emacs AucTeX can read it when I start emacs from the GUI or from the command line. So far I've read that emacs ...

If I open emacs from the command line, it loads my .bashrc and correctly sets my paths. M-: (getenv "PATH") Returns my actual $PATH variable. If I open emacs from the command line, pin the icon to ...

See my edit below, this is not totally a duplicate of Shell prompt customization and cmd behavior My reverse-search function in the CLI is broken and I don't know how to fix it back... When I hit ...

I want to remove texlive from my PATH after deleting it with rm -rf command and I have deleted the path for texlive in .bashrc but when i run the command: echo $PATH I'm still seeing texlive in my ...

My $PS1 variable is \[\033[36m\][\[\033[m\]\[\033[34m\]\u@\h\[\033[m\] \[\033[32m\]\W\[\033[m\]\[\033[36m\]]\[\033[m\] $ I wish to maintain the same colors and text but make the prompt appear in ...

In my 16.04 installation I put this in my ~/.bashrc file: #Show git branch in commandline parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' } export PS1=...

I have a source command which i have to manually run every time I open a new terminal. source /opt/ros/groovy/setup.bash Thus I added the command into the .bashrc file. However the does not seem to ...

How will I make this /media/De Soft/mongodb/bin PATH variable permanent? Everyone is saying export PATH=$PATH:media/De\ Soft/mongodb/bin to your ~/.profile, or .bashrc, or .zshenv depending on your ...

I want my bash script (specifically my ~/.bashrc) to do something only if the terminal was opened by me directly, and do something else if it was opened through an app e.g. VS Code. How can I ...

I'd like to edit my .bashrc so that every command executed on the shell is piped to something, for example: $ sudo apt update _________________ < sudo apt update > ----------------- \ ...

Sorry if it is an extremely stupid noob question, but I am not an expert and I cannot find any adequate response on this or other forums. I am running Ubuntu 18.04 x64 and I'm working with Intel ...

Trying to modify /etc/bash.bashrc I get an error: $ echo "my edit" >> /etc/bash.bashrc bash: /etc/bash.bashrc: Permission denied ls -ll /etc/bash.bashrc shows: -rw-r--r-- 1 root root 1975 ...

Normally we can source ~/.bashrc file using this command source ~/.bashrc but if I write this in a shell script and execute it, nothing happen. Why? Is there any way to do this? my shell code: #!/...

I use this option to read what I need and use the screen space properly: export PS1='\[\033[0;35m\]\h\[\033[0;33m\] \W\[\033[00m\]: ' But sometimes is not saved I mean after login out and in again ...

Using Ubuntu 14.04, was trying to set simply JAVA PATH (that is where the saga began) now linux seems totally corrupted. I initially edited the PATH in etc/environment (that is where my PATH seems to ...

I would like to install cryoSPARC, and looking through the readme it looks like this program requires that the user use bash as their default shell. At the moment I'm using tcsh, and have built up a ....

I am a beginner Ubuntu user: I ran the command . ~/.bash_aliases and now anytime I open Ubuntu on my windows laptop, it reads 2 files to edit, opens each of the files and I press quit every time to ...

Some of the similar questions don't quite seem to match with my question. What I'm trying to do is to have .bashrc (or similar) to only run certain custom commands when I launch it from within the GUI ...

I have this awk command to increment a number inside a file: awk -F"." '{$4=$4<=99?$4+1:0;print}' OFS="." post_all/version.ini > tmp && mv tmp post_all/version.ini This works fine from ...

I saw a Ubuntu Bash under Windows 10 terminal splash screen here: Windows Subsystem for Linux display Linux distribution? How can I change my ~/.bashrc to get a Ubuntu under Linux terminal splash ...

I checked by ls -al in my home directory but I don't see .bashrc file in my home directory. Ubuntu 18.04 release notes does not mention anything about this. I installed it without formatting previous /...

I ran 2 separate installation instructions for gym pip install gym and git clone https://github.com/openai/gym cd gym pip install -e and then ran python import gym and get the output ...

As per the title, I'm wondering why I have (base) on the left of my terminal prompt. If I run source ~/.profile in the terminal, it disappears. If I close that terminal and reopen a new terminal, (...

I have installed opencv 3.4.1 correctly on my system enviroment. But after I create a conda virtual environment using opencv3.2.0, it leads some problems here: Under the conda virtual env, I have to ...

Just installed Ubuntu 14.04.1 LTS. According to .profile, # ~/.profile: executed by the command interpreter for login shells. # This file is not read by bash, if ~/.bash_profile or ~/.bash_login ...

I used this command to change the PS1 settings sudo gedit /etc/bashrc When I change my PS1 settings I get this. See also my question earlier today to see the whole problem I have (gedit:10788): ...

I have added several lines to be executed in systemwide /etc/bash.bashrc such as notifying a login via email, etc. I have noticed that upon exit which invokes logout, systems prints those lines to the ...

I have been playing with colorized prompts, set in .bashrc. The problem is I always need to source the .bashrc after logging in. When I log in, I can see the file is sourced (I tried adding an echo "...

The code in .bashrc does not execute when I open a new terminal window in Ubuntu 12.04. I noticed this when creating a .bash_aliases file. The aliases did not show up when I opened a new terminal. ...

I've edited my .bashrc file because of errors like the one below keeps popping every time I open a terminal. Command 'ls' is available in '/bin/ls' The command could not be located because '/bin' is ...

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 ...

I'm running Ubuntu 17.10.1 and have downloaded sumo 0.32.0 from the Ubuntu respository via Synaptic. Configuration instructions assert that SUMO_HOME should be set in the "base directory" of the ...

set-title ?? I just discover some trick that I use to change a bash-terminal title on the terminal. Here how it works : #function set-title() on terminal function set-title() { if [[ -z "$ORIG" ]...

I've modified my Ubuntu 17.10 system to make it look like macOS. Now I'm confused about how my terminal behaves. Line breaks do not appear correctly. This video shows what I mean. The modified file ...

Refer to a comment here I wanted to ask to the poster the question where to copy the .bashrc file to. Because copying it to the home of the user does not enable the auto color ls command. Please, can ...

I add an alias to `~/.bashrc and activate it. # add some helpful aliases alias l.='ls -d .* --color=auto' Activate it: source .bashrc It work well on current bash. $ l. ls: --color=auto: No such ...

I added a function to my .bashrc to parse the git branch I'm currently working in and display it in my bash-prompt according to several tutorials on this topic. My code snippet looks like this: ...

I don't know how to phrase this to be clear. I'm not talking about terminals or shells, I know what the difference between login and non-login shells are. What I want to know is when I start up my ...

I created the file ~/.bash_aliases within these lines: # my alias here eclipse="eclipse</dev/null &>/dev/null &" okular="okular</dev/null &>/dev/null &" libre="...

The terminal on my Ubuntu 17.10 didn't have any text colors, So I found a solution and got it fixed in .bashrc, so now my terminal have text colors. But the problem is every time I open a new tab in ...

I want to change the colour of a specific letter in my username being displayed by PS1 in bash. Eg: If my \u is rahul, I would like the letter h to be in blue colour and rest to be white. I do know ...

Problem I have an Ubuntu 11.04 Virtual Machine and I wanted to set up my Java development environment. I did as follows sudo apt-get install openjdk-6-jdk Added the following entries to ~/....

looks like there is something wrong with the bash-completion in my Ubuntu 16.04. Tried almost everything... reinstalled it, changed the bashrc file (below code), relaunched the terminal etc. Nothing ...

Is it possible to change the colors in the command prompt for the user@computer, as well as the the current directory and command parts of the prompt display? I've already seen something like this ...

I recently installed Android Studio on my Ubuntu 16.04 LTS. Now, I have two queries: Is it necessary to set up the PATH variable? If yes, what would be the right approach to do that. I researched ...

I recently installed OpenFOAM by this youtube video https://www.youtube.com/watch?v=cKyHFwfGpVQ the software seems working but when I restart my PC and log in I find this error message Error found ...

Related tags

Hot questions

Language

Popular Tags