style Trailing whitespace line endings or no final newline
This commit is contained in:
parent
fa9018d3b5
commit
3022dfe4af
@ -53,4 +53,4 @@ pacman = [
|
|||||||
aur = [
|
aur = [
|
||||||
'alacritty-sixel-git',
|
'alacritty-sixel-git',
|
||||||
'winscp',
|
'winscp',
|
||||||
]
|
]
|
||||||
|
@ -18,4 +18,4 @@ dconf.ini
|
|||||||
*.ps1
|
*.ps1
|
||||||
{{ else }}
|
{{ else }}
|
||||||
*.sh
|
*.sh
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -3,4 +3,4 @@
|
|||||||
{{ if eq .chezmoi.os "darwin" -}}
|
{{ if eq .chezmoi.os "darwin" -}}
|
||||||
defaults write com.googlecode.iterm2 PrefsCustomFolder -string "~/.config/iterm2"
|
defaults write com.googlecode.iterm2 PrefsCustomFolder -string "~/.config/iterm2"
|
||||||
defaults write com.googlecode.iterm2 LoadPrefsFromCustomFolder -bool true
|
defaults write com.googlecode.iterm2 LoadPrefsFromCustomFolder -bool true
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
@ -18,4 +18,4 @@ mkdir -p ~/.winscp/drive_c/users/{{ .chezmoi.username }}/AppData/Roaming/FileZil
|
|||||||
ln -s ~/.config/filezilla/sitemanager.xml ~/.winscp/drive_c/users/{{ .chezmoi.username }}/AppData/Roaming/FileZilla/sitemanager.xml
|
ln -s ~/.config/filezilla/sitemanager.xml ~/.winscp/drive_c/users/{{ .chezmoi.username }}/AppData/Roaming/FileZilla/sitemanager.xml
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -13,4 +13,4 @@ brew {{ . | quote }}
|
|||||||
cask {{ . | quote }}
|
cask {{ . | quote }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
EOF
|
EOF
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
@ -16,7 +16,7 @@ wait_for_pacman_unlock() {
|
|||||||
if ! pgrep -x pacman >/dev/null && \
|
if ! pgrep -x pacman >/dev/null && \
|
||||||
! pgrep -x packagekitd >/dev/null && \
|
! pgrep -x packagekitd >/dev/null && \
|
||||||
! pgrep -x packagekit >/dev/null; then
|
! pgrep -x packagekit >/dev/null; then
|
||||||
|
|
||||||
echo "🔍 找不到 pacman 或 PackageKit,疑似殘留鎖檔。"
|
echo "🔍 找不到 pacman 或 PackageKit,疑似殘留鎖檔。"
|
||||||
|
|
||||||
if [ "$WAITED" -ge "$MAX_IDLE" ]; then
|
if [ "$WAITED" -ge "$MAX_IDLE" ]; then
|
||||||
@ -94,4 +94,4 @@ fi
|
|||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
@ -8,6 +8,16 @@ end_of_line = lf
|
|||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
# 排除特定檔案類型的規則
|
||||||
|
[*.code-workspace]
|
||||||
|
# 不套用任何規則,覆蓋全域設定
|
||||||
|
indent_size = unset
|
||||||
|
indent_style = unset
|
||||||
|
charset = unset
|
||||||
|
end_of_line = unset
|
||||||
|
insert_final_newline = unset
|
||||||
|
trim_trailing_whitespace = unset
|
||||||
|
|
||||||
[*.ps1]
|
[*.ps1]
|
||||||
charset = utf-8
|
charset = utf-8
|
||||||
end_of_line = crlf
|
end_of_line = crlf
|
||||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
bin/chezmoi
|
bin/chezmoi
|
||||||
|
@ -61,7 +61,7 @@ rm -rf ~/.local/share/chezmoi-private
|
|||||||
rm ~/.ssh/known_hosts
|
rm ~/.ssh/known_hosts
|
||||||
rm -rf ~/.vimrc ~/.vim ~/.gvimrc
|
rm -rf ~/.vimrc ~/.vim ~/.gvimrc
|
||||||
rm ~/.zshrc
|
rm ~/.zshrc
|
||||||
rm -rf ~/.config/alacritty ~/.config/zellij
|
rm -rf ~/.config/alacritty ~/.config/zellij
|
||||||
```
|
```
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
@ -223,4 +223,4 @@ EOT
|
|||||||
工具官網
|
工具官網
|
||||||
* <https://www.chezmoi.io/>
|
* <https://www.chezmoi.io/>
|
||||||
* <https://github.com/zdharma-continuum/zinit>
|
* <https://github.com/zdharma-continuum/zinit>
|
||||||
* <https://github.com/romkatv/powerlevel10k>
|
* <https://github.com/romkatv/powerlevel10k>
|
||||||
|
@ -9,15 +9,15 @@ dot_config/nvim
|
|||||||
├── lua
|
├── lua
|
||||||
│ ├── init.lua #主要設定進入點 新式給nvim專用設定
|
│ ├── init.lua #主要設定進入點 新式給nvim專用設定
|
||||||
│ ├── config
|
│ ├── config
|
||||||
│ │ ├── gui.lua
|
│ │ ├── gui.lua
|
||||||
│ │ ├── lazy.lua
|
│ │ ├── lazy.lua
|
||||||
│ │ └── options.lua
|
│ │ └── options.lua
|
||||||
│ └── plugins
|
│ └── plugins
|
||||||
│ └── example.lua #LazyNvim給的範例,已經被第一段截斷掉,所以此腳本將不會執行
|
│ └── example.lua #LazyNvim給的範例,已經被第一段截斷掉,所以此腳本將不會執行
|
||||||
└── Readme.md
|
└── Readme.md
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## 代找外掛
|
## 代找外掛
|
||||||
* Align
|
* Align
|
||||||
*
|
*
|
||||||
|
@ -1 +1 @@
|
|||||||
lua require('init')
|
lua require('init')
|
||||||
|
@ -17,4 +17,4 @@ return {
|
|||||||
vim.cmd("colorscheme nordfox")
|
vim.cmd("colorscheme nordfox")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -272,90 +272,90 @@ plugins {
|
|||||||
// eg. "https://example.com/my-plugin.wasm"
|
// eg. "https://example.com/my-plugin.wasm"
|
||||||
load_plugins {
|
load_plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use a simplified UI without special fonts (arrow glyphs)
|
// Use a simplified UI without special fonts (arrow glyphs)
|
||||||
// Options:
|
// Options:
|
||||||
// - true
|
// - true
|
||||||
// - false (Default)
|
// - false (Default)
|
||||||
//
|
//
|
||||||
// simplified_ui true
|
// simplified_ui true
|
||||||
|
|
||||||
// Choose the theme that is specified in the themes section.
|
// Choose the theme that is specified in the themes section.
|
||||||
// Default: default
|
// Default: default
|
||||||
//
|
//
|
||||||
theme "nord"
|
theme "nord"
|
||||||
|
|
||||||
// Choose the base input mode of zellij.
|
// Choose the base input mode of zellij.
|
||||||
// Default: normal
|
// Default: normal
|
||||||
//
|
//
|
||||||
default_mode "normal"
|
default_mode "normal"
|
||||||
|
|
||||||
// Choose the path to the default shell that zellij will use for opening new panes
|
// Choose the path to the default shell that zellij will use for opening new panes
|
||||||
// Default: $SHELL
|
// Default: $SHELL
|
||||||
//
|
//
|
||||||
// default_shell "fish"
|
// default_shell "fish"
|
||||||
|
|
||||||
// Choose the path to override cwd that zellij will use for opening new panes
|
// Choose the path to override cwd that zellij will use for opening new panes
|
||||||
//
|
//
|
||||||
// default_cwd "/tmp"
|
// default_cwd "/tmp"
|
||||||
|
|
||||||
// The name of the default layout to load on startup
|
// The name of the default layout to load on startup
|
||||||
// Default: "default"
|
// Default: "default"
|
||||||
//
|
//
|
||||||
// default_layout "compact"
|
// default_layout "compact"
|
||||||
|
|
||||||
// The folder in which Zellij will look for layouts
|
// The folder in which Zellij will look for layouts
|
||||||
// (Requires restart)
|
// (Requires restart)
|
||||||
//
|
//
|
||||||
// layout_dir "/tmp"
|
// layout_dir "/tmp"
|
||||||
|
|
||||||
// The folder in which Zellij will look for themes
|
// The folder in which Zellij will look for themes
|
||||||
// (Requires restart)
|
// (Requires restart)
|
||||||
//
|
//
|
||||||
// theme_dir "/tmp"
|
// theme_dir "/tmp"
|
||||||
|
|
||||||
// Toggle enabling the mouse mode.
|
// Toggle enabling the mouse mode.
|
||||||
// On certain configurations, or terminals this could
|
// On certain configurations, or terminals this could
|
||||||
// potentially interfere with copying text.
|
// potentially interfere with copying text.
|
||||||
// Options:
|
// Options:
|
||||||
// - true (default)
|
// - true (default)
|
||||||
// - false
|
// - false
|
||||||
//
|
//
|
||||||
// mouse_mode false
|
// mouse_mode false
|
||||||
|
|
||||||
// Toggle having pane frames around the panes
|
// Toggle having pane frames around the panes
|
||||||
// Options:
|
// Options:
|
||||||
// - true (default, enabled)
|
// - true (default, enabled)
|
||||||
// - false
|
// - false
|
||||||
//
|
//
|
||||||
// pane_frames false
|
// pane_frames false
|
||||||
|
|
||||||
// When attaching to an existing session with other users,
|
// When attaching to an existing session with other users,
|
||||||
// should the session be mirrored (true)
|
// should the session be mirrored (true)
|
||||||
// or should each user have their own cursor (false)
|
// or should each user have their own cursor (false)
|
||||||
// (Requires restart)
|
// (Requires restart)
|
||||||
// Default: false
|
// Default: false
|
||||||
//
|
//
|
||||||
// mirror_session true
|
// mirror_session true
|
||||||
|
|
||||||
// Choose what to do when zellij receives SIGTERM, SIGINT, SIGQUIT or SIGHUP
|
// Choose what to do when zellij receives SIGTERM, SIGINT, SIGQUIT or SIGHUP
|
||||||
// eg. when terminal window with an active zellij session is closed
|
// eg. when terminal window with an active zellij session is closed
|
||||||
// (Requires restart)
|
// (Requires restart)
|
||||||
// Options:
|
// Options:
|
||||||
// - detach (Default)
|
// - detach (Default)
|
||||||
// - quit
|
// - quit
|
||||||
//
|
//
|
||||||
// on_force_close "quit"
|
// on_force_close "quit"
|
||||||
|
|
||||||
// Configure the scroll back buffer size
|
// Configure the scroll back buffer size
|
||||||
// This is the number of lines zellij stores for each pane in the scroll back
|
// This is the number of lines zellij stores for each pane in the scroll back
|
||||||
// buffer. Excess number of lines are discarded in a FIFO fashion.
|
// buffer. Excess number of lines are discarded in a FIFO fashion.
|
||||||
// (Requires restart)
|
// (Requires restart)
|
||||||
// Valid values: positive integers
|
// Valid values: positive integers
|
||||||
// Default value: 10000
|
// Default value: 10000
|
||||||
//
|
//
|
||||||
// scroll_buffer_size 10000
|
// scroll_buffer_size 10000
|
||||||
|
|
||||||
// Provide a command to execute when copying text. The text will be piped to
|
// Provide a command to execute when copying text. The text will be piped to
|
||||||
// the stdin of the program to perform the copy. This can be used with
|
// the stdin of the program to perform the copy. This can be used with
|
||||||
// terminal emulators which do not support the OSC 52 ANSI control sequence
|
// terminal emulators which do not support the OSC 52 ANSI control sequence
|
||||||
@ -365,102 +365,102 @@ default_mode "normal"
|
|||||||
// copy_command "xclip -selection clipboard" // x11
|
// copy_command "xclip -selection clipboard" // x11
|
||||||
// copy_command "wl-copy" // wayland
|
// copy_command "wl-copy" // wayland
|
||||||
// copy_command "pbcopy" // osx
|
// copy_command "pbcopy" // osx
|
||||||
//
|
//
|
||||||
// copy_command "pbcopy"
|
// copy_command "pbcopy"
|
||||||
|
|
||||||
// Choose the destination for copied text
|
// Choose the destination for copied text
|
||||||
// Allows using the primary selection buffer (on x11/wayland) instead of the system clipboard.
|
// Allows using the primary selection buffer (on x11/wayland) instead of the system clipboard.
|
||||||
// Does not apply when using copy_command.
|
// Does not apply when using copy_command.
|
||||||
// Options:
|
// Options:
|
||||||
// - system (default)
|
// - system (default)
|
||||||
// - primary
|
// - primary
|
||||||
//
|
//
|
||||||
// copy_clipboard "primary"
|
// copy_clipboard "primary"
|
||||||
|
|
||||||
// Enable automatic copying (and clearing) of selection when releasing mouse
|
// Enable automatic copying (and clearing) of selection when releasing mouse
|
||||||
// Default: true
|
// Default: true
|
||||||
//
|
//
|
||||||
// copy_on_select true
|
// copy_on_select true
|
||||||
|
|
||||||
// Path to the default editor to use to edit pane scrollbuffer
|
// Path to the default editor to use to edit pane scrollbuffer
|
||||||
// Default: $EDITOR or $VISUAL
|
// Default: $EDITOR or $VISUAL
|
||||||
// scrollback_editor "/usr/bin/vim"
|
// scrollback_editor "/usr/bin/vim"
|
||||||
|
|
||||||
// A fixed name to always give the Zellij session.
|
// A fixed name to always give the Zellij session.
|
||||||
// Consider also setting `attach_to_session true,`
|
// Consider also setting `attach_to_session true,`
|
||||||
// otherwise this will error if such a session exists.
|
// otherwise this will error if such a session exists.
|
||||||
// Default: <RANDOM>
|
// Default: <RANDOM>
|
||||||
//
|
//
|
||||||
// session_name "My singleton session"
|
// session_name "My singleton session"
|
||||||
|
|
||||||
// When `session_name` is provided, attaches to that session
|
// When `session_name` is provided, attaches to that session
|
||||||
// if it is already running or creates it otherwise.
|
// if it is already running or creates it otherwise.
|
||||||
// Default: false
|
// Default: false
|
||||||
//
|
//
|
||||||
// attach_to_session true
|
// attach_to_session true
|
||||||
|
|
||||||
// Toggle between having Zellij lay out panes according to a predefined set of layouts whenever possible
|
// Toggle between having Zellij lay out panes according to a predefined set of layouts whenever possible
|
||||||
// Options:
|
// Options:
|
||||||
// - true (default)
|
// - true (default)
|
||||||
// - false
|
// - false
|
||||||
//
|
//
|
||||||
// auto_layout false
|
// auto_layout false
|
||||||
|
|
||||||
// Whether sessions should be serialized to the cache folder (including their tabs/panes, cwds and running commands) so that they can later be resurrected
|
// Whether sessions should be serialized to the cache folder (including their tabs/panes, cwds and running commands) so that they can later be resurrected
|
||||||
// Options:
|
// Options:
|
||||||
// - true (default)
|
// - true (default)
|
||||||
// - false
|
// - false
|
||||||
//
|
//
|
||||||
// session_serialization false
|
// session_serialization false
|
||||||
|
|
||||||
// Whether pane viewports are serialized along with the session, default is false
|
// Whether pane viewports are serialized along with the session, default is false
|
||||||
// Options:
|
// Options:
|
||||||
// - true
|
// - true
|
||||||
// - false (default)
|
// - false (default)
|
||||||
//
|
//
|
||||||
// serialize_pane_viewport false
|
// serialize_pane_viewport false
|
||||||
|
|
||||||
// Scrollback lines to serialize along with the pane viewport when serializing sessions, 0
|
// Scrollback lines to serialize along with the pane viewport when serializing sessions, 0
|
||||||
// defaults to the scrollback size. If this number is higher than the scrollback size, it will
|
// defaults to the scrollback size. If this number is higher than the scrollback size, it will
|
||||||
// also default to the scrollback size. This does nothing if `serialize_pane_viewport` is not true.
|
// also default to the scrollback size. This does nothing if `serialize_pane_viewport` is not true.
|
||||||
//
|
//
|
||||||
// scrollback_lines_to_serialize 10000
|
// scrollback_lines_to_serialize 10000
|
||||||
|
|
||||||
// Enable or disable the rendering of styled and colored underlines (undercurl).
|
// Enable or disable the rendering of styled and colored underlines (undercurl).
|
||||||
// May need to be disabled for certain unsupported terminals
|
// May need to be disabled for certain unsupported terminals
|
||||||
// (Requires restart)
|
// (Requires restart)
|
||||||
// Default: true
|
// Default: true
|
||||||
//
|
//
|
||||||
// styled_underlines false
|
// styled_underlines false
|
||||||
|
|
||||||
// How often in seconds sessions are serialized
|
// How often in seconds sessions are serialized
|
||||||
//
|
//
|
||||||
// serialization_interval 10000
|
// serialization_interval 10000
|
||||||
|
|
||||||
// Enable or disable writing of session metadata to disk (if disabled, other sessions might not know
|
// Enable or disable writing of session metadata to disk (if disabled, other sessions might not know
|
||||||
// metadata info on this session)
|
// metadata info on this session)
|
||||||
// (Requires restart)
|
// (Requires restart)
|
||||||
// Default: false
|
// Default: false
|
||||||
//
|
//
|
||||||
// disable_session_metadata false
|
// disable_session_metadata false
|
||||||
|
|
||||||
// Enable or disable support for the enhanced Kitty Keyboard Protocol (the host terminal must also support it)
|
// Enable or disable support for the enhanced Kitty Keyboard Protocol (the host terminal must also support it)
|
||||||
// (Requires restart)
|
// (Requires restart)
|
||||||
// Default: true (if the host terminal supports it)
|
// Default: true (if the host terminal supports it)
|
||||||
//
|
//
|
||||||
// support_kitty_keyboard_protocol false
|
// support_kitty_keyboard_protocol false
|
||||||
|
|
||||||
// Whether to stack panes when resizing beyond a certain size
|
// Whether to stack panes when resizing beyond a certain size
|
||||||
// Default: true
|
// Default: true
|
||||||
//
|
//
|
||||||
// stacked_resize false
|
// stacked_resize false
|
||||||
|
|
||||||
// Whether to show tips on startup
|
// Whether to show tips on startup
|
||||||
// Default: true
|
// Default: true
|
||||||
//
|
//
|
||||||
// show_startup_tips false
|
// show_startup_tips false
|
||||||
|
|
||||||
// Whether to show release notes on first version run
|
// Whether to show release notes on first version run
|
||||||
// Default: true
|
// Default: true
|
||||||
//
|
//
|
||||||
// show_release_notes false
|
// show_release_notes false
|
||||||
|
@ -9,4 +9,4 @@ let g:ranger_terminal = 'kitty -e'
|
|||||||
|
|
||||||
" 調整固定視窗大小
|
" 調整固定視窗大小
|
||||||
set lines=46
|
set lines=46
|
||||||
set columns=170
|
set columns=170
|
||||||
|
@ -756,14 +756,14 @@
|
|||||||
typeset -g POWERLEVEL9K_RANGER_BACKGROUND=0
|
typeset -g POWERLEVEL9K_RANGER_BACKGROUND=0
|
||||||
# Custom icon.
|
# Custom icon.
|
||||||
# typeset -g POWERLEVEL9K_RANGER_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
# typeset -g POWERLEVEL9K_RANGER_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||||
|
|
||||||
####################[ yazi: yazi shell (https://github.com/sxyazi/yazi) ]#####################
|
####################[ yazi: yazi shell (https://github.com/sxyazi/yazi) ]#####################
|
||||||
# Yazi shell color.
|
# Yazi shell color.
|
||||||
typeset -g POWERLEVEL9K_YAZI_FOREGROUND=3
|
typeset -g POWERLEVEL9K_YAZI_FOREGROUND=3
|
||||||
typeset -g POWERLEVEL9K_YAZI_BACKGROUND=0
|
typeset -g POWERLEVEL9K_YAZI_BACKGROUND=0
|
||||||
# Custom icon.
|
# Custom icon.
|
||||||
# typeset -g POWERLEVEL9K_YAZI_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
# typeset -g POWERLEVEL9K_YAZI_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||||
|
|
||||||
######################[ nnn: nnn shell (https://github.com/jarun/nnn) ]#######################
|
######################[ nnn: nnn shell (https://github.com/jarun/nnn) ]#######################
|
||||||
# Nnn shell color.
|
# Nnn shell color.
|
||||||
typeset -g POWERLEVEL9K_NNN_FOREGROUND=0
|
typeset -g POWERLEVEL9K_NNN_FOREGROUND=0
|
||||||
|
@ -148,7 +148,7 @@ compdef floorp='firefox'
|
|||||||
if command -v xdg-open &> /dev/null; then
|
if command -v xdg-open &> /dev/null; then
|
||||||
bindkey -s '^[e' 'xdg-open "$PWD" 2> /dev/null\n'
|
bindkey -s '^[e' 'xdg-open "$PWD" 2> /dev/null\n'
|
||||||
elif [ "$(uname -s)" = 'Darwin' ]; then
|
elif [ "$(uname -s)" = 'Darwin' ]; then
|
||||||
bindkey -s '^[e' 'open "$PWD" 2> /dev/null\n'
|
bindkey -s '^[e' 'open "$PWD" 2> /dev/null\n'
|
||||||
fi
|
fi
|
||||||
# bindkey -s '^E' 'gnome-terminal --working-directory="$PWD" -- zsh\n'
|
# bindkey -s '^E' 'gnome-terminal --working-directory="$PWD" -- zsh\n'
|
||||||
|
|
||||||
@ -161,7 +161,7 @@ export PATH="$HOME/.local/share/gem/ruby/3.3.0/bin:$PATH"
|
|||||||
|
|
||||||
# Fix ython3 to python Path on macOS
|
# Fix ython3 to python Path on macOS
|
||||||
if [ "$(uname -s)" = 'Darwin' ]; then
|
if [ "$(uname -s)" = 'Darwin' ]; then
|
||||||
export PATH=/usr/local/opt/python/libexec/bin:$PATH
|
export PATH=/usr/local/opt/python/libexec/bin:$PATH
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Created by `pipx` on 2023-01-30 19:57:14
|
# Created by `pipx` on 2023-01-30 19:57:14
|
||||||
@ -204,4 +204,4 @@ function git_pushmulti() {
|
|||||||
|
|
||||||
# 執行 git pushmulti
|
# 執行 git pushmulti
|
||||||
noglob git pushmulti "$remotes" "$branches"
|
noglob git pushmulti "$remotes" "$branches"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user