linux/windows轉mac的習慣設定

來源:互聯網
上載者:User

標籤:輸入   html   tps   until   環境變數配置   bbs   list   登入   需要   

外接鍵盤常用快速鍵設定
  • 中英文快速鍵名都重新設定一遍
    • 使用ctrl替代command(對__內建__鍵盤操作)
    • 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)
  • 外接鍵盤交換command與alt鍵(對__外接__鍵盤操作)
    • 系統會預設把外接鍵盤的win映射成command,需要把外接鍵盤的alt鍵與win鍵功能交換
    • 使用"修飾鍵"完成這個交換:https://bbs.feng.com/read-htm-tid-10959060.html
    • https://bbs.feng.com/read-htm-tid-8746599.html
其他快速鍵
  • command+L 定位到地址欄
  • ctrl+Tab 切換到下一個標籤
  • command+2 切換到第2個標籤
  • command+左右 定位到行首與行尾
  • command+上下 定位到檔案頭與檔案尾
  • option(映射到alt上,又交換到win上)+左右 定位到上一個與下一個單詞末尾
  • 參考https://jingyan.baidu.com/article/08b6a591aac09614a909224f.html
安裝軟體
  • clion chrome
    • 安裝完成把表徵圖拖到檔案夾上才OK
    • 如何尋找軟體安裝路徑:/Applications/CLion.app/Contents/bin/clion.vmoptions
    • 如何尋找軟體安裝路徑: 右鍵->選項->在訪達中顯示;右鍵程式表徵圖->顯示包內容
    • 破解軟體: https://www.jianshu.com/p/f404994e2843
  • iterm2,使用者環境變數配置如下:
~ $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 terminal)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\]"
  • 普通使用者佈建.bash_profile後,開啟item2,其配置生效;但sudo su到root下,即使root使用者目錄下編寫了.bash_profile,但卻是不生效
    • sudo su 登入到root後會使用當前的環境
    • sudo su 登入到root後,passwd root重新設定密碼給su - root登入使用
    • su - root並輸入__新密碼__後 會載入/etc/bashrc(把原.bash_profile內容追加在這個檔案裡)
    • 但sudo su的密碼沒有改變
  • sudo su 與 su - root 的區別?

linux/windows轉mac的習慣設定

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.