Skip to content

Instantly share code, notes, and snippets.

@jitunayak
Last active September 8, 2021 15:18
Show Gist options
  • Save jitunayak/f86311739d54ad9e14096ea5e1c37318 to your computer and use it in GitHub Desktop.
Save jitunayak/f86311739d54ad9e14096ea5e1c37318 to your computer and use it in GitHub Desktop.

To reduce the dock hide and opening time:

defaults write com.apple.dock autohide-delay -float 0

to move files :

cmd+c -> cmd+alt+v

kill apps from recent apps

cmd+tab select the app and press Q to quite

sswitch between two instances of single app

cmd + tilt sign

Swicth bewteen desktop spaces

control + arrow key

set external SSD for swap:

sudo diskutil mount -mountPoint /private/var/vm diskutil ap list | grep VM | awk -F ' ' '/d/ {print $5}'

mySQL for terminal

sudo sh -c 'echo /usr/local/mysql/bin > /etc/paths.d/mysql'

then close terminal and open a new terminal and type

`mysql -u root -p


alias textedit='open -a TextEdit'

open -a TextEdit filename

Install OPENCV

brew install opencv
pip3 install opencv-python-headless

instal fish

brew install fish
curl -L https://get.oh-my.fish | fish
brew tap homebrew/cask-fonts                                 
brew cask install font-firacode-nerd-font
set -U theme_nerd_fonts yes


vim /etc/shells
Add -> /usr/local/bin/fish
:!q - to save
chsh -s /usr/local/bin/fish

put startup cmd as fish
chsh -s /bin/fish   #change the default shell to fish 

vs code integration

 
search shell command in cmd+shift+p. Hit enter and restart the terminal



"editor.fontFamily": "FiraCode Nerd Font Mono" || FiraCode Nerd Font Mono, 'Clincher Code'

OR

"editor.fontFamily": "JetBrains Mono".  OR try "Cascadia Code" OR "Operator Mono"

Enable terminal in finder

System Preferences > Keyboard > Shortcuts > Services
Enable New Terminal at Folder. There's also New Terminal Tab at Folder,

Brew Packages

 brew cask install android-platform-tools    (For ADB cmd)

ZSH terminal auto suggestion


## git status & better path
npm install -g spaceship-prompt 

Clone this repository somewhere on your machine. This guide will assume ~/.zsh/zsh-autosuggestions.

git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions

Add the following to your .zshrc:
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh

Start a new terminal session.

terminal tweaks

brew install bat - cat clone with wings

Spotter - alternate to spotlight

terminal add icon using shapeship

SPACESHIP_PROMPT_ADD_NEWLINE="true"
SPACESHIP_CHAR_SYMBOL=" \uf0e7"
SPACESHIP_CHAR_SUFFIX=(" ")
SPACESHIP_CHAR_COLOR_SUCCESS="yellow"
SPACESHIP_PROMPT_DEFAULT_PREFIX="$USER"
SPACESHIP_PROMPT_FIRST_PREFIX_SHOW="true"
SPACESHIP_USER_SHOW="true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment