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