Tagged Questions
2
votes
2answers
85 views
Change default shell from bash to zsh
I've tried to switch my default shell to zsh, using chsh:
chsh -s /bin/zsh
and:
chsh -s `which zsh`
Both commands ended with:
Changing shell for adamatan.
Password for adamatan:
chsh: ...
1
vote
1answer
202 views
How do I make terminal sessions resume on Lion with iterm2 and tcshrc
My understanding is that with Lion my terminal windows should restore their state. However, this does not happen for me. I wonder if this is because I use tcsh instead of bash?
Is there something I ...
3
votes
1answer
533 views
How to fix lsregister failing associations after reboot? [duplicate]
Possible Duplicate:
How do I remove duplicate “Open With” context menu items in Finder.app?
I'm running 10.7.5 and I have noticed a problem with associations between files and applications. ...
0
votes
2answers
201 views
How to get the path of the selected Image in Adobe Bridge via Applescript?
I am trying to get the parent file path of a selected image thumbnail in Adobe Bridge CS5.1 to pass it on to a shell script. An Applescript wraps a tiny javascript command in command like this:
set ...
1
vote
1answer
239 views
How can I set Last Modified Date of file after using HandbrakeCLI to convert a file?
Running this on OS X Lion.
I'm batch converting several hundred home movies using Handbrake CLI. I'd like to set the last modified date and created date to that original file.
I'm using the ...
0
votes
0answers
250 views
Sharing folder on Lion
I'm trying to share folder from my Cocoa application, using these shell scripts on MAC OS X 10.7.
sudo dscl . -create SharePoints/my-share
sudo dscl . -create SharePoints/my-share afp_guestaccess 1
...
3
votes
1answer
264 views
How do I find where an environmental variable got set?
I installed a program to try it out, and decided I didn't like it so I moved the app to the trash.
Today, in my shell, I noticed that there are a couple of PROGRAMNAME_BLAHBLAH environmental ...
1
vote
1answer
334 views
Open PDF in full screen from the command line
I've written a simple-minded "take a break" reminder which just opens a PDF notice. This works fine, but I wish I could open the PDF file in full screen mode from the command line. Does anyone know ...
3
votes
1answer
541 views
-bash: Applications/mvim: /bin/sh: bad interpreter: Operation not permitted
I am getting a weird error with the mvim script that is supposed to start the MacVim interface.
See below for the issue. /bin/sh is just fine, mvim was chmod +x'd, other /bin/sh scripts run fine... ...
2
votes
1answer
79 views
Apple command file exits early
I wrote an .command script that when I launch it, it just exits and it's to quick for me to see what's going on. How do I keep it open?
3
votes
1answer
1k views
Is there a way to minimize open windows from the command line in OS X Lion?
Just wondering if there is a way to retrieve open windows and minimize them from the command line in Lion?
I have an AppleScript that does this, but it kind of slow, so wanted to know if there was ...
3
votes
3answers
2k views
Using locate.updatedb doesn't work in Lion
A week ago I upgraded to Lion from Snow Leopard. I want to use the locate command, but the locate database has not been built yet. So I tried running
sudo launchctl -w ...
3
votes
1answer
519 views
Search through terminal history with up and down keys in OS X Lion
After I upgraded to OS X I am not able to use my ~/.inputrc bindings to search through the shell command history:
# these allow you to start typing a command and
# use the up/down arrow to auto ...