# ~/.cshrc			freebsd 1500042 ~ spring '25

if ($?prompt) then
	alias	a		apropos
	alias	c		column
	alias	cp		cp -a
	alias	ddg		ddgr -Cn3
	alias	diff		diff -u
	alias	f		file -s
	alias	g		egrep -i
	alias	ga		git commit -a --amend
	alias	gb		git branch
	alias	gc		git commit
	alias	gd		git diff
	alias	gf		git fetch
	alias	gfp		git push --force-with-lease
	alias	gg		git grep
	alias	gl		git log
	alias	gls		git log --oneline --graph \
					--all --decorate
	alias	gp		git pull
	alias	gs		git show
	alias	gsl		git show --name-status
	alias	gsw		git switch
	alias	gu		git pull freebsd main
	alias	gwd		git status
	alias	h		history 15
	alias	j		jobs -l
	alias	l		ls -AFv
	alias	ll		ls -AFhlv
	alias	lr		ls -AFRv
	alias	lt		ls -Ft
	alias	m		$PAGER -M
	alias	mkdir		mkdir -p
	alias	mtl		mandoc -Tlint
	alias	mv		mv -i
	alias	m5		setenv MANWIDTH 59
	alias	m7		setenv MANWIDTH 79
	alias	m8		setenv MANWIDTH 80
	alias	ow		backlight 1
	alias	p		poweroff
	alias	rm		rm -I
	alias	t		tmux-heritage.sh
	alias	v		$EDITOR
	alias	wut		tail -15 /var/log/messages
	alias	x		startx

	bindkey	"^[[23~"	beginning-of-line
	bindkey	"^[[24~"	end-of-line
	bindkey	"^[[2~"		overwrite-mode
	bindkey	"^[[3~"		delete-char

	set	prompt =	"%# "
	set	promptchars =	"%#"
	set	filec
	set	history =	22500
	set	savehist =	(22500 merge)
	set	autolist =	ambiguous
	set	autoexpand
	set	autorehash
	set	mail =		(/var/mail/$USER)
	if	( $?tcsh )	then
		bindkey "^W"	backward-delete-word
		bindkey -k up	history-search-backward
		bindkey -k down history-search-forward
	endif
endif
