1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-11-24 11:51:50 +08:00

Compare commits

..

No commits in common. "b8e24c04a287f929ae5921ff86c4ee80559f6a94" and "02993dfbfcbd08b527f626f0eccb8c147035c1f1" have entirely different histories.

3 changed files with 9 additions and 26 deletions

View File

@ -5,21 +5,11 @@ set drawbox true
set icons true
set ignorecase true
set info size
# set previewer ~/.config/lf/preview.sh
# set preview true
map D push %rm<space>-rf<space>$fs
map a push %mkdir<space>
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
cmd bulk-rename ${{
old="$(mktemp)"

View File

@ -366,7 +366,7 @@ space_add_mode = add_remove
## media_library, playlist_editor, tag_editor, outputs, visualizer, clock,
## lyrics, last_fm.
##
screen_switcher_mode = previous
screen_switcher_mode = playlist, media_library, playlist_editor, visualizer, help
#
##
## Note: You can define startup screen by choosing screen from the list above.

23
.zshrc
View File

@ -62,20 +62,6 @@ autoload edit-command-line
zle -N 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
lfcd () {
tmp="$(mktemp)"
@ -125,12 +111,19 @@ export PATH="${PATH}:${HOME}/.scripts/"
export USE_CCACHE=1
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 btctl='bluetoothctl'
alias cp='cp -iv'
alias df='df -h'
alias diff='diff --color=auto'
alias nya='doas'
alias e='emerge'
alias free='free -h'
alias g='git'