dotfiles

Configuration for the software I use.
git clone https://git.sr.ht/~jbauer/dotfiles
Log | Files | Refs | README | LICENSE

commit 868aeead36af02c3ca657825804392b504f9752c
parent b699cb1764ee518df6d6ba0ab44888863e861583
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Wed,  8 Mar 2023 23:01:20 -0500

Improve config.fish

Diffstat:
M.config/fish/config.fish | 19+++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)

diff --git a/.config/fish/config.fish b/.config/fish/config.fish @@ -1,30 +1,37 @@ # Fish shell configuration -set PATH "$PATH:$HOME/.local/bin" +set PATH /usr/local/bin $PATH set EDITOR "nvim" if status is-interactive # Theming fish_config theme choose "Mono Lace" - set fish_color_cwd black --bold + set fish_color_cwd black set fish_greeting "" # Functions function fish_prompt -d "The almighty shell prompt" - printf '[%s@%s %s%s%s]$ ' $USER $hostname \ + printf '[%s@%s %s%s%s]$ \x1b[\x33 q' $USER $hostname \ (set_color $fish_color_cwd) (prompt_pwd) (set_color normal) end + function pastesrv -d "Upload a file and share a link" - ssh cerberus "cat > /var/www/ftp.paritybit.ca/paste/$1" - echo "https://ftp.paritybit.ca/paste/$1" | tee -a "$HOME/.pastesrvhist" + if test $argv[1] + set dest $argv[1] + else + set dest "paste" + end + ssh cerberus "cat > /var/www/ftp.paritybit.ca/paste/$dest" + echo "https://ftp.paritybit.ca/paste/$dest" | tee -a "$HOME/.pastesrvhist" end # Aliases - alias ls='ls -lvF' + alias ls='ls -lF' alias rm='rm -iv' alias cp='cp -iv' alias mv='mv -iv' alias vi='nvim' alias open='xdg-open' alias pubip='curl -s https://ifconfig.me; printf "\n"' + alias tm='tail -f /var/log/messages' end