43
votes
git auto-complete for *branches* at the command line?
Run this on terminal:
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash
Then, do this:
vi ~/.bash_profile
Add this lines:
if [ ...
29
votes
git auto-complete for *branches* at the command line?
git and git-completion.bash already come with macOS command line tools (xcode-select --install). To enable bash autocomplete, add this to your ~/.bash_profile.
[ -f /Library/Developer/CommandLineTools/...
26
votes
git auto-complete for *branches* at the command line?
Git autocompletion on Catalina and newer (using Homebrew)
macOs changed from bash to zsh as default shell starting with Catalina.
So you will need specific autocomplete scripts for zsh.
Here is how to ...
23
votes
Accepted
How to make the terminal auto-complete from the command history?
You may use reverse-search.
Just press ctrl+R and start typing your command, and then just press Enter.
17
votes
Turn on Text Replacement, Chrome?
This is currently not possible because Chrome does few things its own way. Here is the bug that tracks this
https://bugs.chromium.org/p/chromium/issues/detail?id=42434
Still if you dream about ...
8
votes
git auto-complete for *branches* at the command line?
Here's what's confusing some of you: you have brew or ports installed, but you are using an the system git in /usr/bin/. To check this:
which git
If you see /usr/bin/git then either brew isn't ...
8
votes
Autocomplete for MacOS
This has been possible for some time on macOS (since 10.6), just hidden. In almost any text field or app you are typing text into you can hit F5 or Opt+Esc to bring up the equivalent of the iOS ...
7
votes
How to make the terminal auto-complete from the command history?
Bind key to history-search
For searching lines starting with the typed, as you read in Macworld article, you can add the keybindings, for example:
Up key bound to history-search-backward
Down key ...
6
votes
Accepted
How do I prevent my Mac from autocorrecting my username?
Type your name, right click and pick "Learn Spelling".
6
votes
Accepted
How can I remove specific top hits in Safari's address bar?
It's actually not possible to remove the root domain from Safari's top hits. I've always had this problem and find it irritating.
As seen, I've never visited Apple's US website, but only the SG site. ...
6
votes
How to disable autocomplete on macOS but not iOS?
Explanation
The text replacements in System Preferences > Keyboard > Text (macOS) and Settings > General > Keyboard > Text Replacement (iOS) are tightly integrated into iCloud.
In ...
6
votes
Accepted
How do I remove an autocomplete suggestion from mobile Safari's address bar?
Remove it from your history.
Search for it in Safari history and then delete them one at a time. Unfortunately clicking "clear", even while looking at search results, clears all history ...
5
votes
How can I remove specific top hits in Safari's address bar?
After brainstorming for days, I finally managed to find a solution. Putting it here since it may help others. Clearing history on one or all your devices doesn't help. All you need to do is show your ...
5
votes
How to make the terminal auto-complete from the command history?
You may refer to auto suggestion.
And for zsh user, zsh-autosuggestions will be very helpful.
4
votes
Autocomplete for MacOS
I developed an English Input Method for macOS.
Download the pkg file and install it: https://pan.baidu.com/s/1jIxckfW
http://blog.csdn.net/lwl_ls/article/details/8564940
please contact 086 ...
4
votes
Accepted
How to remove autocomplete (autofill) entries from Chrome? (Shift+Fn+Delete doesn't work)
If you're seeing within Chrome that Shift+Fn+Delete isn't working, it may be that you have a bookmark for that link. You have to delete the bookmark to remove it from the suggestion list.
3
votes
Terminal/iTerm Autocomplete "greyed" functionality?
There is also a plugin for oh-my-zsh:
https://github.com/zsh-users/zsh-autosuggestions. It explicitly aims at Fish-like functionality.
3
votes
Accepted
How do I prevent autocorrection to change part of my email address
Add "fredsmith" to the OS X dictionary by right-clicking or Ctrl-clicking on it when underlined in red and selecting "Add to Dictionary".
3
votes
Accepted
Making Terminal bash auto-complete stop at ambiguous character and display all possible options
Thanks to comment from mtklr. Many web pages that talk about Mac OS X Terminal auto-complete asks you to add the 3 lines I mention in my question. But if you want behavior as on say Ubuntu, you need ...
3
votes
git auto-complete for *branches* at the command line?
For macOS Catalina+, in zsh:
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.zsh -o ~/.git-completion.zsh
Then update your ~/.zshrc with:
if [ -f ~/.git-...
3
votes
Accepted
How to stop instagram app remembering / auto-filling in username at login screen, when not yet logged in
Navigate to Instagram app → Profile → Settings → scroll down to Privacy & Security → Saved Login Info → Turn it off.
3
votes
Accepted
Emoji search in non-iMessage apps
Bafflingly, this was the answer:
https://www.idownloadblog.com/2017/11/15/how-to-fix-predictive-emoji-not-working-iphone-ipad/
Apparently, the algorithm for recommendation for emoji replacement is ...
3
votes
Accepted
How to remove emoji autocomplete suggestions?
This is untested but I did find this method for disabling emojis in the Messages app.
NOTE: In any applications where emojis are supported you should find a similar item under that app's Edit → ...
3
votes
Accepted
Is that possible to let terminal update autocomplete for new executable files in path automatically?
The issue is that the new command is not been entered into the hash table that zsh that maps commands to the full name.
The command hash table is built when you first attempt a command in a new shell ...
2
votes
git auto-complete for *branches* at the command line?
By far, the best reference I've found to solve this very issue is on SpinDance, by Connor Livingston:
If the git-completion.bash script doesn’t exist on your machine, please retrieve it from the link ...
2
votes
git auto-complete for *branches* at the command line?
If your git completion is partially broken, even after sourcing https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash, you may just need to update your git version.
...
2
votes
git auto-complete for *branches* at the command line?
Tried it and it works well for branches but when you do git st + tab then it shows the error like this
unknown option: --list-cmds=list-mainporcelain,others,nohelpers,alias,list-complete,config ...
2
votes
How to stop instagram app remembering / auto-filling in username at login screen, when not yet logged in
Tap on Instagram app>open app info >clear data
this will remove your autofill username in Instagram account
2
votes
How to stop instagram app remembering / auto-filling in username at login screen, when not yet logged in
If nothing else works, log out of your Facebook account! This worked for me when nothing else did.
2
votes
Is there a feature or trick to automatically substitute or expand abbreviations to full phrases?
Yes, it's built into the system [& can also share with any iOS devices you may have]
System Prefs > Keyboard > Text
There are a few there to start you off - if you don't want them, select & ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
auto-complete × 90macos × 23
safari × 16
ios × 14
keyboard × 12
autocorrect × 12
terminal × 11
iphone × 8
bash × 8
mail.app × 6
command-line × 5
google-chrome × 5
contacts × 5
mac × 4
git × 4
browser-history × 4
xcode × 3
shortcut × 3
text × 3
emoji × 3
spellcheck × 3
ipad × 2
applescript × 2
catalina × 2
automator × 2