mirror of
https://github.com/rywng/dotfiles.git
synced 2024-11-24 20:01:49 +08:00
Compare commits
2 Commits
02993dfbfc
...
b8e24c04a2
Author | SHA1 | Date | |
---|---|---|---|
|
b8e24c04a2 | ||
|
d51563c8f9 |
@ -5,11 +5,21 @@ set drawbox true
|
|||||||
set icons true
|
set icons true
|
||||||
set ignorecase true
|
set ignorecase true
|
||||||
set info size
|
set info size
|
||||||
|
# set previewer ~/.config/lf/preview.sh
|
||||||
|
# set preview true
|
||||||
|
|
||||||
map D push %rm<space>-rf<space>$fs
|
map D push %rm<space>-rf<space>$fs
|
||||||
map a push %mkdir<space>
|
map a push %mkdir<space>
|
||||||
map x $$f
|
map x $$f
|
||||||
|
|
||||||
|
# xdg-open
|
||||||
|
cmd open ${{
|
||||||
|
case $(file --mime-type "$f" -bL) in
|
||||||
|
text/*|application/json) $EDITOR "$f";;
|
||||||
|
*) xdg-open "$f" ;;
|
||||||
|
esac
|
||||||
|
}}
|
||||||
|
|
||||||
# bulk-rename
|
# bulk-rename
|
||||||
cmd bulk-rename ${{
|
cmd bulk-rename ${{
|
||||||
old="$(mktemp)"
|
old="$(mktemp)"
|
||||||
|
@ -366,7 +366,7 @@ space_add_mode = add_remove
|
|||||||
## media_library, playlist_editor, tag_editor, outputs, visualizer, clock,
|
## media_library, playlist_editor, tag_editor, outputs, visualizer, clock,
|
||||||
## lyrics, last_fm.
|
## lyrics, last_fm.
|
||||||
##
|
##
|
||||||
screen_switcher_mode = playlist, media_library, playlist_editor, visualizer, help
|
screen_switcher_mode = previous
|
||||||
#
|
#
|
||||||
##
|
##
|
||||||
## Note: You can define startup screen by choosing screen from the list above.
|
## Note: You can define startup screen by choosing screen from the list above.
|
||||||
|
23
.zshrc
23
.zshrc
@ -62,6 +62,20 @@ autoload edit-command-line
|
|||||||
zle -N edit-command-line
|
zle -N edit-command-line
|
||||||
bindkey '' edit-command-line
|
bindkey '' edit-command-line
|
||||||
|
|
||||||
|
#TheFuck plugin
|
||||||
|
fuck_cache="$HOME/.cache/thefuck"
|
||||||
|
test -f $fuck_cache || thefuck --alias pls >| "$fuck_cache"
|
||||||
|
source "$fuck_cache"
|
||||||
|
unset fuck_cache
|
||||||
|
|
||||||
|
#source fasd_cache for 40 ms quicker start.
|
||||||
|
fasd_cache="$HOME/.cache/fasd_cache"
|
||||||
|
if [ "$(command -v fasd)" -nt "$fasd_cache" -o ! -s "$fasd_cache" ]; then
|
||||||
|
fasd --init zsh-hook zsh-ccomp zsh-ccomp-install zsh-wcomp zsh-wcomp-install posix-alias posix-hook >| "$fasd_cache"
|
||||||
|
fi
|
||||||
|
source "$fasd_cache"
|
||||||
|
unset fasd_cache
|
||||||
|
|
||||||
#use lf to change dirs. credit: luke
|
#use lf to change dirs. credit: luke
|
||||||
lfcd () {
|
lfcd () {
|
||||||
tmp="$(mktemp)"
|
tmp="$(mktemp)"
|
||||||
@ -111,19 +125,12 @@ export PATH="${PATH}:${HOME}/.scripts/"
|
|||||||
export USE_CCACHE=1
|
export USE_CCACHE=1
|
||||||
export PATH="/usr/lib/ccache/bin${PATH:+:}$PATH"
|
export PATH="/usr/lib/ccache/bin${PATH:+:}$PATH"
|
||||||
|
|
||||||
#source fasd_cache for 40 ms quicker start.
|
|
||||||
fasd_cache="$HOME/.cache/fasd_cache"
|
|
||||||
if [ "$(command -v fasd)" -nt "$fasd_cache" -o ! -s "$fasd_cache" ]; then
|
|
||||||
fasd --init zsh-hook zsh-ccomp zsh-ccomp-install zsh-wcomp zsh-wcomp-install posix-alias posix-hook >| "$fasd_cache"
|
|
||||||
fi
|
|
||||||
source "$fasd_cache"
|
|
||||||
unset fasd_cache
|
|
||||||
|
|
||||||
alias b='bat'
|
alias b='bat'
|
||||||
alias btctl='bluetoothctl'
|
alias btctl='bluetoothctl'
|
||||||
alias cp='cp -iv'
|
alias cp='cp -iv'
|
||||||
alias df='df -h'
|
alias df='df -h'
|
||||||
alias diff='diff --color=auto'
|
alias diff='diff --color=auto'
|
||||||
|
alias nya='doas'
|
||||||
alias e='emerge'
|
alias e='emerge'
|
||||||
alias free='free -h'
|
alias free='free -h'
|
||||||
alias g='git'
|
alias g='git'
|
||||||
|
Loading…
Reference in New Issue
Block a user