New answers tagged

1

shouldn't esacexport be esac export ? If the words are stick together your shell won't take it as an instruction


2

In bash's primary prompt ($PS1) all non-printable characters (e.g. escape sequences that change the color) have to be enclosed between literal \[ and \]. Similarly, for all other readline-based apps, such as gdb, non-printable characters in the prompt need to be enclosed between a 0x01 and a 0x02 byte. You can refer to these in .gdbinit as \001 and \002.


-1

In addition to the the information given by Braiam, you can copy the contents of the following .bashrc file as commented in How to restore .bashrc file?


0

If your dotfiles directory was deleted, meaning your bashrc points to a dir that does not exist try removing the destination before copying etc/skel/ cp --remove-destination /etc/skel/.bashrc ~/


1

Here is a way you can have a share mount at boot. First open a terminal, it should open at your home directory. Type the following: touch .smbcredentials then open ~/.smbcredentials in your favorite editor and add the following lines username=your user name password=you user password Save the file and open terminal again and type: sudo chmod 600 ...


2

What seem to be a working solution is using the curl command suggested by glenn jackman and the address suggested by Terrance. I haven't run into the hang yet so I don't know if it will through any errors but it seems to work well.. the new line is now curl --silent --output - --connect-timeout 1 --max-time 2 http://icanhazip.com/ which seems to be ...


1

In my case, simply the .bashrc loader lines were missing in .bash_profile # include .bashrc if it exists if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc" fi I added it manually and it worked with my fresh login


0

Make sure your masterScript.sh is executable by doing: chmod +x masterScript.sh If the script is not executable, the bash command cannot run it and you'll get these kind of error messages.


1

I tried this out .. I simply made it alias masterScript="cd /home/arun/Desktop/scripts && myMasterScript.sh"


2

Just create a function: function masterScript() { if [ -e /home/arun/Desktop/scripts/myMasterScript.sh ] then bash /home/arun/Desktop/scripts/myMasterScript.sh fi } And make sure your script is executable: chmod 755 /home/arun/Desktop/scripts/myMasterScript.sh



Top 50 recent answers are included