Announcement

Collapse
No announcement yet.

Konsole start - bash: /home/bumpy/.bash_aliases: No such file or directory

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Konsole start - bash: /home/bumpy/.bash_aliases: No such file or directory

    bash: /home/bumpy/.bash_aliases: No such file or directory

    File: .bashrc excerpt:
    ~/.bash_aliases
    DIGIKAMROOT="/root/home/bumpy"
    alias digikam-dev="KDESYCOCA='$DIGIKAMROOT/var/tmp/kde-neb/ksycoca4' KDE_FORK_SLAVES=1 LD_LIBRARY_PATH='$DIGIKAMROOT/lib64/' KDEDIRS='$DIGIKAMROOT' $DIGIKAMROOT/bin/digikam"

    # Alias definitions.
    # You may want to put all your additions into a separate file like
    # ~/.bash_aliases, instead of adding them here directly.
    # See /usr/share/doc/bash-doc/examples in the bash-doc package.
    There is no such file "/usr/share/doc/bash-doc" in my kubuntu 12.10 system.

    Can I put the aliases in /home/bin (which is empty), & if so how do I do this without messing up my system?

    #2
    see this thread http://www.kubuntuforums.net/showthr...hlight=aliases

    VINNY
    i7 4core HT 8MB L3 2.9GHz
    16GB RAM
    Nvidia GTX 860M 4GB RAM 1152 cuda cores

    Comment


      #3
      Your .bashrc is trying to run .bash_aliases and doesn't find it. However, it won't work like that because it's being run in a subprocess, which will not affect your login shell. The invocation needs to be
      Code:
      source .bash_aliases
      or
      Code:
      . .bash_aliases
      If you only want a few I'd suggest deleting the offending line and defining them in .bashrc as I do. (I have a bunch of bash functions, a more capable mechanism, and have a separate .bash_functions for them.) If you want a lot, and have their definitions in /bin, I suggest creating ˝/bin/bash_aliases and sourcing them from .bashrc:
      Code:
      source ~/bin/bash_aliases
      Regards, John Little
      Last edited by jlittle; Apr 20, 2013, 10:56 PM. Reason: swiftkey always tries to mess up periods
      Regards, John Little

      Comment

      Working...
      X