Compare commits
No commits in common. "15d380e416464b774c43a93f9759cb4c95c5364b" and "421335a985ee3bab6fe640654a61e740d7b646a2" have entirely different histories.
15d380e416
...
421335a985
@ -1,11 +1,9 @@
|
||||
{{- $name := promptStringOnce . "name" "請輸入您的姓名" -}}
|
||||
{{- $email := promptStringOnce . "email" "輸入您的Email地址" -}}
|
||||
{{- $hasGUI := promptBoolOnce . "hasGUI" "Does this machine have a GUI" -}}
|
||||
{{- $enableYcm := promptBoolOnce . "enableYcm" "是否要啟用Vim YCM compatible功能(會佔用2.7GB)" -}}
|
||||
sourceDir = "~/.local/share/chezmoi"
|
||||
|
||||
[data]
|
||||
name = {{ $name | quote }}
|
||||
email = {{ $email | quote }}
|
||||
noGUI = {{ not $hasGUI }}
|
||||
enableYcm = {{ $enableYcm }}
|
||||
|
||||
@ -20,11 +20,11 @@ dconf.ini
|
||||
|
||||
{{/* ---- 處理特定os專用 */ -}}
|
||||
{{ if ne .chezmoi.os "darwin" }}
|
||||
.chezmoiscripts/darwin-install-packages.sh
|
||||
.chezmoiscripts/before_darwin-install-packages.sh
|
||||
.config/iterm2
|
||||
{{ end }}
|
||||
{{ if ne .chezmoi.os "linux" }}
|
||||
.chezmoiscripts/linux-install-packages.sh
|
||||
.chezmoiscripts/before_linux-install-packages.sh
|
||||
.chezmoiscripts/linux-dconf-load.sh
|
||||
.local/share/konsole
|
||||
.config/konsolerc
|
||||
|
||||
17
Readme.md
17
Readme.md
@ -13,23 +13,6 @@ Yuan dotfile 自用環境設定檔
|
||||
|
||||
(當然不能公開的密碼、主機名單...我還是有用chezmoi整理,就另外開Private Repo來放了)。
|
||||
|
||||
可用的作業系統環境
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
理論上可用的作業系統如下:
|
||||
* macOS
|
||||
* Manjaro Linux
|
||||
* Arch Linux
|
||||
|
||||
目前已經測試過確定可用的環境組合如下:
|
||||
* macOS 15 Sequoia - 2025/5/2 測試過
|
||||
* Manjaro Linux - 2025/5/2 測試過
|
||||
* Manjaro Linux (無GUI) - 2025/5/2 測試過
|
||||
* Arch Linux (無GUI) - 2025/5/2 測試過
|
||||
|
||||
都是使用一般使用者有sudo權限的帳號,目前測試直接用root帳號可能會有問題。
|
||||
(尤其是Arch Linux,安裝yay無法使用root帳號)
|
||||
|
||||
安裝
|
||||
--------------------------------------------------------------------------------
|
||||
### Linux / macOS
|
||||
|
||||
@ -96,7 +96,6 @@ Plug 'bryanmylee/vim-colorscheme-icons'
|
||||
|
||||
Plug 'ctrlpvim/ctrlp.vim' " 模糊搜尋 Ctrl+P
|
||||
|
||||
{{ if .enableYcm }}
|
||||
" YCM自動補齊
|
||||
function! BuildYCM(info)
|
||||
" info is a dictionary with 3 fields
|
||||
@ -133,23 +132,22 @@ let g:UltiSnipsJumpForwardTrigger = "<tab>"
|
||||
let g:UltiSnipsJumpBackwardTrigger = "<s-tab>"
|
||||
|
||||
Plug 'mattn/emmet-vim' "Ctrl+Y ,
|
||||
{{ end }}
|
||||
|
||||
Plug 'jiangmiao/auto-pairs' " 自動補全對稱符
|
||||
" 這是自訂括號的寫法
|
||||
au FileType ejs let b:AutoPairs = AutoPairsDefine({'<%': '%>', '<!--': '-->'})
|
||||
au FileType html let b:AutoPairs = AutoPairsDefine({'<!--': '-->'})
|
||||
|
||||
" <F8> 看看你設定了哪些變數、函數,也可以快速跳轉
|
||||
Plug 'majutsushi/tagbar'
|
||||
nmap <F8> :TagbarToggle<CR>
|
||||
|
||||
Plug 'editorconfig/editorconfig-vim'
|
||||
|
||||
" 按 <F6> 可以回朔到開啟檔案以來的任何歷史,還會標出修改的地方,很酷
|
||||
Plug 'mbbill/undotree'
|
||||
nnoremap <F6> :UndotreeToggle<CR>
|
||||
|
||||
" <F8> 看看你設定了哪些變數、函數,也可以快速跳轉
|
||||
Plug 'majutsushi/tagbar'
|
||||
nmap <F8> :TagbarToggle<CR>
|
||||
|
||||
" 可以在文档中显示 git 信息
|
||||
Plug 'airblade/vim-gitgutter'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user