diff --git a/bin/install.sh b/bin/install.sh new file mode 100644 index 0000000..cabc0ff --- /dev/null +++ b/bin/install.sh @@ -0,0 +1 @@ +ln -s (pwd)/dotfiles/fish/config.fish ~/.config/fish/config.fish diff --git a/dotfiles/fish/config.fish b/dotfiles/fish/config.fish index 428fa5c..09b6f19 100644 --- a/dotfiles/fish/config.fish +++ b/dotfiles/fish/config.fish @@ -1,9 +1,24 @@ +# load .bashrc +# bass source ~/.bashrc + if status is-interactive - # Commands to run in interactive sessions can go here # 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 -# opam configuration -source /home/qwjyh/.opam/opam-init/init.fish > /dev/null 2> /dev/null; or true +# key bindings +bind \b backward-kill-word \ No newline at end of file