No matter what command I use or anything I always get a "-bash: (command): command not found" is there any fix? I have already tried reinstalling OSX.
What commands are you using? It's hard to say without more information.
You will likely need to add a few things to your PATH variable :
./
/bin
/usr/bin
/usr/sbin
/usr/local/bin
This is were 99% of the unix commands and applications reside. NOTE: this is just a list, use a command like this
set PATH=./:/bin:/usr/bin:/usr/sbin:/usr/local/bin/:$PATH$
or
export PATH=./:/bin:/usr/bin:/usr/sbin:/usr/local/bin/:$PATH$
To see your current PATH variable, use
echo $PATH$
I tried a "defaults write com.apple.dock no-glass -boolean YES"
Just a guess, but your .bashrc or .profile got the android stuff put into it. You could try editing those files to see how your path gets set. Plus you could put the export line you typed into the appropriate file so your path is always set properly.
BTW, that looks like a decent path, at least to start from. If it were me, I'd make sure that you had that export line in your .bashrc file. You can add to it as necessary.
If you're having trouble, post the contents of your .bashrc and .profile files along with the errors you're getting.
# System-wide .bashrc file for interactive bash(1) shells.
if [ -z "$PS1" ]; then
return
fi
PS1='\h:\W \u\$ '
# Make bash check its window size after a process completes
shopt -s checkwinsize
# Tell the terminal about the working directory at each prompt.
if [ "$TERM_PROGRAM" == "Apple_Terminal" ] && [ -z "$INSIDE_EMACS" ]; then
update_terminal_cwd() {
# Identify the directory using a "file:" scheme URL,
# including the host name to disambiguate local vs.
# remote connections. Percent-escape spaces.
local SEARCH=' '
local REPLACE='%20'
local PWD_URL="file://$HOSTNAME${PWD//$SEARCH/$REPLACE}"
printf '\e]7;%s\a' "$PWD_URL"
}
PROMPT_COMMAND="update_terminal_cwd; $PROMPT_COMMAND"
fi
# System-wide .profile for sh(1)
if [ -x /usr/libexec/path_helper ]; then
eval `/usr/libexec/path_helper -s`
fi
if [ "${BASH-no}" != "no" ]; then
[ -r /etc/bashrc ] && . /etc/bashrc
fi
Appears your /etc/profile and /etc/bashrc are missing. Pasting the contents of both files below. Hope it helps. (both files are root owned and permissions 444)
Contents of /etc/bashrc
Code:# System-wide .bashrc file for interactive bash(1) shells. if [ -z "$PS1" ]; then return fi PS1='\h:\W \u\$ ' # Make bash check its window size after a process completes shopt -s checkwinsize # Tell the terminal about the working directory at each prompt. if [ "$TERM_PROGRAM" == "Apple_Terminal" ] && [ -z "$INSIDE_EMACS" ]; then update_terminal_cwd() { # Identify the directory using a "file:" scheme URL, # including the host name to disambiguate local vs. # remote connections. Percent-escape spaces. local SEARCH=' ' local REPLACE='%20' local PWD_URL="file://$HOSTNAME${PWD//$SEARCH/$REPLACE}" printf '\e]7;%s\a' "$PWD_URL" } PROMPT_COMMAND="update_terminal_cwd; $PROMPT_COMMAND" fi
Contents of /etc/profile
Code:# System-wide .profile for sh(1) if [ -x /usr/libexec/path_helper ]; then eval `/usr/libexec/path_helper -s` fi if [ "${BASH-no}" != "no" ]; then [ -r /etc/bashrc ] && . /etc/bashrc fi
Hopefully you have the /usr/libexec/path_helper file. If not, let me know and I will upload or email it.
So I checked both of those files and they are complete and containing those codes exact.
I did also have the path_helper file. When I ran $ /usr/libexec/path_helper I got?
PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/codyfoster/Documents/android-sdk-mac/tools"; export PATH;
Anything more? Did I screw the pooch? When I try to set the path, nothing happens, I hit enter and it just drops back like I never entered anything. I typed in
export PATH=./:/bin:/usr/bin:/usr/sbin:/usr/local/bin/:$PATH$
and now when I type echo $bash$ nothing but a $ shows up again.
I am having the EXACT same problem, with Android SDK as well. My phone is semi-bricked, I figured to fix that using ADB connection and failed, making the terminal to just not work at all. I am currently reading everywhere about this problem and still don't have any clue on how to fix it...
display dialog "Show or hide files in Finder?" buttons {"Cancel", "hideFiles", "showFiles"} default button 3
if the button returned of the result is "showFiles" then
-- action for 1st button goes here
do shell script "defaults write com.apple.finder AppleShowAllFiles YES; killall Finder"
else
-- action for 2nd button goes here
do shell script "defaults write com.apple.finder AppleShowAllFiles NO; killall Finder"
end if
/usr/sbin/chown
do shell script "/usr/bin/defaults write com.apple.finder AppleShowAllFiles YES; killall Finder"
Note : In case the the do shell script line doesn't work because of the messed up PATH you can use :
Code:do shell script "/usr/bin/defaults write com.apple.finder AppleShowAllFiles YES; killall Finder"
echo $PATH