Comments on: How and Why to Make a BASH Alias https://wpshout.com/make-bash-alias/ A hub for advanced WordPress users, developers & savvy business owners. Tue, 23 Feb 2021 16:47:54 +0000 hourly 1 https://wordpress.org/?v=6.4.3 By: Adriana https://wpshout.com/make-bash-alias/#comment-21846 Fri, 24 Jan 2020 19:06:29 +0000 https://wpshout.com/?post_type=quick_guide&p=12103#comment-21846 In reply to mountainrescuer.

Thanks a lot David and Scott. this hint has minimized time spent not only on commands but also navigating between directories.

]]>
By: Anton https://wpshout.com/make-bash-alias/#comment-21845 Tue, 14 Jan 2020 19:56:35 +0000 https://wpshout.com/?post_type=quick_guide&p=12103#comment-21845 In reply to T13E.

You can just add the following to .bash_profile and the .bashrc file will work as above:

if[ -f “$HOME/.bashrc” ] ; then
source $HOME/.bashrc
fi

]]>
By: mountainrescuer https://wpshout.com/make-bash-alias/#comment-21844 Thu, 07 Mar 2019 23:59:59 +0000 https://wpshout.com/?post_type=quick_guide&p=12103#comment-21844 In reply to Scott.

Thanks for the additional info Scott.

This, plus the initial info from David (and T13E) has saved me so much time!

]]>
By: David Hayes https://wpshout.com/make-bash-alias/#comment-21843 Wed, 06 Mar 2019 23:13:09 +0000 https://wpshout.com/?post_type=quick_guide&p=12103#comment-21843 In reply to Scott.

Great tip, Scott! I didn’t realize that but it makes perfect sense 🙂

]]>
By: Scott https://wpshout.com/make-bash-alias/#comment-21842 Tue, 05 Mar 2019 20:46:45 +0000 https://wpshout.com/?post_type=quick_guide&p=12103#comment-21842 Also, note that you don’t need to close the trminal to have the aliases take effect. You should be able to type

source .bash_profile

and the file will reload.

]]>
By: T13E https://wpshout.com/make-bash-alias/#comment-21841 Thu, 28 Feb 2019 08:50:36 +0000 https://wpshout.com/?post_type=quick_guide&p=12103#comment-21841 On OSX Mojave, .bash_profile seems to be the correct place to add this. Thanks for the guide!

]]>
By: Sunil https://wpshout.com/make-bash-alias/#comment-21840 Wed, 16 Jan 2019 18:29:41 +0000 https://wpshout.com/?post_type=quick_guide&p=12103#comment-21840 In reply to Mats.

Thank you

]]>
By: Mats https://wpshout.com/make-bash-alias/#comment-21839 Fri, 11 Jan 2019 15:44:01 +0000 https://wpshout.com/?post_type=quick_guide&p=12103#comment-21839 If the file .bashrc has the following text

if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

All aliases are stored in that file.

]]>