just a logo :)

search:



imprint







bashrc
Entry Nr. 400, by user 1
PS1="\W > "
alias ls='ls -Alh --color --time-style=long-iso --group-directories-first'
alias duwim='(shopt -s dotglob; du --apparent-size -c -s -B1048576 * | sort -g)'
alias df="df -h"
# ge-nautilus will start nautilus in the current dir
# ge-nautilus somedir will start nautilus in some dir
ge-nautilus() { nautilus --browser "${1:-$PWD}"& }
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
# Normal color for dirs with o+w permission:
LS_COLORS="$LS_COLORS:ow=1;34"; export LS_COLORS;
# Functions to sync a directory in the current git
# repo to the remote. Useful to sync dirs that are
# excluded via .gitignore
_gitsyncdir() {
args='-av --delete';
read -rp 'Hit enter for a dry-run or type "real" for the real deal: ' answer;
if [[ $answer != real ]]; then args+=' -n'; fi;
rsync $args "$1" "$2";
}
gitsyncdirTOremote() {
src="$1/"
dst="$(git config remote.origin.url)$1/"
_gitsyncdir $src $dst
}
gitsyncdirFROMremote() {
dst="$1/"
src="$(git config remote.origin.url)$1/"
_gitsyncdir $src $dst
}