dotfiles

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

commit 939b450a318d9918288c6d07b66c5bcd585d2c2f
parent c848175232b372d57527812ecb25c6648c1d9c85
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Tue,  4 Sep 2018 19:17:04 +0200

Renamed repository from cfg to dotfiles (I like it more)

Diffstat:
MREADME.md | 2+-
Mbin/updatemaster | 2+-
Minstall.sh | 2+-
Mshell/commonprofile | 5+++--
Mvim/init.vimrc | 10+++++-----
5 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/README.md b/README.md @@ -2,7 +2,7 @@ --- ## Installation: -1. Clone repository as `~/.cfg` +1. Clone repository as `~/.dotfiles` 2. `cd` into repository 3. Run `install.sh` diff --git a/bin/updatemaster b/bin/updatemaster @@ -186,7 +186,7 @@ if command -v brew &> /dev/null; then brew doctor; brew missing; echo "Backuping up Brew installation..." - brew bundle dump --force --file=~/.cfg/Brewfile; + brew bundle dump --force --file=~/.dotfiles/Brewfile; echo_succ "Backup complete." notify "Brewed." "All packages have been upgraded."; else diff --git a/install.sh b/install.sh @@ -24,6 +24,6 @@ done lncommand "other-scripts/radio-config" "$HOME/.radio-config" -ln -shfv $HOME/.cfg/vim/init.vimrc $HOME/.vimrc +ln -shfv $HOME/.dotfiles/vim/init.vimrc $HOME/.vimrc unset -f lncommand diff --git a/shell/commonprofile b/shell/commonprofile @@ -70,7 +70,7 @@ gemmaster() { conf() { if [ $# -gt 0 ]; then if [ "$1" = 'cd' ]; then - cd ~/.cfg || return; + cd ~/.dotfiles || return; elif [ "$1" = 'rc' ]; then if [[ $SHELL = *"zsh"* ]]; then vim ~/.zshrc @@ -80,6 +80,7 @@ conf() { elif [ "$1" = 'common' ]; then vim ~/.commonprofile elif [ "$1" = 'reload' ]; then + source ~/.commonprofile if [[ $SHELL = *"zsh"* ]]; then START_TIME=$SECONDS source ~/.zshrc @@ -91,7 +92,7 @@ conf() { fi else - $(command -v git) --git-dir="$HOME"/.cfg/.git --work-tree "$HOME"/.cfg/ "$@" + $(command -v git) --git-dir="$HOME"/.dotfiles/.git --work-tree "$HOME"/.dotfiles/ "$@" fi else echo "At least one argument needed." diff --git a/vim/init.vimrc b/vim/init.vimrc @@ -1,5 +1,5 @@ -source $HOME/.cfg/vim/plugins.vimrc -source $HOME/.cfg/vim/general.vimrc -source $HOME/.cfg/vim/editor.vimrc -source $HOME/.cfg/vim/commands.vimrc -source $HOME/.cfg/vim/map.vimrc +source $HOME/.dotfiles/vim/plugins.vimrc +source $HOME/.dotfiles/vim/general.vimrc +source $HOME/.dotfiles/vim/editor.vimrc +source $HOME/.dotfiles/vim/commands.vimrc +source $HOME/.dotfiles/vim/map.vimrc