Linux/windows Switch to Mac's custom settings

Source: Internet
Author: User

Common keyboard shortcut settings for external keyboards
    • Chinese and English shortcut key names reset again
      • Use CTRL instead of command (for __ in __ keyboard actions)
      • Https://jingyan.baidu.com/article/6f2f55a14652e0b5b93e6ca2.html
      Command-Z 撤消 Command-X 剪切  Command-C 拷贝(Copy)  Command-V 粘贴  Command-A 全选(All) 下两个待定?Command-S 保存(Save)  Command-F 查找(Find)
    • External keyboard Exchange command with ALT key (for __ External keyboard operation)
      • The system will default to the external keyboard win map to command, you need to add the external keyboard Alt key and the WIN key function exchange
      • Use "modifier keys" to complete this interchange: https://bbs.feng.com/read-htm-tid-10959060.html
      • Https://bbs.feng.com/read-htm-tid-8746599.html
Other shortcut keys
    • Command+l positioning to the address bar
    • Ctrl+tab switch to the next tab
    • command+2 Switch to 2nd tab
    • Command+ to the beginning and end of the line
    • Command+ up and down to file header and end of file
    • Option (map to ALT, swap to win) + left and right to the previous and next word end
    • Reference https://jingyan.baidu.com/article/08b6a591aac09614a909224f.html
Installing the Software
    • Clion Chrome
      • Installation complete Drag the icon to the folder to OK
      • How to find the Software installation path:/Applications/CLion.app/Contents/bin/clion.vmoptions
      • How to find the Software installation path: Right-click Options, display in the arrivals, right-click program icon, display package Contents
      • Cracked software: https://www.jianshu.com/p/f404994e2843
    • ITERM2, the user environment variable is configured as follows:
~ $pwd/var/root~ $cat. Bash_profile#enables colorin the terminal bash Shell Exportexport clicolor=1#setsup thecolor Scheme For list exportexport lscolors=gxfxcxdxbxegedabagacad#sets up theprompt color (currently a green similar to Linux Termina L) Export ps1= ' \[\033[01;32m\]\[email protected]\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$ ' #enables Colorfor itermexport term=xterm-256coloralias wk= "Cd/users/admin/wangzhiyi" Alias ll= "Ls-lrta" Find_git_branch () { Local dir=. Headuntil ["$dir"-ef/]; Doif [-F "$dir/.git/head"]; Thenhead=$ (< "$dir/.git/head") if [[$head = Ref:\ refs/heads/*]]; Thengit_branch= "(${head#*/*/})" Elif [[$head! = ']]; Thengit_branch= "→ (detached)" elsegit_branch= "→ (unknow)" fireturnfidir= ". /$dir "Donegit_branch= '}prompt_command=" find_git_branch; $PROMPT _command "black=$ ' \[\e[1;30m\] ' red=$ ' \[\e[1;31m\] ' green=$ ' \[\e[1;32m\] ' yellow=$ ' \[\e[1;33m\] ' blue=$ ' \[\e [1;34m\] ' magenta=$ ' \[\e[1;35m\] ' cyan=$ ' \[\e[1;36m\] ' white=$ ' \[\e[1;37m\] ' normal=$ ' \[\e[m\]' ps1= ' \[\033[0;31m\]\u \[\033[00;36m\]\w$yellow\ $git _branch \[\033[0;33m\]$\[\e[1;37m\] " 
    • Normal user settings. After the Bash_profile, the item2 is turned on and its configuration takes effect; but sudo su to root, even if the root user directory is written under. Bash_profile, but it does not take effect
      • sudo su will use the current environment after logging in to root
      • After sudo su logs on to root, passwd root re-sets the password to Su-root login using
      • Su-root and enter __ New password __ will load/ETC/BASHRC (append the original. Bash_profile content to this file)
      • But sudo su's password hasn't changed.
    • What is the difference between sudo su and su-root?

Linux/windows Switch to Mac's custom settings

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.