-bash: gt: command not found [closed]Get the source directory of a Bash script from within the script itselfHow do I parse command line arguments in Bash?How to check if a string contains a substring in BashHow to check if a program exists from a Bash script?How do I tell if a regular file does not exist in Bash?How do I split a string on a delimiter in Bash?Extract filename and extension in BashHow to concatenate string variables in BashHow do I set a variable to the output of a command in Bash?Echo newline in Bash prints literal n
Why do we need a voltage divider when we get the same voltage at the output as the input?
Gold Battle KoTH
Why does the U.S (and other Republics) not have separate capital cities for each branch of government?
A conjectural trigonometric identity
How do discovery writers hibernate?
How do I solve such questions on paramagnetism and ferromagnetism?
Return last number in sub-sequences in a list of integers
Meaning of 誰かの代わりに
Can living where (rare) earth magnetic ore is abundant provide a mini-magnetoshere?
Should I put my name first or last in the team members list?
Why are sugars in whole fruits not digested the same way sugars in juice are?
Applying for mortgage when living together but only one will be on the mortgage
Password management for kids - what's a good way to start?
What's the term for a group of people who enjoy literary works?
Plotting Chebyshev polynomials using PolarPlot and FilledCurve
Python π = 1 + (1/2) + (1/3) + (1/4) - (1/5) + (1/6) + (1/7) + (1/8) + (1/9) - (1/10) ...1748 Euler
Does the problem of P vs NP come under the category of Operational Research?
How do I respond appropriately to an overseas company that obtained a visa for me without hiring me?
Why have both: BJT and FET transistors on IC output?
Is there a general term for the items in a directory?
Word to describe someone doing something even though told not to
Does the use of a new concept require a prior definition?
PI 4 screen rotation from the terminal
Can I say "Gesundheit" if someone is coughing?
-bash: gt: command not found [closed]
Get the source directory of a Bash script from within the script itselfHow do I parse command line arguments in Bash?How to check if a string contains a substring in BashHow to check if a program exists from a Bash script?How do I tell if a regular file does not exist in Bash?How do I split a string on a delimiter in Bash?Extract filename and extension in BashHow to concatenate string variables in BashHow do I set a variable to the output of a command in Bash?Echo newline in Bash prints literal n
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I downloaded some GitHub file a long time ago that I honestly don't even need anymore. Anyways, now whenever I open/start or even do anything, it gives me this error that says
-bash: gt: command not found
-bash: /dev/null: Permission denied
fatal: Not a valid object name: 'master'.
Also, instead of saying
user@ubuntu; ~ $
It says
->> ~ $
I'm also on Mac running a Terminal clone
bash ubuntu terminal
closed as off-topic by ruakh, John Kugelman, Shawn, tripleee, double-beep Apr 5 at 11:32
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Reproducible Example." – Shawn, tripleee
|
show 5 more comments
I downloaded some GitHub file a long time ago that I honestly don't even need anymore. Anyways, now whenever I open/start or even do anything, it gives me this error that says
-bash: gt: command not found
-bash: /dev/null: Permission denied
fatal: Not a valid object name: 'master'.
Also, instead of saying
user@ubuntu; ~ $
It says
->> ~ $
I'm also on Mac running a Terminal clone
bash ubuntu terminal
closed as off-topic by ruakh, John Kugelman, Shawn, tripleee, double-beep Apr 5 at 11:32
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Reproducible Example." – Shawn, tripleee
1
Can you post your.bashrc? (minus any secret stuff, of course)
– jwir3
Mar 27 at 0:34
"The file /Users/gizmopena/.bashrc does not exist". Also sry im a noob
– Gizmo
Mar 27 at 0:41
1
Hm, interesting. So, when you say "I downloaded some GitHub file a long time ago", presumably you mean you added something from GitHub to your startup. Is this correct? Could you run this command for me:echo $SHELL
– jwir3
Mar 27 at 0:45
In github you need to click the "Raw" button before downloading a file. Otherwise, you're probably downloading the HTML rendering of the file. If you open/edit the file you downloaded, it should be evident. Does/Usersexist? That doesn't sound like a normal Ubuntu home folder for user accounts. Usually it's/home/.... If you login, what do you get when you enterpwd?
– lurker
Mar 27 at 0:45
Do any of~/.bash_profile,~/.bash_login, or~/.profileexist? If so, what do they contain?
– Gordon Davisson
Mar 27 at 1:38
|
show 5 more comments
I downloaded some GitHub file a long time ago that I honestly don't even need anymore. Anyways, now whenever I open/start or even do anything, it gives me this error that says
-bash: gt: command not found
-bash: /dev/null: Permission denied
fatal: Not a valid object name: 'master'.
Also, instead of saying
user@ubuntu; ~ $
It says
->> ~ $
I'm also on Mac running a Terminal clone
bash ubuntu terminal
I downloaded some GitHub file a long time ago that I honestly don't even need anymore. Anyways, now whenever I open/start or even do anything, it gives me this error that says
-bash: gt: command not found
-bash: /dev/null: Permission denied
fatal: Not a valid object name: 'master'.
Also, instead of saying
user@ubuntu; ~ $
It says
->> ~ $
I'm also on Mac running a Terminal clone
bash ubuntu terminal
bash ubuntu terminal
edited Mar 27 at 14:54
Gizmo
asked Mar 27 at 0:22
GizmoGizmo
12 bronze badges
12 bronze badges
closed as off-topic by ruakh, John Kugelman, Shawn, tripleee, double-beep Apr 5 at 11:32
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Reproducible Example." – Shawn, tripleee
closed as off-topic by ruakh, John Kugelman, Shawn, tripleee, double-beep Apr 5 at 11:32
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Reproducible Example." – Shawn, tripleee
closed as off-topic by ruakh, John Kugelman, Shawn, tripleee, double-beep Apr 5 at 11:32
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Reproducible Example." – Shawn, tripleee
1
Can you post your.bashrc? (minus any secret stuff, of course)
– jwir3
Mar 27 at 0:34
"The file /Users/gizmopena/.bashrc does not exist". Also sry im a noob
– Gizmo
Mar 27 at 0:41
1
Hm, interesting. So, when you say "I downloaded some GitHub file a long time ago", presumably you mean you added something from GitHub to your startup. Is this correct? Could you run this command for me:echo $SHELL
– jwir3
Mar 27 at 0:45
In github you need to click the "Raw" button before downloading a file. Otherwise, you're probably downloading the HTML rendering of the file. If you open/edit the file you downloaded, it should be evident. Does/Usersexist? That doesn't sound like a normal Ubuntu home folder for user accounts. Usually it's/home/.... If you login, what do you get when you enterpwd?
– lurker
Mar 27 at 0:45
Do any of~/.bash_profile,~/.bash_login, or~/.profileexist? If so, what do they contain?
– Gordon Davisson
Mar 27 at 1:38
|
show 5 more comments
1
Can you post your.bashrc? (minus any secret stuff, of course)
– jwir3
Mar 27 at 0:34
"The file /Users/gizmopena/.bashrc does not exist". Also sry im a noob
– Gizmo
Mar 27 at 0:41
1
Hm, interesting. So, when you say "I downloaded some GitHub file a long time ago", presumably you mean you added something from GitHub to your startup. Is this correct? Could you run this command for me:echo $SHELL
– jwir3
Mar 27 at 0:45
In github you need to click the "Raw" button before downloading a file. Otherwise, you're probably downloading the HTML rendering of the file. If you open/edit the file you downloaded, it should be evident. Does/Usersexist? That doesn't sound like a normal Ubuntu home folder for user accounts. Usually it's/home/.... If you login, what do you get when you enterpwd?
– lurker
Mar 27 at 0:45
Do any of~/.bash_profile,~/.bash_login, or~/.profileexist? If so, what do they contain?
– Gordon Davisson
Mar 27 at 1:38
1
1
Can you post your
.bashrc? (minus any secret stuff, of course)– jwir3
Mar 27 at 0:34
Can you post your
.bashrc? (minus any secret stuff, of course)– jwir3
Mar 27 at 0:34
"The file /Users/gizmopena/.bashrc does not exist". Also sry im a noob
– Gizmo
Mar 27 at 0:41
"The file /Users/gizmopena/.bashrc does not exist". Also sry im a noob
– Gizmo
Mar 27 at 0:41
1
1
Hm, interesting. So, when you say "I downloaded some GitHub file a long time ago", presumably you mean you added something from GitHub to your startup. Is this correct? Could you run this command for me:
echo $SHELL– jwir3
Mar 27 at 0:45
Hm, interesting. So, when you say "I downloaded some GitHub file a long time ago", presumably you mean you added something from GitHub to your startup. Is this correct? Could you run this command for me:
echo $SHELL– jwir3
Mar 27 at 0:45
In github you need to click the "Raw" button before downloading a file. Otherwise, you're probably downloading the HTML rendering of the file. If you open/edit the file you downloaded, it should be evident. Does
/Users exist? That doesn't sound like a normal Ubuntu home folder for user accounts. Usually it's /home/.... If you login, what do you get when you enter pwd?– lurker
Mar 27 at 0:45
In github you need to click the "Raw" button before downloading a file. Otherwise, you're probably downloading the HTML rendering of the file. If you open/edit the file you downloaded, it should be evident. Does
/Users exist? That doesn't sound like a normal Ubuntu home folder for user accounts. Usually it's /home/.... If you login, what do you get when you enter pwd?– lurker
Mar 27 at 0:45
Do any of
~/.bash_profile, ~/.bash_login, or ~/.profile exist? If so, what do they contain?– Gordon Davisson
Mar 27 at 1:38
Do any of
~/.bash_profile, ~/.bash_login, or ~/.profile exist? If so, what do they contain?– Gordon Davisson
Mar 27 at 1:38
|
show 5 more comments
1 Answer
1
active
oldest
votes
It appears that your shell prompt (stuff that your shell shows when waiting for you to enter some command) contains wrong characters. Looking at .bash_profile you've provided in the comments, it appears that PS1 variable definition contains weird characters, plus it calls parse_git_branch function that itself has a number of issues (most likely the result of HTML copy/paste).
You have 2 options:
- Remove the function and redefine PS1 to something more useful. Your
.bash_profilewould look something like this:
export CLICOLOR=1
export LSCOLORS=GxBxCxDxexegedabagaced
export PS1="[u@h W] $ "
- Just fix copy/paste issues to bring your prompt to its intended form, which is "show me the current working directory and, when available, current git branch":
export CLICOLOR=1
export LSCOLORS=GxBxCxDxexegedabagaced
parse_git_branch() sed -e '/^[^*]/d' -e 's/* (.*)/ (1)/'
export PS1="[e[0;35m]->> [e[1;34m]W[e[0;32m]$(parse_git_branch)[e[0;37m] $ "
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
It appears that your shell prompt (stuff that your shell shows when waiting for you to enter some command) contains wrong characters. Looking at .bash_profile you've provided in the comments, it appears that PS1 variable definition contains weird characters, plus it calls parse_git_branch function that itself has a number of issues (most likely the result of HTML copy/paste).
You have 2 options:
- Remove the function and redefine PS1 to something more useful. Your
.bash_profilewould look something like this:
export CLICOLOR=1
export LSCOLORS=GxBxCxDxexegedabagaced
export PS1="[u@h W] $ "
- Just fix copy/paste issues to bring your prompt to its intended form, which is "show me the current working directory and, when available, current git branch":
export CLICOLOR=1
export LSCOLORS=GxBxCxDxexegedabagaced
parse_git_branch() sed -e '/^[^*]/d' -e 's/* (.*)/ (1)/'
export PS1="[e[0;35m]->> [e[1;34m]W[e[0;32m]$(parse_git_branch)[e[0;37m] $ "
add a comment |
It appears that your shell prompt (stuff that your shell shows when waiting for you to enter some command) contains wrong characters. Looking at .bash_profile you've provided in the comments, it appears that PS1 variable definition contains weird characters, plus it calls parse_git_branch function that itself has a number of issues (most likely the result of HTML copy/paste).
You have 2 options:
- Remove the function and redefine PS1 to something more useful. Your
.bash_profilewould look something like this:
export CLICOLOR=1
export LSCOLORS=GxBxCxDxexegedabagaced
export PS1="[u@h W] $ "
- Just fix copy/paste issues to bring your prompt to its intended form, which is "show me the current working directory and, when available, current git branch":
export CLICOLOR=1
export LSCOLORS=GxBxCxDxexegedabagaced
parse_git_branch() sed -e '/^[^*]/d' -e 's/* (.*)/ (1)/'
export PS1="[e[0;35m]->> [e[1;34m]W[e[0;32m]$(parse_git_branch)[e[0;37m] $ "
add a comment |
It appears that your shell prompt (stuff that your shell shows when waiting for you to enter some command) contains wrong characters. Looking at .bash_profile you've provided in the comments, it appears that PS1 variable definition contains weird characters, plus it calls parse_git_branch function that itself has a number of issues (most likely the result of HTML copy/paste).
You have 2 options:
- Remove the function and redefine PS1 to something more useful. Your
.bash_profilewould look something like this:
export CLICOLOR=1
export LSCOLORS=GxBxCxDxexegedabagaced
export PS1="[u@h W] $ "
- Just fix copy/paste issues to bring your prompt to its intended form, which is "show me the current working directory and, when available, current git branch":
export CLICOLOR=1
export LSCOLORS=GxBxCxDxexegedabagaced
parse_git_branch() sed -e '/^[^*]/d' -e 's/* (.*)/ (1)/'
export PS1="[e[0;35m]->> [e[1;34m]W[e[0;32m]$(parse_git_branch)[e[0;37m] $ "
It appears that your shell prompt (stuff that your shell shows when waiting for you to enter some command) contains wrong characters. Looking at .bash_profile you've provided in the comments, it appears that PS1 variable definition contains weird characters, plus it calls parse_git_branch function that itself has a number of issues (most likely the result of HTML copy/paste).
You have 2 options:
- Remove the function and redefine PS1 to something more useful. Your
.bash_profilewould look something like this:
export CLICOLOR=1
export LSCOLORS=GxBxCxDxexegedabagaced
export PS1="[u@h W] $ "
- Just fix copy/paste issues to bring your prompt to its intended form, which is "show me the current working directory and, when available, current git branch":
export CLICOLOR=1
export LSCOLORS=GxBxCxDxexegedabagaced
parse_git_branch() sed -e '/^[^*]/d' -e 's/* (.*)/ (1)/'
export PS1="[e[0;35m]->> [e[1;34m]W[e[0;32m]$(parse_git_branch)[e[0;37m] $ "
answered Mar 27 at 9:27
KMZKMZ
3032 silver badges8 bronze badges
3032 silver badges8 bronze badges
add a comment |
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
1
Can you post your
.bashrc? (minus any secret stuff, of course)– jwir3
Mar 27 at 0:34
"The file /Users/gizmopena/.bashrc does not exist". Also sry im a noob
– Gizmo
Mar 27 at 0:41
1
Hm, interesting. So, when you say "I downloaded some GitHub file a long time ago", presumably you mean you added something from GitHub to your startup. Is this correct? Could you run this command for me:
echo $SHELL– jwir3
Mar 27 at 0:45
In github you need to click the "Raw" button before downloading a file. Otherwise, you're probably downloading the HTML rendering of the file. If you open/edit the file you downloaded, it should be evident. Does
/Usersexist? That doesn't sound like a normal Ubuntu home folder for user accounts. Usually it's/home/.... If you login, what do you get when you enterpwd?– lurker
Mar 27 at 0:45
Do any of
~/.bash_profile,~/.bash_login, or~/.profileexist? If so, what do they contain?– Gordon Davisson
Mar 27 at 1:38