dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 7ef024aa101fd30630a9ce62f01b89dfddf7d9d1
parent f0e8b79dfddfc52b5b85db2b4c59da908f7c3ac6
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Tue, 21 Aug 2018 12:31:45 +0200

Added config function for dotfile management

Diffstat:
Mcommonprofile | 16++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/commonprofile b/commonprofile @@ -12,8 +12,8 @@ alias less='less -RXc' # Preferred 'les alias rsync='rsync -avhW --progress' # Preferred 'rsync' implementation alias rrsync='rsync -avhW --progress --remove-source-files' # Rsync, but remove source alias top='sudo htop' # Top should launch htop with sudo -alias g='git' -alias r='ranger' +alias g='git' # Make git easier to type +alias r='ranger' # Make Ranger easier to type ### SIMPLE FUNCTIONS ### mark() { mdvl $1 | less } @@ -63,6 +63,18 @@ gemmaster() { gem cleanup; } +config() { + if [ $# -gt 0 ]; then + if [ $1 = 'cd' ]; then + cd ~/.cfg; + else + `which git` --git-dir=$HOME/.cfg/.git --work-tree $HOME/.cfg/ $@ + fi + else + echo "At least one argument needed." + fi +} + ### FFMPEG CONVERSIONS ### webm-mp4() { ffmpeg -i "$1" -qscale 0 "$1".mp4