10 ms·
macOS Command Line
- diegof79 4y agoThanks for sharing this! The “Remove proxy icon hover delay” setting is the first thing I’ll try. Many times I use the proxy icon in Preview to move a pdf file… the delay introduced in Big Sur is extremely annoying.
- ttepasse 4y agoI believe since Monterey you can reenable proxy icons, in the Accessibility panel of System Preferences. No idea about Ventura, couldn't update.
- mdaniel 4y agoIf you were similarly curious about the mention of "GitHub stars" in the text hosted on their own cgit, this appears to be the back-story: https://github.com/herrbischoff/awesome-macos-command-line https://github.com/herrbischoff/awesome-macos-command-line
- Firmwarrior 4y agoI've found that the trick to getting $3000 for a wiki page is to go get a job and write a wiki page while I'm there (Or come on board as a consultant, either approach can work wonders)
- xrayarx 4y agoAn exhausting list of mac os specific settings, that can only be changed from terminal. Quite the effort!
- autotune 4y agohttps://archive.ph/PXzE7 https://archive.ph/PXzE7 since it's currently receiving the HN hug of death.
- blondin 4y agolove Cascadia Code as terminal and coding font. author might want to take a look.
- riffic 4y agofolks should probably avoid linking their own personal git forge (or others, if this is the case) to HN and just use GitHub to share their code. or deploy the content to a static site host.
- aliqot 4y agoWhy even have any sites in other places? Why not just put everything on Github, then it's all in one place within reach at us-east-2
- riffic 4y agoI'm thinking in terms of etiquette and experience. It's not really polite to throw a bunch of unexpected traffic at a little lowly app server
- prepend 4y agoSince I host a little lowly app server with a public listener on 80, I’m cool with whatever traffic is thrown. And that’s good etiquette. The web was built for lots of distributed servers hosting and users hitting them. Only using “big servers” is bad for the world.
- riffic 4y agoPostel's law, I suppose, is the right way to look at it.
- autotune 4y agoAgreed, even as a SRE myself it is just easier to link to a GitHib repo. GH, with all of its warts, is still likely better at handling a traffic spike than you.
- jgwil2 4y agoLink elsewhere in this thread[0] shows that this user removed this repo from GitHub deliberately, so I doubt they're the account who shared it. [0]: https://news.ycombinator.com/item?id=33897373 https://news.ycombinator.com/item?id=33897373
- AceJohnny2 4y agoHow do people discover the `defaults` keys? I occasionally stumble upon such secret troves of knowledge, but I'd love to find out how these are discovered. Is there, like, a way to intercept all `defaults`/settings reads to discover what keys are checked?
- akerl_ 4y agoI think what you’re looking for is “defaults read”
- c0nsumer 4y agoI suspect that they are asking about finding settings which get used, but aren't documented. Like, how to find hidden settings that programs will use.
- larusso 4y agoIn my experience with plist settings is that they are rarely sparse. But sure finding hidden settings is a tricky issue.
- AceJohnny2 4y agoUnfortunately, that only seems to print those defaults that are set, not all defaults that are possible. For example, the NSToolbarTitleViewRolloverDelay setting, while valid per the article, isn't listed in the output of `defaults read`
- js2 4y agoPer sibling comments, you run strings on binaries, find out informally from Apple engineers, or dig through settings in the System Preferences and then use `defaults` to look for changes in output.
- larusso 4y agoDefaults is a tool which can read and write system and other application settings. By default it works on the system settings. One can either pass a bundle id or a path to a plist file to read and write other settings. You can see a huge list of settings by typing „defaults read“
- anigbrowl 4y agoFurthermore, looking at almost 26k GitHub stars for this repository, if only about 14% of the people who this resource is useful for, sponsored me with a one time amount of a single Euro, I could order a new machine that probably lasted me another eight years. It's not something I'd expect, nor think I should. It's entirely my issue. It's unseemly that people have to beg like this. I would be happy to pay a small annual Github subscription if it were distributed back to repo maintainers. Same thing with all the 'buy me a coffee' tags and now the 'buy me a slice of pizza' ones. Instead of funding useful bodies of work with meaningful micro-grants you have projects competing to provide people with better cups to rattle.
- simonw 4y agoThat's pretty much what GitHub Sponsors is.
- car 4y agoExcept it's targeted to whomever I feel like sponsoring. Maybe an additional way could be distribution of a general sponsorship fund based on the number of stars or another measure of merit/popularity? I've sponsored individual projects on GitHub before, but would prefer this way.
- anigbrowl 4y agoYes, that's my point. It's another market, and while markets have a lot of utility they also tend towards bimodal distributions which disproportionately reward a very successful and visible participants while disproportionately exploiting a much larger group. A pure market system has higher entropy than one which features some redistribution. https://arxiv.org/pdf/cond-mat/0001432.pdf https://arxiv.org/pdf/cond-mat/0001432.pdf
- elashri 4y agoIf something like this is going to be based on number of stars, imagine how this will turn the current "give us a star on github" to.
- Aperocky 4y agohere's the magic line in .*rc that you didn't know you need: `set -o vi` It applies vi rules to your command line.
- jgwil2 4y agoI love vi bindings but I've found that if you're using oh-my-zsh this will break a bunch of stuff like the command history. If anyone knows of a workaround for that I'd love to hear about it.
- mdaniel 4y agoOr its more sane friend, control-x+control-e to launch $EDITOR with a file in $TMPDIR containing the current command-line, and then execute it when $EDITOR exits. BTW, I don't mean "$EDITOR" as a placeholder for whatever editor is your favorite, I quite literally mean the shell variable "EDITOR". Strictly speaking, $VISUAL has precedence but I don't think any system sets that one by default, whereas many do set EDITOR. I guess the one drawback to this comment in reply to yours is that the very bottom of that fallback tree is "emacs", but what vimmer doesn't already have EDITOR=$(command -v vi)? :-D The gory details: https://www.gnu.org/software/bash/manual/html_node/Miscellaneous-Commands.html#index-edit_002dand_002dexecute_002dcommand-_0028C_002dx-C_002de_0029 https://www.gnu.org/software/bash/manual/html_node/Miscellan...
- 0x008 4y agoWhat I would really like to know is how to mute an application. I have sounds disabled for outlook notifications in System settings and do not disturb on. Yet, I hear chimes/bells from outlook every time I receive an email. Anybody else experience similar things?
- pulvinar 4y agoDon’t have Outlook, but the setting is supposedly in Outlook’s Personal Settings>Notifications and Sounds>Sounds, uncheck all.
- dhagz 4y agoFor Outlook specifically, look in Outlook's settings under "Notifications and Sound".
- 0x008 4y agoThanks, I will check it. But how can it override the system settings, that is an oversight I think…
- lelandfe 4y agohttps://rogueamoeba.com/soundsource/ https://rogueamoeba.com/soundsource/ Now, I haven't tested your issue specifically, because I do not use Outlook. But Rogue Amoeba is one of the best remaining Mac app developers (also: Panic), and they made an app that provides app-based sound control. Worth checking out if you can't solve it with Outlook's settings.
- xwowsersx 4y agoI'm having a lot of trouble with getting fonts to look clear and unfuzzy on my M1 Pro with a new LG 38WN95C-W 38" 21:9 (3840 x 1600) monitor I just bought. It's driving me nuts. I've tried different picture settings on the monitor, with and without HDR, tried different resolutions, tried every possible value of `defaults -currentHost write -g AppleFontSmoothing -int ${n}` but no dice. Anyone have any ideas what I can do to resolve? Machine details below: Software: System Software Overview: System Version: macOS 12.6 (21G115) Kernel Version: Darwin 21.6.0 Boot Volume: Macintosh HD Boot Mode: Normal Secure Virtual Memory: Enabled System Integrity Protection: Enabled Time since boot: 4:14 Hardware: Hardware Overview: Model Name: MacBook Pro Model Identifier: MacBookPro18,1 Chip: Apple M1 Pro Total Number of Cores: 10 (8 performance and 2 efficiency) Memory: 32 GB System Firmware Version: 7459.141.1 OS Loader Version: 7459.141.1
- jedberg 4y agoAre you sure you're running the monitor at its native resolution and not scaled? And do they provide a display profile that you can load? Edit: This post would indicate that it's a bug in the interaction between the Mac and the monitor and is not fixed: https://forums.macrumors.com/threads/fuzzy-text-with-lg-38wn95c-w-base-14-mbp-m1-pro.2322619/ https://forums.macrumors.com/threads/fuzzy-text-with-lg-38wn...
- xwowsersx 4y agoI am pretty sure I'm running it at the native resolution and not scaled, yes. At least, I'm pretty sure: > system_profiler SPDisplaysDataType | grep Resolution Resolution: 3840 x 1600 (Ultra-wide 4K) And ah dang, thanks for the link. Someone there mentioned that getting a higher PPI monitor could help and might be the only way to get HiDPI modes. I did notice when I used switchResX for a bit that the HiDPI mode was greyed out and unavailable. Guess I'm going to have to return this monitor :(
- matthew-wegner 4y ago
- js2 4y ago> There's really only one thing I'd like to note here: man pages. Man pages. Man pages. Okay, three things. But this one thing seemed so important, I had to mention it multiple times. If you're not doing it already, you should get into the habit of consulting man pages before searching anywhere else. Unix-style man pages are an excellent source of documentation. There's even a man page for the man command itself: YES YES YES. It's how I learned my way around Unix back in SunOS days. I literally started with "man intro" and worked my way out from there. Sun's documentation was _excellent_. Sadly, Linux and even BSD man pages are more hit or miss compared to Sun's documentation. But they are still a great place to start.
- xenadu02 4y agoMany macOS utilities and facilities have man pages, including things like launchd plists (man launchd.plist).
- tomduncalf 4y agoI’d love a tweak to change the speed of the Spaces animation when you switch desktop, it’s so frustrating slow that I just don’t use it. I’ve searched a few times and not found anything but thought I’d mention it here in case anyone does know of one!
- black-adder 4y agoIf you tick "Reduce motion" in Accessiblity, it fades in an out instead of scrolling, a lot faster! I wish there was a way to disable transitions altogether like in earlier OSX versions...
- miniBill 4y agoUgh, preach. I haven't found anything, and I did search around
- alin23 4y agoYabai (https://github.com/koekeishiya/yabai https://github.com/koekeishiya/yabai) with SIP disabled is the only way to do that nowadays. I personally gave up on Spaces completely because of this. Now I just have everything on a single space, and move through apps instantly using my rcmd app (https://lowtechguys.com/rcmd https://lowtechguys.com/rcmd)
- user3939382 4y agoTotalSpaces can do it, you can switch instantly.
- ubercow13 4y agoIf you use Ctrl+N (or whatever the shortcuts for 'Switch to Desktop N' are set to in the settings) instead of swiping or using Ctrl+Left/Right it's much faster, and input is re-enabled for the desktop you're switching to basically instantly
- user3939382 4y agoThere was a time when you’d get a printed manual with your computer that taught you these things. Now we can’t even get Apple to provide digital documentation for a lot of these hidden features in macOS. I prefer the old way.
- alin23 4y agoUsers of my monitor control app (https://lunar.fyi/ https://lunar.fyi/) feel overwhelmed with the information I provide on the website and in little help hints placed in the app near each setting. If an app has this effect, I can't even imagine what an OS manual would feel like in these days. I wish I could provide a proper manual but I can barely keep up with updating the app website with the rate of change in technologies. A major OS upgrade would need an army of writers to update manual on time. Not that I wouldn't love it. It would be tremendously useful to have a PDF where I can Cmd-F obscure tidbits which I often need in building MacOS apps. I just think it's impractical given the complexity of software in this age.
- SQueeeeeL 4y agoI don't even think it's the complexity, necessarily. More of the fundamental instability of it all. Why exactly does Mac or Windows need to be releasing entirely new OSes every 2 years, except to maintain a new product for the demands of a corporate behemoth to chirp around. People have PERL scripts from 40 years ago that still execute fine, but I doubt anyone has a PowerShell file from the early 2010s that maintains behavior.
- masukomi 4y agoI can't comment on Windows, but with regards to apple, they really don't. Sure they strut around like they have but really, they've tweaked some user apps like Mail and Safari, and made bug fixes under the covers. Every now and then they do something like muck with background scheduling, but mostly... it's just bug fixes and new APIs that don't invalidate old ones. The only problem I've had is dylib files relentlessly moving forward in versions and old ones not being available anymore, but i don't _think_ that's really an apple problem. That and the M1 architecture transition has moved some folders around for reasons I don't understand. My ancient scripts still work just fine.
- dougdonohoe 4y agoHoly cow, TIL 'say "my mac can speak"'!
- djbeadle 4y agoIt's a handy thing to have in your toolbox https://xkcd.com/530 https://xkcd.com/530
- atribecalledqst 4y agoI got SUPER excited about the NSScrollViewRubberbanding option, because I really hate that rubberbanding animation; sadly it looks like it hasn't worked for several years now.
- Kab1r 4y agoDoes anyone know how to login to iCloud through the terminal?
- 1letterunixname 4y agoGlaring omission (no pun intended): Spotlight including mls
- baliex 4y agoGreat resource. You can find many more examples of other people’s efforts with this GitHub search: https://github.com/search?q=defaults+write+com.apple&type=code https://github.com/search?q=defaults+write+com.apple&type=co...
- monkin 4y agoThis resource is great, but the saddest part is removing it from GitHub. I think it will hugely hit its visibility and create more of low quality copycats. For example, I rarely use my bookmarks or even check them out, but I constantly use my categorized GitHub stars to read the content I need. I suspect I’m not the only one doing it like this.