All Questions
Tagged with .bash-profile command-line
13 questions
14
votes
4
answers
22k
views
What does `>>` mean in terminal command?
I came across a command just now given below -
$ echo 'eval "$(jenv init -)"' >> ~/.bash_profile
From what i can guess, it is probably used for committing the changes in .bash_profile but ...
0
votes
0
answers
45
views
Execute `ls` whenever user does a `cd` on terminal [duplicate]
I know bashrc is executed on terminal startup. But my use case is something like this,
To execute a specific command, say ls, whenever user executes another specific command, say cd, on the ...
4
votes
1
answer
990
views
Is there a way to enable fuzzy Bash auto-completion like Intellij has?
I use Intellij a lot, and one of the features I love is the auto-completion. Notice how you can skip letters in your input and it guesses what you want based on those letters:
Is there a way to ...
2
votes
1
answer
287
views
In bash 4.3.27 "su" ignores user variables when combining "-" with "-c command"?
Since forever we used to launch user scripts from a different user crontab like this:
00 12 * * 1 su - user2 -c "/home/user2/myscript.sh"
By doing this, the script is launched after the interactive ...
0
votes
1
answer
178
views
Configure bash_profile for one single terminal emulator
I am using a new terminal emulator. Terminology is the E17 default terminal, and it has a great command: tyls which is a "graphical" ls
I want to create an alias just for this terminal, because the ...
0
votes
0
answers
204
views
Entered wrong .bash_profile and now my laptop is running hot
I am just learning how to use the command line and was editing the bash prompt setting in .bash_profile.
I made an error in the prompt settings in .bash_profile and I lost the prompt and the ability ...
0
votes
1
answer
1k
views
Can't use command line – "command not found" after editing PATH
I'm running OS X Mavericks and was trying to install MAMP PRO 2.2.
I was trying to configure the PATH variable to have the PHP binaries of MAMP PRO. I added the following line on my ~/.bash_profile ...
3
votes
1
answer
1k
views
Command line in OSX breaks when I edit bash_profile
Please help me, I am learning how to add sublime to command line from this link
and when I created .bash_profile file, in the first line I typed export PATH= and saved it.
My command line is broken. ...
1
vote
2
answers
2k
views
Change bash_profile path order
To use the right PHP version on my command line I want to change the $PATH of my command line profile.
For now, the command line uses the standard system php file located in /usr/bin/. I want to
use ...
1
vote
2
answers
788
views
Why does OS X Lion's terminal treat the PS1 prompt codes differently than Snow Leopard?
I get different behaviors in terminal with the same prompt definition in Snow Leopard and Lion.
On my Snow Leopard system, I define my terminal prompt in .profile as follows:
export PS1='\[\e[32;1m\]...
27
votes
3
answers
18k
views
Is it possible to override the command line's built in "cd" command?
Just about every time I 'cd' to a different directory on my machine (in this case, running Mac OS X 10.6.7) via the command line (which is bash), I immediately type 'ls' to get the list of contents in ...
5
votes
3
answers
3k
views
How do I close an OS X application from the command line using a alias defined in my .bash_profile?
I found the following shell script that can be used to tell an OS X application to quit:
#!/bin/sh
echo | osascript <<EOF
tell application "$*"
quit
end tell
EOF
I have several simple alias ...
1
vote
2
answers
191
views
In bash on RHAS4, why would pressing delete toggle case instead of deleting?
I have an old RedHat box that I have to get some work done on:
$ lsb_release -a
LSB Version: 1.3
Distributor ID: RedHatEnterpriseWS
Description: Red Hat Enterprise Linux WS release 4 (Nahant ...