diff options
author | Süleyman Fərəcli <suleyman@farajli.net> | 2025-06-21 14:38:39 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-21 14:38:39 +0400 |
commit | f181ee99cbde0dd6d48e586e0b1474b69ef2a46d (patch) | |
tree | 08f36ed9f043bb2715c6a6392a7637a5c68d56e8 /config/bash | |
parent | 36cc103b538451aa2ffad792fc4ea98cf152e0e9 (diff) | |
parent | 4f794c1c893818bae6e8b282329bf815ee69b268 (diff) |
Merge pull request #14 from sfarajli/dev
Dev
Diffstat (limited to 'config/bash')
-rw-r--r-- | config/bash/bashrc | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/config/bash/bashrc b/config/bash/bashrc index 8396d9f..a4b497f 100644 --- a/config/bash/bashrc +++ b/config/bash/bashrc @@ -1,3 +1,5 @@ +# Minimal bashrc meant for servers + set -o vi # `set show-mode-in-prompt on` is not set, # indicating vi mode in bash is too slow @@ -16,13 +18,21 @@ if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc" ];then else # Fallback aliases where aliasrc isn't present (e.g., on servers) alias \ - vi="vim" \ + claer="clear -x" \ + clear="clear -x" \ + clera="clear -x" \ + lf="lfcd" \ vi="nvim" \ - clear="clear -x" + vi="vim" fi if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/functionrc" ];then source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/functionrc" - bind '"\C-o": "\C-ulfcd\n"' +else + lfcd () { + cd "$(command lf -print-last-dir "$@")" + } fi + +bind '"\C-o": "\C-ulfcd\n"' |