MAC終端配色

2021-06-22 10:25:33 字數 725 閱讀 4865

$ git clone git:

terminal/iterm2

vimvim 的配色最好和終端的配色保持一致,不然在 terminal/iterm2 裡使用命令列 vim 會很彆扭:

$ cd solarized

$ cd vim-colors-solarized/colors

$ mkdir -p ~/.vim/colors

$ cp solarized.vim ~/.vim/colors/

$ vi ~/.vimrc

syntax enable

set background=dark

colorscheme solarized

iterm2 and solarized

ls

mac os x 是基於 freebsd 的,所以一些工具 ls, top 等都是 bsd 那一套,ls 不是 gnu ls,所以即使 terminal/iterm2 配置了顏色,但是在 mac 上敲入 ls 命令也不會顯示高亮,可以通過安裝 coreutils 來解決(brew install coreutils),不過如果對 ls 顏色不挑剔的話有個簡單辦法就是在 .bash_profile 裡輸出 clicolor=1:

$ vi ~/.bash_profile

export clicolor=1

玩轉Mac終端 Mac 終端常用知識

lsof i port tq wxdemacbook pro anonyper lsof i 8081 command pid user fd type device size off node name uwsgi 22117 anonyper 3u ipv4 0x90a5adf44866b61d...

mac 終端命令

mkdir建立 rmdir 刪除 mvdir dir1 dir2 移動 cd 改變目錄 pwd 顯示當前目錄的路徑名 ls 現實當前目錄內容 dircmp dir1 dir2 比較兩個目錄的內容 cp file1 file2 複製檔案 rm 刪除檔案 mv 移動檔案 find name c prin...

mac終端指令

今天學習了一些c語言的基礎知識,下面是在終端用到的一些指令。pwd 檢視當前資料夾 cd 改變目錄 ls 列出當前目錄下的檔案 ls l 列出當前目錄下檔案的詳細資訊 mkdir 資料夾名 建立資料夾 touch 檔名 建立檔案 open 開啟檔案 表示當前路徑 上級目錄 cc c 檔名.c 編譯檔...