32 lines
537 B
Plaintext
32 lines
537 B
Plaintext
|
if status is-interactive
|
||
|
and not status is-login
|
||
|
and test -z "$TMUX"
|
||
|
|
||
|
exec tmux new-session
|
||
|
end
|
||
|
|
||
|
function fish_prompt
|
||
|
echo (set_color purple)"$hostname% "
|
||
|
end
|
||
|
|
||
|
function fish_right_prompt
|
||
|
echo (set_color green)(pwd)
|
||
|
end
|
||
|
|
||
|
function fish_greeting
|
||
|
echo "Word of the moment: "(shuf -n1 /usr/share/dict/words) |
|
||
|
awk -f ~/src/scripts/mid.awk col=$COLUMNS
|
||
|
end
|
||
|
|
||
|
function rebuild
|
||
|
$HOME/src/scripts/rebuild.rkt
|
||
|
end
|
||
|
|
||
|
function cheat.sh
|
||
|
curl cheat.sh/$argv
|
||
|
end
|
||
|
|
||
|
complete -c cheat.sh -xa '(curl -s cheat.sh/:list)'
|
||
|
|
||
|
## EOF
|