in my terminal on macOS I see a % instead of $ appearing in mac terminal why is that and is there a difference?1
Related
I installed fish with homebrew on Mac OS Big Sur, Apple Silicon. Then I added /opt/homebrew/bin/fish to /etc/shells. When I now start fish from the default shell, it recognises all commands (like git flow init).
After changing the default shell with chsh -s /opt/homebrew/bin/fish, suddenly it won't recognise anything anymore and always gives a Unknown command.
I haven't found anything regarding this issue and uninstalled fish and brew several times...
Here are the steps I used to setup the fish shell on my M1 MacBook Air. Per the comments on the question, the key to solving the Unknown Command issue is the fish_add_path:
$ brew install fish
$ fish
$ fish_add_path /opt/homebrew/bin
$ echo "/opt/homebrew/bin/fish" | sudo tee -a /etc/shells
$ chsh -s /opt/homebrew/bin/fish
I am using Terminal App on Mac OS X (10.11) and I found that every command output (except for clear) prepend the command I inputted at the beginning of the result. As shown in the following screenshot:
Hyper has the same issue, but its working on iTerm2.
And I am using zsh (zsh 5.0.8 (x86_64-apple-darwin15.0)) with oh-my-zsh, actually, it works fine in bash.
Generally I like the -F option - it quickly shows you what is a directory, what is executable etc. But it seems to be permanently on under Mac OS X (using the default ls command under 10.6.8 - I haven't installed GNU or anything). This prevents the output being filtered to another command that expects file names without the appended characters.
How do I change this behaviour?
thanks
On Mac OS X I am trying to do osacompile to create a .app file on my desktop. I do so from terminal it keeps throwing errors. If i just type osacompile i get stuck in like blank space - I can type whatever and nothing ever happens.
Image demonstrating the issues and errors being thrown when I try to run in terminal:
Please help to successfully run out of terminal.
Escape the space in your app name with a backslash.
osacompile -x -o /Users/sebas/Desktop/My\ Application\ test.app utils/launcher.scpt
osacompile -x -o /Users/noi/Desktop/my\ cut.app ...
This works in Mac OS X 10.10.1 Terminal
I can't seem to find an answer on google. Can anyone please check if xterm is installed on Mac OS X by default, or better yet, if the program/link x-terminal-emulator is defined?
The reason I am asking is that I am currently running this python3 code
process = subprocess.Popen ( ['x-terminal-emulator', '-e', 'sh -c "cd"' ] )
(for simplicity, more complicated bash command replaced with cd) and would prefer compatibility with mac. If anyone could also check that this runs gracefully (it should just briefly pop up a new terminal), I'd be obliged.
Otherwise, which terminal should I call for that specific command?
Thanks!
X11 for Mac OS X is installed by default, but it's optional, so you cannot be sure xterm is installed, see http://developer.apple.com/opensource/tools/x11.html
What is always there on a Mac OS X box is the Terminal.app
That works, at least on Lion, if you call 'xterm' specifically (there is no x-terminal-emulator link).