Skip to content

Instantly share code, notes, and snippets.

@Rexagon
Created February 26, 2026 14:10
Show Gist options
  • Select an option

  • Save Rexagon/adda9cf1cafc747d6ca8495699d748fd to your computer and use it in GitHub Desktop.

Select an option

Save Rexagon/adda9cf1cafc747d6ca8495699d748fd to your computer and use it in GitHub Desktop.
Fish-shell config file
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"
@Rexagon
Copy link
Author

Rexagon commented Feb 26, 2026

Starship config:

add_newline = false

format = "$all$fill$time$line_break$character"

[fill]
symbol = ""

[time]
disabled = false
format = "[ $time ](fg:yellow)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment