dotfiles

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

commit eefd19c682d97088606735561ea343b7e69ba5b9
parent f7c0fc7f59e26ad189fac97f2f65dd40754f0b48
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Tue,  8 Jan 2019 20:56:48 +0100

Had to remove conf cd

Subshells can't change cwd of parent shell. So I have to stick with `cd
`conf get``


Former-commit-id: f7c70a7ff2db0220386cd4e93b2d944b81b51d8c
Diffstat:
Mbin/conf | 8++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/bin/conf b/bin/conf @@ -79,17 +79,14 @@ conf_check() { if [ -z "$CONF_DIR" ]; then echo "\$CONF_DIR not set." else - "$@" + "$@" fi } #}}} # Run with arguments {{{ if [ $# -gt 0 ]; then - if [ "$1" = 'cd' ]; then - conf_check cd "$CONF_DIR" - - elif [ "$1" = 'rc' ]; then + if [ "$1" = 'rc' ]; then if [[ $SHELL = *"zsh"* ]]; then vim "$HOME"/.zshrc elif [[ $SHELL = *"bash"* ]]; then @@ -115,7 +112,6 @@ if [ $# -gt 0 ]; then # ...or print help text {{{ else echo "Usage:" - echo "conf cd Go to conf directory" echo "conf rc Edit shell-specific profile (zshrc, bashrc, etc.)" echo "conf common Edit common profile" echo "conf get Print path to configuration directory"