Monday 15 September 2014

Why do I keep getting `bash: local: command not found` -



Why do I keep getting `bash: local: command not found` -

keep getting error:

bash:   local: command not found bash:   local: command not found bash:   local: command not found bash:   local: command not found bash:   local: command not found bash:   local: command not found bash:   local: command not found bash:   local: command not found bash:   local: command not found bash:   local: command not found bash:   local: command not found bash:   local: command not found bash:   local: command not found bash:   local: command not found bash:   local: command not found bash:   local: command not found bash:   local: command not found bash:   export: command not found bash:   export: command not found bash: ~/.bash_profile: no such file or directory

here bash_profile:

when comment out prompt function, error goes away except lastly one!

alias ngrok=/users/mmahalwy/desktop/code/ngrok export clicolor=1 export lscolors=gxfxcxdxbxegedabagaced alias ls='ls -gfh' function prompt { local black="\[\033[0;30m\]" local blackbold="\[\033[1;30m\]" local red="\[\033[0;31m\]" local redbold="\[\033[1;31m\]" local green="\[\033[0;32m\]" local greenbold="\[\033[1;32m\]" local yellow="\[\033[0;33m\]" local yellowbold="\[\033[1;33m\]" local blue="\[\033[0;34m\]" local bluebold="\[\033[1;34m\]" local purple="\[\033[0;35m\]" local purplebold="\[\033[1;35m\]" local cyan="\[\033[0;36m\]" local cyanbold="\[\033[1;36m\]" local white="\[\033[0;37m\]" local whitebold="\[\033[1;37m\]" local resetcolor="\[\e[00m\]" export ps1="\n$red\u $purple@ $green\w $blue[\#] → $resetcolor" export ps2="| → $resetcolor" } # prompt export path=/usr/local/bin:$path source ~/.git-completion.bash

if local genuinely not available (for instance, disabled enable -n local), seeing:

bash: local: command not found

instead of:

bash: local: command not found

those spaces clue. closely @ file (with hex editor, if have to), , figure out bytes aren't either spaces or tabs are... , alter them genuine ascii space characters.

there several non-breaking space variants found in unicode; i'm guessing somehow got script. copy-and-pasting code web can dangerous. :)

bash

No comments:

Post a Comment