Tag Info

New answers tagged

1

First, in order to create a custom ls, the easiest way is to proceed as follows: Create a directory $HOME/bin Add $HOME/bin to your PATH. To do this, open the file ~/.bashrc in your favorite text editor, and add the following line to the end: export PATH=$HOME/bin:$PATH Note that it is important that you prepend $HOME/bin to your PATH, so that ...


1

Looks like you have Windows line endings (\r\n) instead of Unix line endings (\n). For example, look at the first set of error messages: ... token `$'in\r'' 'ash: /home/khaverim7/.bashrc: line 6: `case $- in What it should be, if \r (carriage return, which sends the cursor back to the first character in a line) were printed as \r: ... token `$'in\r'' ...


0

You can try the BashrcGenerator. This is by far the easiest way to get a prompt like you want. I've noticed that the colors defined here may be different from your own system, but that's a small issue. With the generated code you can change the colors yourself. Server user: export ...


0

When bash is invoked as an interactive login shell, or as a non-inter‐ active shell with the --login option, it first reads and executes com‐ mands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the ...



Top 50 recent answers are included