mirror of
https://codeberg.org/qwjyh/dotfiles.git
synced 2025-06-27 03:39:20 +09:00
Merge branch 'main' into manjaro
This commit is contained in:
commit
b7f0f5a7ea
17 changed files with 636 additions and 38 deletions
|
@ -1,14 +1,39 @@
|
|||
# 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
|
||||
|
||||
# save fish log to my custom file
|
||||
set -gx my_fish_history "$HOME/my_fish_history.txt"
|
||||
function save_myhistory --on-event fish_prompt -d "Save custom shell log to $my_fish_history"
|
||||
set -l prev_status $status
|
||||
echo "$(date '+%Y-%m-%d %H:%M:%S') $hostname:$fish_pid $PWD [$prev_status] $(history -1)" \
|
||||
>> $my_fish_history
|
||||
end
|
||||
|
||||
|
||||
# julia
|
||||
# to solve Graphic Card driver problem
|
||||
export LD_PRELOAD=/usr/lib64/libstdc++.so.6
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue