Skip to content

Commit

Permalink
Enhancement:update read me
Browse files Browse the repository at this point in the history
  • Loading branch information
superhj1987 committed Feb 17, 2017
1 parent 29e78ee commit 34d7204
Showing 1 changed file with 56 additions and 82 deletions.
138 changes: 56 additions & 82 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,92 +42,66 @@ mthings uninstall

### :coffee: Document

#### useful_shells
* `useful_shells`
> some mac useful shells
**Description**:some mac useful shells
* `shortcut_keys_intro`
> introduce mac shortcut keys
#### shortcut_keys_intro
* `st_shortcut_keys`
> SublimeText2 shortcut keys
**Description**: introduce mac shortcut keys
* `zsh_tips`
> zsh useful tips
#### st_shortcut_keys

**Description**: SublimeText2 shortcut keys

#### zsh_tips

**Description**: zsh useful tips

#### ssh_timeout_solution

**Description**: solution of ssh timeout
* `ssh_timeout_solution`
> solution of ssh timeout
### :coffee: bin

#### show_memory_usage

----------------------

**Description**:show memory usage in python

#### git_init

----------------------

**Description**: init git repository

**Usage**: git_init [git_repos_url] [to_dir]

**Option**:

- when ***git_repos_url*** is empty,init .gitignore, otherwise clone the repository to [to_dir],and int .gitignore
- when ***to_dir*** is empty, the to_dir is the end of the git_repos_url,for example ***mac_useful_thins.git***

**Example**:

git_init git@github.com:superhj1987/mac_useful_things.git mac_useful_things

#### rm_ds

----------------------

**Description**: delete .DS_Store in current dir

#### show_net_stats

----------------------

**Description**:show the count of each status connection,including time_wait、close_wait and so on.

#### generate_md_contents

----------------------

**Description**:generate the contents of a markdown doc.The doc's format meets:the first line is the title:# [title],the other title such as ##,###,####... is the contents and there must be a blank between #,##,###... and title text. The example docs are in the **test** dir.

**Usage**: generate_md_contents [-a] doc_name [to_doc_name]

**Option**:

- ***-a*** means generate the contents with append the anchor to the sub title.
- when ***to__doc_name*** is empty,the generate content will overwrite the ***doc_name*** file, otherwise the content will be in the ***to__doc_name*** file.

**Example**:

generate_md_contents ../test/test_doc.md test__doc_with_contents.md

#### change_git_origin_remote

----------------------

**Description**: change current origin remote repos to a new url

**Usage**: change_git_origin_remote [new_git_repos_url]

#### word_count

----------------------

**Description**: get the word total count in a doc

**Usage**: word_count [doc_name]
* `show_memory_usage`
> show memory usage in python`
* `git_init`
> init git repository
>
> **Usage**: `git_init [git_repos_url] [to_dir]`
>
> **Option**:
>
> - when ***git_repos_url*** is empty,init .gitignore, otherwise clone the repository to [to_dir],and int .gitignore
> - when ***to_dir*** is empty, the to_dir is the end of the git_repos_url,for example **mac_useful_thins.git**
>
> **Example**:
>
> `git_init git@github.com:superhj1987/mac_useful_things.git mac_useful_things`
* `rm_ds`
> delete .DS_Store in current dir
* `show_net_stats`
> show the count of each status connection,including time_wait、close_wait and so on.
- `generate_md_contents`
> generate the contents of a markdown doc.The doc's format meets:the first line is the title:# [title],the other title such as ##,###,####... is the contents and there must be a blank between #,##,###... and title text. The example docs are in the **test** dir.
>
> **Usage**: `generate_md_contents [-a] doc_name [to_doc_name]`
>
> **Option**:
>
> - ***-a*** means generate the contents with append the anchor to the sub title.
> - when ***to__doc_name*** is empty,the generate content will overwrite the ***doc_name*** file, otherwise the content will be in the ***to__doc_name*** file.
>
> **Example**:
>
> `generate_md_contents ../test/test_doc.md test__doc_with_contents.md`
* `change_git_origin_remote`
> change current origin remote repos to a new url
>
> **Usage**: `change_git_origin_remote [new_git_repos_url]`
* `word_count`
> get the word total count in a doc
>
> **Usage**: `word_count [doc_name]`

0 comments on commit 34d7204

Please sign in to comment.