MacOS Sierra 10.12.5 Macbook Pro ( Ratina )
Ubuntu to Mac os.
- You can not create new file from context menu but can create new folder only.
alternative: use
touch filename
- No utility to lock the monitor
alternative:
a. Navigate to icon --> System Prefrences --> Security & Privacy --> General --> Check Require Password immediately after sleep or screen saver starts
b. hit
Shift-Control-Power
hold them down for two seconds, revoke by Spacebar - No way to see hidden files in a folder.
alternative: open terminal and run
defaults write com.apple.Finder AppleShowAllFiles true
and thankillall Finder
- No way to see file system.
alternative: go to Finder
hit
Command + Shift + H
=> open Home folder ( in Finder ) hitShift + command + G
==> write location name - Open in Terminal directly within folder utility missing alternative: icon --> System Preferences --> Keyboard --> Shortcuts --> Services --> Enable "New Terminal at Folder" to check this ; suppose we have to open /opt/alpha/beta folder in terminal then Go back to the parent folder(alpha), select the relevant folder (beta), right click (context menu) --> Services --> Open Folder in Terminal
- brew instead of apt-get
Install brew using below command in terminal
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
// Refrence http://brew.sh - Unable to keep project open in Sublime-text-3 while we close all the files. alternative : use Shift +Q to close sublime completely. or install
- No shortcut to open terminal. alternative: command + spacebar and write Terminal ( minimize and right click on icon from dock and check Options > Keep in Dock)
- Title of Tab in terminal ( shortcut command + I and write tab Title ; but no way to close that panel using keyboard)
- no window maximize, if you click on maximize, it will span over the screen and hide the menu ( double tab on window will adjust according to screen width)
- window top bar can not adjusted within open window
- git installed but no autocomplete feature.
alternative: install
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash
added in ~/.bash_profile
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
-
mouse scroll reverse Navigate to System Prefrences ( Apple icon) > Mouse > Uncheck Scoll Direction : Natural
-
set function keys ( F1 F2 ) as normal icon > System Prefrences ( Apple icon) > Keyboards > (last option) check F1.F2, etc.. keys as standard keys
-
remove Siri Navigate to System Prefrences ( Apple icon) > Siri > Uncheck Enable Siri on right side panel
-
backspace ( fn + delete )
-
remove Notification of stocks Navigate to System Prefrences ( Apple icon) > Extensions > Today > uncheck Stock
-
rename a file select File and Press Enter (return)
-
make link for sublime so that it can be opened from terminal by hit
subl
sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
-
colorful terminal and git branch in terminal
# Git branch in prompt
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
RED="\[\033[0;31m\]"
YELLOW="\[\033[1;33m\]"
GREEN="\[\033[0;32m\]"
BLUE="\[\033[1;34m\]"
LIGHT_RED="\[\033[1;31m\]"
LIGHT_GREEN="\[\033[1;32m\]"
WHITE="\[\033[1;37m\]"
LIGHT_GRAY="\[\033[0;37m\]"
COLOR_NONE="\[\e[0m\]"
export PS1="${GREEN}\u@${LIGHT_GRAY}\h:${LIGHT_RED}\w${LIGHT_GREEN}\$(parse_git_branch)${BLUE} $ "
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -GFh'
-
keybaord symbol list icon --> System Preferences --> Keyboard > Modifier Keys ⌘ = Command ⇧ = Shift ⌥ = Option (a.k.a. Alt) ⌃ = Ctrl ⎋ = Esc ↩︎ = Return ⌫ = Delete (a.k.a. Backspace)
-
Keyboard shortcuts
Command + Option + I
=> chrome developer tools
Command + Option + J
=> chrome developer tools console
-
Command + Shift + H
= Home -
Command + Shift + D
= Desktop -
Command + Shift + A
= Application -
Command + Shift + U
= Utilities -
Command + Shift + .
= Toggle Hidden files -
Command + ,
= Open Settings of any item/ panel -
control + command + T
=> Add folder to sidebar (bookmark) -
control + command + F
=> Maximize current active window
write subl .
in terminal from the location of peoject folder to open project in sublime.
Version 10.10 Yosemite 10.11 EI Captian 10.12 Sierra
-
when you click on a zip file and select Open; it will extract the zip into same folder.
-
Remove entry from context menu
icon --> System Preferences --> Keyboard --> Shortcuts --> Services > text > uncheck the un necesray item from context menu such as "Add to iTunes as a Spken Track"
-
install XtraFinder for adding copy move and other feature in folder/file context menu
-
brew install coreutils
so that you can use linux command such asshuf
,date
but with prefixg
; sodate
isgdate
andshuf
-isgshuf
-
mysql installation download and install ; it will set default password which will be displayed after succesfull installtion completion; note down now first make symbolic link for mysql to run from terminal
echo 'export PATH="$PATH:/usr/local/mysql/bin"' >> ~/.profile
source ~/.profile
$: mysql -u root -p
change default password
mysql>
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('new_password');
Query OK, 0 rows affected, 1 warning
exit;
now you can access with your password
. mysql start stop restart
sudo /usr/local/mysql/support-files/mysql.server start/stop/restart
Or you can set alias to mysql
alias mysql=/usr/local/mysql/bin/mysql
and then run below query
$: mysql -u root -p
Enter Password:
write in .bash_profile
and
now see man page in Preview App
for eg:
~: pman date