Newer
Older
server-setup / config.fish
# ~/.config/fish/config.fish
# Mostly copied from .bash_aliases

function fish_prompt
	set_color -o green
	echo -ns (whoami) '@' (hostname)
	set_color white
	echo -n ':'
	set_color -o cyan
	echo -n (prompt_pwd)
	set_color white
	echo -n '$ '
	set_color normal
end
	
# handy ls aliases
alias ll='ls -alhF'
alias la='ls -A'
alias l='ls -CF'
alias i='ls'
	
# personal aliases
alias w3md='w3m www.duckduckgo.com'
alias tma='tmux a'
alias tmn='tmux new -s'
alias ping3='ping -c 3'
alias gping='ping -c 3 www.google.com'
alias emacs='emacsclient -c -a ""'
alias emacs='emacsclient -c -a "" --tty'
alias py='python3'
alias t='date +%T'
alias disk='df -h'
alias df='df -h'
alias du='du -sch *'
alias wcl='wc -l'
alias todolist='grep -r "FIXME" * ; grep -r "TODO" * ; grep -r "XXX" *'
alias todo='todolist; wcl todolist'
alias ghist='git hist | head'
alias gstat='git status'