From 13ed8a5d140603a6703e2cda02c3a08046b7fcb3 Mon Sep 17 00:00:00 2001 From: Jannik ZANDER Date: Sat, 7 Jul 2018 21:03:23 +0200 Subject: [PATCH] Rename bash files --- .config/bash/{aliases => aliases.sh} | 7 ++++--- .config/bash/{completion => completion.sh} | 0 .config/bash/{options => options.sh} | 0 3 files changed, 4 insertions(+), 3 deletions(-) rename .config/bash/{aliases => aliases.sh} (95%) rename .config/bash/{completion => completion.sh} (100%) rename .config/bash/{options => options.sh} (100%) diff --git a/.config/bash/aliases b/.config/bash/aliases.sh similarity index 95% rename from .config/bash/aliases rename to .config/bash/aliases.sh index 134e809..0ecbb00 100644 --- a/.config/bash/aliases +++ b/.config/bash/aliases.sh @@ -33,6 +33,7 @@ alias rd='rmdir' # My shortcuts alias h='history' +alias q='exit' alias info='info --vi-keys' alias open='xdg-open &>/dev/null' alias dit='git --git-dir=$HOME/.dit --work-tree=$HOME' @@ -50,16 +51,16 @@ alias sudo='sudo ' # Get week number alias week='date +%V' +# Make directory named todays date +alias mkdate='mkdir "$(date +'%Y%m%d')"' + # Stopwatch alias timer='echo "Timer started. Stop with Ctrl-D." && date && time cat && date' -# make date folders -alias mkdate='mkdir "$(date +'%Y%m%d')"' # Automatically change the directory in bash after closing ranger function ranger-cd { tempfile="$(mktemp -t tmp.XXXXXX)" -# /usr/bin/ranger --choosedir="$tempfile" "${@:-$(pwd)}" ~/bin/ranger --choosedir="$tempfile" "${@:-$(pwd)}" test -f "$tempfile" && if [ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then diff --git a/.config/bash/completion b/.config/bash/completion.sh similarity index 100% rename from .config/bash/completion rename to .config/bash/completion.sh diff --git a/.config/bash/options b/.config/bash/options.sh similarity index 100% rename from .config/bash/options rename to .config/bash/options.sh -- 2.43.0