Last active
June 4, 2024 14:01
-
-
Save piggynl/20f49897b4a62cb6e0fcb3c7b3adfa36 to your computer and use it in GitHub Desktop.
~/.config/fish/config.fish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function last_history_item | |
echo $history[1] | |
end | |
abbr -a !! --position anywhere --function last_history_item | |
function ip | |
command ip --color=auto $argv | |
end | |
set -x CC clang | |
set -x CXX clang++ | |
set -x LESS "-S -R" | |
set -x RUSTUP_UPDATE_ROOT https://mirrors.tuna.tsinghua.edu.cn/rustup/rustup | |
set -x RUSTUP_DIST_SERVER https://mirrors.tuna.tsinghua.edu.cn/rustup | |
function make_workdir | |
if test "$(pwd)" != "$HOME" | |
return | |
end | |
set current_month "$(date +%Y-%m)" | |
mkdir -pv "$HOME/$current_month" | |
cd "$HOME/$current_month" | |
end | |
make_workdir | |
set -g fish_greeting | |
set -g fish_prompt_pwd_dir_length 0 | |
function fish_user_key_bindings | |
bind \b backward-kill-word | |
bind \e\[3\;5~ kill-word | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment