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
|
|
@ -129,8 +129,8 @@ if command_exists fzf; then
|
|||
# Check shell type to determine how to set environment variables
|
||||
if [ -n "${FISH_VERSION:-}" ] || command_exists fish; then
|
||||
# For Fish shell
|
||||
fish -c 'set -U FZF_DEFAULT_OPTS "--color=bg+:#313244,bg:#1e1e2e,spinner:#f5e0dc,hl:#f38ba8 --color=fg:#cdd6f4,header:#f38ba8,info:#cba6f7,pointer:#f5e0dc --color=marker:#b4befe,fg+:#cdd6f4,prompt:#cba6f7,hl+:#f38ba8 --color=selected-bg:#45475a --multi"' ||
|
||||
echo "WARNING: Failed to set FZF options for Fish shell" >&2
|
||||
fish -c 'set -U FZF_DEFAULT_OPTS "--color=bg+:#313244,bg:#1e1e2e,spinner:#f5e0dc,hl:#f38ba8 --color=fg:#cdd6f4,header:#f38ba8,info:#cba6f7,pointer:#f5e0dc --color=marker:#b4befe,fg+:#cdd6f4,prompt:#cba6f7,hl+:#f38ba8 --color=selected-bg:#45475a --multi"' \
|
||||
|| echo "WARNING: Failed to set FZF options for Fish shell" >&2
|
||||
else
|
||||
# For Bash/Zsh - add to both .bashrc and .zshrc if they exist
|
||||
FZF_CONFIG="export FZF_DEFAULT_OPTS=\"--color=bg+:#313244,bg:#1e1e2e,spinner:#f5e0dc,hl:#f38ba8 --color=fg:#cdd6f4,header:#f38ba8,info:#cba6f7,pointer:#f5e0dc --color=marker:#b4befe,fg+:#cdd6f4,prompt:#cba6f7,hl+:#f38ba8 --color=selected-bg:#45475a --multi\""
|
||||
|
|
|
|||
|
|
@ -123,10 +123,10 @@ fi
|
|||
# TODO: Add this part
|
||||
read -p "[ACTION] Do you want to use other package managers? (y/N) " -r choice
|
||||
case "$choice" in
|
||||
y | Y)
|
||||
y | Y)
|
||||
:
|
||||
;;
|
||||
*)
|
||||
*)
|
||||
:
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
|
||||
|
|
@ -3,7 +3,6 @@
|
|||
# Author: js0ny
|
||||
# Sourced by user's zshrc 在用户的 zshrc 中被引用
|
||||
|
||||
|
||||
# Define __CD_CMD as "cd" by default
|
||||
__CD_CMD="cd"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue