From 0a1984ca96c95744abea3356f9f5d8e2e8cedccc Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Sat, 29 Apr 2017 11:28:30 +0200 Subject: [PATCH] Spring clean. --- .bashrc | 87 +++++---------------------------------------------------- 1 file changed, 7 insertions(+), 80 deletions(-) diff --git a/.bashrc b/.bashrc index 2cfa2f0..0a5ce26 100644 --- a/.bashrc +++ b/.bashrc @@ -59,7 +59,6 @@ export DEBEMAIL DEBFULLNAME export PATH="$PATH:$HOME/mbin:$HOME/.local/bin" export EDITOR=emacs export LC_ALL='en_US.utf8' -export LS_OPTIONS='--color=auto' export HISTCONTROL=ignoredups export HISTFILESIZE=5000 @@ -121,18 +120,9 @@ else export PS1="$PS1"'\$ ' fi alias grep="grep --exclude-dir=.git --color" -alias ls='ls $LS_OPTIONS' -alias ll='ls $LS_OPTIONS -l' -alias l='ls $LS_OPTIONS -lA' -alias ...=".. 2" -alias ....=".. 3" -alias .....=".. 4" +alias ls='ls --color=auto' alias scr='screen -D -R -U -h 424242' -alias lintian='lintian --pedantic -v -iI --display-experimental --show-overrides' alias fingerprint='find /etc/ssh -name "*.pub" -exec ssh-keygen -l -f {} \;' -# My old emacs alias (Opening file with file:lineno) is replaced by a function -# in my .emacs. -alias e='emacs' if [ -f /etc/bash_completion ]; then . /etc/bash_completion @@ -146,23 +136,19 @@ if [ -f ~/.my_bashrc ]; then . ~/.my_bashrc fi -..() -{ - for ((j=${1:-1},i=0;i/dev/null || echo "No such mark: $1" -} - -function mark -{ - mkdir -p "$MARKPATH" - ln -s "$(pwd)" "$MARKPATH/$1" -} - -function unmark -{ - rm -i "$MARKPATH/$1" -} - -function marks -{ - ls -l "$MARKPATH" | sed 's/ / /g' | cut -d' ' -f9- | sed 's/ -/\t-/g' && echo -} - -if [ -f ~/.git-prompt.sh ] -then - source ~/.git-prompt.sh -fi - function workon { local VENVS="$HOME/.venvs"