Created
February 26, 2026 14:10
-
-
Save Rexagon/adda9cf1cafc747d6ca8495699d748fd to your computer and use it in GitHub Desktop.
Fish-shell config file
This file contains hidden or 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
| if status is-interactive | |
| # Commands to run in interactive sessions can go here | |
| end | |
| set -g fish_greeting "" | |
| set -U fish_key_bindings fish_default_key_bindings | |
| starship init fish | source | |
| function starship_transient_prompt_func | |
| tput cuu1 | |
| starship module character | |
| end | |
| function postexec_test --on-event fish_postexec | |
| echo | |
| end | |
| alias clear "command clear; commandline -f clear-screen" | |
| fish_add_path "$HOME/.local/bin" | |
| function p -d "Go to a project directory" -a name | |
| cd "$HOME/projects/$name" | |
| end | |
| complete -c p -a "(command ls -d $HOME/projects/*/ | xargs -n1 basename)" -d "project name" --no-files | |
| function random_addr | |
| echo "0:$(head -c32 /dev/random | xxd -p -c0)" | |
| end | |
| # fift | |
| set -x FIFT_INSTALL "$HOME/.fift" | |
| fish_add_path "$FIFT_INSTALL/bin" | |
| # bun | |
| set -x BUN_INSTALL "$HOME/.bun" | |
| fish_add_path "$BUN_INSTALL/bin" | |
| # rocksdb | |
| set -x ROCKSDB_LIB_DIR "$HOME/projects/rocksdb/build/" | |
| # clipboard | |
| alias xclip "xclip -selection c" | |
| # git stuff | |
| alias glog "serie" | |
| alias jjk "lazyjj" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Starship config: