some enhancements for managing this repo
This commit is contained in:
parent
b69ffa0886
commit
8e66776f5e
2 changed files with 32 additions and 3 deletions
14
.zshrc
14
.zshrc
|
|
@ -83,7 +83,7 @@ then
|
|||
source ~/.zshprivate
|
||||
fi
|
||||
|
||||
function home_help() {
|
||||
function _home_help() {
|
||||
echo "available commands:"
|
||||
echo ""
|
||||
echo "help: show this help text"
|
||||
|
|
@ -94,13 +94,21 @@ function home_help() {
|
|||
|
||||
function home() {
|
||||
case $1 in
|
||||
diff)
|
||||
cd ~
|
||||
git diff
|
||||
;;
|
||||
help)
|
||||
home_help
|
||||
_home_help
|
||||
;;
|
||||
pull)
|
||||
cd ~
|
||||
git pull
|
||||
;;
|
||||
status)
|
||||
cd ~
|
||||
git status
|
||||
;;
|
||||
sub)
|
||||
cd ~
|
||||
git submodule update --init --recursive
|
||||
|
|
@ -113,7 +121,7 @@ function home() {
|
|||
*)
|
||||
echo "command not found!"
|
||||
echo ""
|
||||
home_help
|
||||
_home_help
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
|
|
|||
21
README.md
21
README.md
|
|
@ -1,11 +1,19 @@
|
|||
This is my $HOME
|
||||
================
|
||||
|
||||
This repository contains my complete configuration for awesome, Zsh, Vim etc.
|
||||
|
||||
It is actually a work in progress because I try to migrate stuff used in more
|
||||
then 15 years to a new and fresh $HOME setup. Don't wonder why some parts look
|
||||
stupid... ;)
|
||||
|
||||
It is a special configured repository where every file is ignored in
|
||||
.gitignore. Only files I am sharing accross users/systems are "unignored".
|
||||
|
||||
This repo is for my personal use only. Feel free to take a look... ;)
|
||||
|
||||
I am using a lot of Git submodules so take care of the licenses of each project.
|
||||
|
||||
Clone to your $HOME
|
||||
-------------------
|
||||
|
||||
|
|
@ -16,3 +24,16 @@ Clone to your $HOME
|
|||
git submodule update --init --recursive
|
||||
|
||||
Existing files will not be overwritten!
|
||||
|
||||
Keep your $HOME up to date
|
||||
--------------------------
|
||||
|
||||
The Zsh configuration provides a command named "home" to keep things up to
|
||||
date. The following command updates your home and all submodules.
|
||||
|
||||
home up
|
||||
|
||||
If you want to see a list of all commands run:
|
||||
|
||||
home help
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue