mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
style: format shell scripts
This commit is contained in:
parent
8575e2e376
commit
e8389b3bd7
9 changed files with 287 additions and 287 deletions
|
|
@ -3,14 +3,13 @@
|
|||
# Author: js0ny
|
||||
# Sourced by user's zshrc 在用户的 zshrc 中被引用
|
||||
|
||||
|
||||
# Define __CD_CMD as "cd" by default
|
||||
__CD_CMD="cd"
|
||||
|
||||
# If zoxide is available, use it
|
||||
if command -v zoxide >/dev/null; then
|
||||
__CD_CMD="z"
|
||||
eval "$(zoxide init zsh)"
|
||||
__CD_CMD="z"
|
||||
eval "$(zoxide init zsh)"
|
||||
fi
|
||||
|
||||
# Define aliases for quick navigation
|
||||
|
|
@ -25,7 +24,7 @@ alias - "$__CD_CMD -"
|
|||
|
||||
# Define zls function for cd + ls
|
||||
zls() {
|
||||
"$__CD_CMD" "$1" && ls
|
||||
"$__CD_CMD" "$1" && ls
|
||||
}
|
||||
alias cdls=zls
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue