Some tips and command for MacOS.
See the homepage.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install git bash-completion
Add bash-completion to your ~/.bash_profile
or .extra
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion
create new folder in Desktop
mkdir ~/Desktop/screenshots/
Copy and paste this command to the terminal window:
defaults write com.apple.screencapture location ~/Desktop/screenshots/
Monospaced font with programming ligatures: FiraCode
Use brew and cask: Not officially supported, might install outdated version
brew tap homebrew/cask-fonts
brew install font-fira-code --cask
screenshot: see the !=
symbol
See the reference. change the primary hostname of your Mac:
scutil --set HostName <new host name>
- FontAwesome
- Material Design Icons
- Ion Icons
- Simple Line Icons (@bohn002)
- Ant Design Icons
See the detail
jq is a lightweight and flexible command-line JSON processor. Try it online.
- GraphQL IDE for better development workflows
- Visual Studio Code
- SSH Tunnel Manager
- Elegant Facebook Messenger desktop app
- Discord App
- Gitter is a chat and networking platform
- Docker for Mac
- Wechat in China
- Google Chrome
- Telegram Desktop Messenger
- iTerm2 is a replacement for Terminal and the successor to iTerm
- Evernote skitch
- MPlayer OSX Extended video player
- Universal Database Tool: DBeaver Community
- Phiewer is the easiest and fastest way to view your images
- FileZilla Client not only supports FTP, but also FTP over TLS (FTPS) and SFTP
- Project discussions: Slack
- Postman
- TablePlus - native app which helps you easily edit database data and structure
- Keka - the macOS file archiver
- Elmedia Player - Best media player for macOS
- Robo 3T - Mongodb Client
- Microsoft Remote Desktop
- Security-first diagramming for teams.
- Mipony - Mipony, your download manager
- IINA - The modern media player for macOS
- Fig adds IDE-style autocomplete to your existing terminal. Move faster with Fig.
- AppCleaner is a small application which allows you to thoroughly uninstall unwanted apps.
- MacWhisper - Quickly and easily transcribe audio files into text with OpenAI's state-of-the-art transcription technology Whisper
See the following screenshots:
You can see the reference.
You can see the reference.
open the terminal
app and select the preferences
See the reference
- Select your windows keyboard.
- Click the dropdown next to
OPTION Key
and selectCommand
- Click the dropdown next to
COMMAND Key
and selectOption
chsh -s /bin/bash
See Use zsh as the default shell on your Mac
You can copy my .tmux.conf config file and update the profile of iTerm2 as following screenshot:
See the issue comment
See Use tabs in windows on Mac
See the solution.
Go to iTerm Preferences → Profiles, select your profile, then the Keys tab. Click Presets... and choose Natural Text Editing
. See tbe reference.
In iTerm2, if you want to use Option + Right Arrow
to jump between words in a bash command, you can set it up as follows:
- Open iTerm2.
- In the top menu, select
iTerm2
->Preferences
. - In the Preferences window, select the
Profiles
tab. - On the left side, select the profile you are using (usually
Default
). - Select the
Keys
sub-tab. - Click the
+
button at the bottom right to add a new key binding. - In the pop-up window, set it as follows:
Keyboard Shortcut
: PressOption + Right Arrow
.Action
: SelectSend Escape Sequence
.Esc+
: Enterf
.
This way, when you press Option + Right Arrow
, iTerm2 will send Esc+f
, which in bash will move to the beginning of the next word.
Similarly, you can set Option + Left Arrow
to jump to the beginning of the previous word:
- Repeat the above steps, click the
+
button to add a new key binding. - In the pop-up window, set it as follows:
Keyboard Shortcut
: PressOption + Left Arrow
.Action
: SelectSend Escape Sequence
.Esc+
: Enterb
.
This way, when you press Option + Left Arrow
, iTerm2 will send Esc+b
, which in bash will move to the beginning of the previous word.
After completing these settings, you should be able to use Option + Right Arrow
and Option + Left Arrow
to jump between words in bash commands in iTerm2.