etc/commonshrc

28 lines
570 B
Bash

# Copyright (C) 2011 Gabriel Ebner
# vim:fdm=marker ft=sh:
export USER=`whoami`
test -d /run/current-system || . $HOME/etc/nonnixshellrc
# Customisation of Programs {{{1
alias ls='ls --color=auto'
export EMAIL='gebner@gebner.org'
test -x /usr/bin/lesspipe && eval `lesspipe`
export MPD_HOST=127.0.0.1 MPD_PORT=6600
export EDITOR="`which nvim || which vim || which vi`"
alias vi="$EDITOR"
export BROWSER=xdg-open
alias udetokei='tokei $(rg --files)'
alias time=$(which time)
# passc
passc() {
pass show "$1" | (read i; cat; echo -n "$i" | xclip -l 1 -se c)
}