mirror of
https://codeberg.org/qwjyh/dotfiles.git
synced 2025-06-27 03:39:20 +09:00
update fish config & init.lua
This commit is contained in:
parent
48f76c8991
commit
05147b5aea
2 changed files with 22 additions and 16 deletions
|
@ -2,23 +2,28 @@
|
|||
# bass source ~/.bashrc
|
||||
|
||||
if status is-interactive
|
||||
# starship
|
||||
starship init fish | source
|
||||
|
||||
function set_win_title
|
||||
echo -ne "\033]0; (basename "$PWD") \007"
|
||||
end
|
||||
set starship_precmd_uesr_func "set_win_title"
|
||||
|
||||
# keychain
|
||||
set -x SHELL fish
|
||||
keychain --eval --quiet -Q id_rsa, id_ed25519 | source
|
||||
set -x SHELL bash
|
||||
|
||||
# opam
|
||||
# source ~/.opam/opam-init/init.fish > /dev/null 2> /dev/null; or true
|
||||
end
|
||||
|
||||
# starship
|
||||
starship init fish | source
|
||||
|
||||
function set_win_title
|
||||
echo -ne "\033]0; (basename "$PWD") \007"
|
||||
end
|
||||
set starship_precmd_uesr_func "set_win_title"
|
||||
|
||||
# keychain
|
||||
set -x SHELL fish
|
||||
keychain --eval --quiet -Q id_rsa, id_ed25519 | source
|
||||
set -x SHELL bash
|
||||
|
||||
# opam
|
||||
# source ~/.opam/opam-init/init.fish > /dev/null 2> /dev/null; or true
|
||||
opam env --shell fish | source
|
||||
|
||||
# key bindings
|
||||
bind \b backward-kill-word
|
||||
bind \b backward-kill-word
|
||||
|
||||
|
||||
# env
|
||||
set -x LESS '-i -r -M -R -S -W -z-4 -x4'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue