config: update random login stuff & fix preferred editor

This commit is contained in:
xerus2000 2020-11-14 02:28:26 +01:00
parent cf9b795acb
commit 0bb8e67c7d
3 changed files with 14 additions and 6 deletions

View File

@ -163,11 +163,11 @@ alias zcp='noglob zmv -C'
alias zln='noglob zmv -L'
alias zsy='noglob zmv -Ls'
# Preferred editor for local and remote sessions
which nvim >/dev/null && export EDITOR='nvim' || export EDITOR='vim'
for file in $CONFIG_SHELLS/*; do source $file; done
# Preferred editor
which nvim >/dev/null && export EDITOR='nvim' || export EDITOR='vim'
# AUTOMATICALLY ADDED SHIT
export NVM_DIR="$HOME/.nvm"
@ -177,4 +177,8 @@ export NVM_DIR="$HOME/.nvm"
# To customize prompt, run `p10k configure` or edit .p10k.zsh.
test -s $CONFIG_ZSH/.p10k.zsh && source $CONFIG_ZSH/.p10k.zsh
test -d /usr/share/fzf && source /usr/share/fzf/key-bindings.zsh && source /usr/share/fzf/completion.zsh || return 0
test -d /usr/share/fzf && source /usr/share/fzf/key-bindings.zsh && source /usr/share/fzf/completion.zsh
which direnv >/dev/null && eval "$(direnv hook zsh)"
return 0

View File

@ -3,3 +3,6 @@ export KDEHOME="$XDG_DATA_HOME/kdehome"
# Update keyboard layout to US if keyboardio is connected
$HOME/.local/bin/update-keyboard-layout
# Swap semicolon and colon - https://unix.stackexchange.com/questions/615799/swap-semicolon-colon-to-p-unexpected-cause-semicolon-colon-affected-by-cpas-lock
xmodmap -e "keycode 47 = colon semicolon colon semicolon"

View File

@ -29,8 +29,9 @@ test -f "/usr/lib/libstderred.so" && export LD_PRELOAD="/usr/lib/libstderred.so$
export PASSWORD_STORE_ENABLE_EXTENSIONS="true"
# fzf defaults
export FZF_DEFAULT_OPTS='--select-1 --exit-0 --tiebreak=end,length --history=/var/tmp/fzf-history --ansi --bind="alt-enter:execute(test -O {} && $EDITOR {} || sudoedit {}),del:execute(gio trash {}),change:top,left-click:execute(xdg-open {})"'
export FZF_DEFAULT_COMMAND="fd --hidden --type file --color=always --no-ignore-vcs"
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
FD_BASE="fd --hidden --color=always --no-ignore-vcs"
export FZF_DEFAULT_COMMAND="$FD_BASE --type file"
export FZF_CTRL_T_COMMAND="$FD_BASE -d 4"
# ctest
export CTEST_PROGRESS_OUTPUT=1
export CTEST_OUTPUT_ON_FAILURE=1