Note that there are some explanatory texts on larger screens.

plurals
  1. POAdding git alias to .bash_profile not working
    primarykey
    data
    text
    <p>I edited my $Home .bash_profile to include some git alias commands. I am rather new to this and I can't figure out what went wrong.</p> <p><strong>.bash_profile</strong></p> <pre><code>alias gs='git status ' alias ga='git add ' alias gb='git branch ' alias gc='git commit' alias gd='git diff' alias go='git checkout ' alias gk='gitk --all&amp;' alias gx='gitx --all' alias got='git ' alias get='git ' PS1="\u$ " alias ll="ls -lahG" [[ -s "$HOME/.rvm/scripts/rvm" ]] &amp;&amp; \ . "$HOME/.rvm/scripts/rvm" [[ -s "$HOME/.rvm/scripts/rvm" ]] &amp;&amp; \ . "$HOME/.rvm/scripts/rvm" [[ -s "$HOME/.rvm/scripts/rvm" ]] &amp;&amp; \ . "$HOME/.rvm/scripts/rvm" [[ -s "$HOME/.rvm/scripts/rvm" ]] &amp;&amp; \ . "$HOME/.rvm/scripts/rvm" export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH" [[ -s "$HOME/.rvm/scripts/rvm" ]] &amp;&amp; \ . "$HOME/.rvm/scripts/rvm" [[ -s "$HOME/.rvm/scripts/rvm" ]] &amp;&amp; \ . "$HOME/.rvm/scripts/rvm" [[ -s "$HOME/.rvm/scripts/rvm" ]] &amp;&amp; . "$HOME/.rvm/scripts/rvm" # Load RVM function </code></pre> <p>I can't seem to understand what I did wrong. Any ideas?</p> <p><strong>[EDIT]</strong> Just wanted to mention that the part that I added is from PS1 up. For example <code>alias ll = "ls -lahG"</code> works well. The ones above do not.</p> <p><strong>[EDIT2]</strong> I tried to user gs(){ git status "$*"; } instead but that didn't seem to do the trick.</p> <p><strong>[EDIT3]</strong> The problem was that I had to source ~/.profile. What I ended up doing is putting it in the ~/.bashrc file and source that file at Sputnick's recommendation. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload