Skip to content

Instantly share code, notes, and snippets.

@doKill
Last active August 27, 2018 16:12
Show Gist options
  • Save doKill/ff634570a175287f1f446c7a57a029ac to your computer and use it in GitHub Desktop.
Save doKill/ff634570a175287f1f446c7a57a029ac to your computer and use it in GitHub Desktop.
关于MacOS iterm2

1 、下载主题:地址

2、 iTerm2 -- perference -- profiles -- colors -- color Presets -- Import

3、 选择导入的主题文件后只有背景色改变,字体颜色无变化,遂 vi ~/.bash_profile

    CLICOLOR=1
    LSCOLORS=gxfxcxdxbxegedabagacad
    export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$ '
    export TERM=xterm-color

4 、重启iterm2

重置iTerm2

cd ~/Library/Preferences/
defaults delete com.googlecode.iterm2

安装 oh-my-zsh 地址

zsh在iterm中直接打开目录或文件

open ~/.zshrc

添加:  
alias subl="/Applications/A/Sublime\ Text.app/Contents/SharedSupport/bin/subl"

配置preference

command + Enter可全屏 
preference -- general -- 关掉右侧(native full screen windows)  

任意位置可调出terminal  
preference -- keys -- HotKey -- command + `
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment