fix
This commit is contained in:
parent
acb57500ff
commit
e44122f39d
1 changed files with 5 additions and 13 deletions
18
.svzshrc
18
.svzshrc
|
@ -30,14 +30,11 @@ alias ls='exa --icons -a'
|
|||
alias lsa='exa --icons -T -a'
|
||||
|
||||
# batをcatの代わりにする
|
||||
alias cat="bat --color=always --style=plain"
|
||||
alias cat="batcat --color=always --style=plain"
|
||||
|
||||
# clearを短縮する
|
||||
alias cls=clear
|
||||
|
||||
# 天気情報
|
||||
alias wttr='() { curl -H "Accept-Language: ${LANG%_ja}" wttr.in/"${1:-Saitama}" }'
|
||||
|
||||
# BAT関連
|
||||
export BAT_THEME="TwoDark"
|
||||
|
||||
|
@ -46,19 +43,15 @@ eval "$(zoxide init zsh)"
|
|||
zle -N zi
|
||||
bindkey '^z' zi
|
||||
|
||||
# Tailscale関連
|
||||
alias tlsc='sudo tailscale up --exit-node-allow-lan-access --exit-node=mystech'
|
||||
alias tlscd='sudo tailscale down'
|
||||
|
||||
# fzf関連
|
||||
export FZF_CTRL_R_OPTS="--reverse --preview 'echo {}' --preview-window=border-sharp,down:3:hidden:wrap --bind '?:toggle-preview'"
|
||||
export FZF_DEFAULT_COMMAND='rg --files --hidden 2> /dev/null --follow --glob "!.git/*"'
|
||||
export FZF_DEFAULT_OPTS="--ansi --no-separator --no-scrollbar --reverse --border=none \
|
||||
export FZF_DEFAULT_OPTS="--ansi --reverse --border=none \
|
||||
--color=bg+:#1c1e26,bg:#1c1e26,spinner:#ee64ac,hl:#e95678 \
|
||||
--color=fg:#d5d8da,header:#e95678,info:#e95678,pointer:#ee64ac \
|
||||
--color=marker:#ee64ac,fg+:#d5d8da,prompt:#e95678,hl+:#e95678"
|
||||
export FZF_CTRL_T_COMMAND='rg --files --hidden 2> /dev/null --follow --glob "!.git/*"'
|
||||
export FZF_CTRL_T_OPTS="--preview 'bat --color=always --style=plain --line-range :100 {}' --preview-window=border-sharp,right:60%"
|
||||
export FZF_CTRL_T_OPTS="--preview 'batcat --color=always --style=plain --line-range :100 {}' --preview-window=border-sharp,right:60%"
|
||||
export FZF_ALT_C_COMMAND='fd -t d --hidden'
|
||||
export FZF_ALT_C_OPTS="--preview 'exa {} -h -T -F --no-user --no-time --no-filesize --no-permissions --long | head -200' --preview-window=border-sharp,hidden:right:60% --bind '?:toggle-preview'"
|
||||
export RUNEWIDTH_EASTASIAN=0
|
||||
|
@ -86,9 +79,9 @@ fadd() {
|
|||
}
|
||||
|
||||
fman() {
|
||||
man -k . | fzf -q "$1" --prompt='man> ' --preview $'echo {} | tr -d \'()\' | awk \'{printf "%s ", $2} {print $1}\' | xargs -r man | col -bx | bat -l man -p --color always' --preview-window=border-sharp,right:60% --bind '?:toggle-preview' | tr -d '()' | awk '{printf "%s ", $2} {print $1}' | xargs -r man
|
||||
man -k . | fzf -q "$1" --prompt='man> ' --preview $'echo {} | tr -d \'()\' | awk \'{printf "%s ", $2} {print $1}\' | xargs -r man | col -bx | batcat -l man -p --color always' --preview-window=border-sharp,right:60% --bind '?:toggle-preview' | tr -d '()' | awk '{printf "%s ", $2} {print $1}' | xargs -r man
|
||||
}
|
||||
export MANPAGER="sh -c 'col -bx | bat -l man -p --paging always'"
|
||||
export MANPAGER="sh -c 'col -bx | batcat -l man -p --paging always'"
|
||||
|
||||
# 履歴関連
|
||||
HISTFILE=~/.zsh_history # ヒストリを保存するファイル
|
||||
|
@ -97,4 +90,3 @@ SAVEHIST=10000 # 保存されるヒストリの件数
|
|||
setopt bang_hist # !を使ったヒストリ展開を行う(d)
|
||||
setopt extended_history # ヒストリに実行時間も保存する
|
||||
setopt hist_reduce_blanks # 余分なスペースを削除してヒストリに保存する
|
||||
|
||||
|
|
Loading…
Reference in a new issue