fix(bash): shell integration
This commit is contained in:
parent
c3e5986aeb
commit
9c1fc433e4
4 changed files with 24 additions and 33 deletions
|
|
@ -10,23 +10,11 @@ HISTSIZE=2000
|
|||
HISTFILESIZE=2000
|
||||
HISTCONTROL=ignoreboth:erasedups
|
||||
|
||||
alias ls='eza'
|
||||
alias l='ls --color=auto --group-directories-first'
|
||||
alias ll='l -alF'
|
||||
alias la='ll -R'
|
||||
alias g='git'
|
||||
alias nv='nvim'
|
||||
|
||||
export GPG_TTY=$(tty)
|
||||
export THEME="${THEME:-midnight}"
|
||||
export FZF_COMPLETION_TRIGGER=';'
|
||||
export FZF_TMUX=1
|
||||
|
||||
eval "$(fzf --bash)"
|
||||
eval "$(zoxide init bash)"
|
||||
eval "$(direnv hook bash)"
|
||||
eval "$(starship init bash)"
|
||||
|
||||
fzf-config-widget() {
|
||||
local file
|
||||
file="$(FZF_CTRL_T_COMMAND="fd --type file --hidden . \"$XDG_CONFIG_HOME\"/nix | sed \"s|$HOME|~|g\"" fzf --reverse)" || return
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ set show-all-if-ambiguous on
|
|||
|
||||
$if mode=vi
|
||||
set keymap vi-command
|
||||
"\C-l": clear-screen
|
||||
"\C-p": previous-history
|
||||
"\C-n": next-history
|
||||
"\C-j": backward-char
|
||||
|
|
@ -16,6 +17,7 @@ $if mode=vi
|
|||
"\e[3~": delete-char
|
||||
|
||||
set keymap vi-insert
|
||||
"\C-l": clear-screen
|
||||
"\C-p": previous-history
|
||||
"\C-n": next-history
|
||||
"\C-j": backward-char
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue