How to include a script in a ~/.bashrc when using Linux.
How to include a script in your ~/.bashrc and see the output in your terminal window. This is a great Linux tip and would be indispensable if you have custom scripts.
How to include a script in your ~/.bashrc and see the output in your terminal window. This is a great Linux tip and would be indispensable if you have custom scripts.
Setting up your BASH prompt. A nice BASH shell prompt. This shows the current time and the current folder you are in as well as a full directory path if you are in a subfolder. PS1="-\t– \u@\h [\w]\$ "PS1="-\t– \u@\h [\w]\$ " How to set the contents of the Xterm title bar. Using the PROMPT_COMMAND … Read more
Setting up a bash shell is a lot of fun, there are a lot of ways to configure the bash shell to work just the way you wish it to. Using Linux makes this very easy. The bash shell has a few files that help it perform various functions. The .bash_logout file executes when the … Read more
By default, Macintosh OSX does not read the .bashrc file when you login to the operating system. But it does read the .bash_profile script if it does exist. Therefore, create the .bash_profile in your home directory and put this in it. if [ -s ~/.bashrc ]; then source ~/.bashrc; fiif [ -s ~/.bashrc ]; then … Read more
A very nice .vimrc file for any Linux user, this makes VI or VIM easier to use. " ~/.vimrc (configuration file for vim only) " skeletons function! SKEL_spec() 0r /usr/share/vim/current/skeletons/skeleton.spec language time en_US if $USER != ” let login = $USER elseif $LOGNAME != ” let login = $LOGNAME else let login = ‘unknown’ endif … Read more
Linux configuration files Here are a few useful Linux configuration files to get your installation setup and working just fine. ~/.vimrc. This is to setup the VIM editor and make it easier to use for the average Linux user. " ~/.vimrc (configuration file for vim only) " skeletons function! SKEL_spec() 0r /usr/share/vim/current/skeletons/skeleton.spec language time en_US … Read more