Skip to content

Commit a07a81a

Browse files
committed
init
0 parents  commit a07a81a

6 files changed

Lines changed: 421 additions & 0 deletions

File tree

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## Build directory file tree
2+
Generated using the shell command `$ sh/tree.sh . > README.md`
3+
<pre>
4+
|---eclipse
5+
||---formatter
6+
|||---JavaCode.xml
7+
|---git
8+
||---.gitconfig
9+
|---idea
10+
||---keymaps
11+
|||---Default-Copy.xml
12+
|---README.md
13+
|---sh
14+
||---tree.sh
15+
</pre>

eclipse/formatter/JavaCode.xml

Lines changed: 291 additions & 0 deletions
Large diffs are not rendered by default.

git/.gitconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[alias]
2+
st = status
3+
co = checkout
4+
last = log -1 HEAD
5+
history = log --pretty=format:\"%h - %an, %ar : %s\"
6+
hist = log --pretty=format:\"%h %s\" --graph
7+
lr = log --pretty=raw
8+
l = log --date-order --date=iso --graph --full-history --all --pretty=format:'%x08%x09%C(red)%h %C(cyan)%ad%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08 %C(bold blue)%aN%C(reset)%C(bold yellow)%d %C(reset)%s'
9+
lh = log --date-order --date=iso --graph --full-history --all --pretty=format:'%x08%x09%C(red)%h %C(cyan)%ad%x08%x08%x08%x08%x08%x08 %C(bold blue)%aN%C(reset)%C(bold yellow)%d %C(reset)%s'
10+
lt = log --oneline --decorate
11+
[color]
12+
ui = true
13+
[core]
14+
autocrlf = false
15+
quotepath = false
16+
[gui]
17+
encoding = utf-8
18+
[i18n]
19+
commitEncoding = utf-8
20+
logOutputEncoding = utf-8

idea/keymaps/Default-Copy.xml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<keymap version="1" name="Default-Copy" parent="$default">
3+
<action id="ChangeSignature" />
4+
<action id="CheckinProject" />
5+
<action id="CloneElement" />
6+
<action id="CodeCompletion">
7+
<keyboard-shortcut first-keystroke="control SEMICOLON" />
8+
</action>
9+
<action id="CopyElement">
10+
<keyboard-shortcut first-keystroke="shift F10" />
11+
</action>
12+
<action id="Debug">
13+
<keyboard-shortcut first-keystroke="F9" />
14+
</action>
15+
<action id="Find">
16+
<keyboard-shortcut first-keystroke="control F" />
17+
</action>
18+
<action id="FindNext">
19+
<keyboard-shortcut first-keystroke="control L" />
20+
</action>
21+
<action id="FindPrevious">
22+
<keyboard-shortcut first-keystroke="shift control L" />
23+
</action>
24+
<action id="ForceStepInto">
25+
<keyboard-shortcut first-keystroke="shift alt F5" />
26+
</action>
27+
<action id="ForceStepOver">
28+
<keyboard-shortcut first-keystroke="shift alt F6" />
29+
</action>
30+
<action id="GotoDeclaration">
31+
<keyboard-shortcut first-keystroke="control B" />
32+
<mouse-shortcut keystroke="control button1" />
33+
<mouse-shortcut keystroke="button2" />
34+
<keyboard-shortcut first-keystroke="F3" />
35+
</action>
36+
<action id="GotoImplementation">
37+
<keyboard-shortcut first-keystroke="control alt B" />
38+
<mouse-shortcut keystroke="control alt button1" />
39+
<keyboard-shortcut first-keystroke="control T" />
40+
</action>
41+
<action id="Move">
42+
<keyboard-shortcut first-keystroke="F10" />
43+
</action>
44+
<action id="NextOccurence" />
45+
<action id="PreviousOccurence" />
46+
<action id="RenameElement">
47+
<keyboard-shortcut first-keystroke="shift R" />
48+
</action>
49+
<action id="Resume">
50+
<keyboard-shortcut first-keystroke="F8" />
51+
</action>
52+
<action id="Run">
53+
<keyboard-shortcut first-keystroke="shift F9" />
54+
</action>
55+
<action id="SmartTypeCompletion">
56+
<keyboard-shortcut first-keystroke="shift control SEMICOLON" />
57+
</action>
58+
<action id="StepInto">
59+
<keyboard-shortcut first-keystroke="F5" />
60+
</action>
61+
<action id="StepOut">
62+
<keyboard-shortcut first-keystroke="F7" />
63+
</action>
64+
<action id="StepOver">
65+
<keyboard-shortcut first-keystroke="F6" />
66+
</action>
67+
<action id="Vcs.UpdateProject" />
68+
</keymap>
69+

sh/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## msysgit for windows
2+
按如下操作,重新打开git bash就能直接使用 `tree` 命令了。
3+
4+
$ cp tree.sh /bin #复制tree shell脚本到bin目录中去
5+
$ vi /usr/etc/profile #在文件末行添加别名
6+
alias tree='tree.sh'

sh/tree.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#-------------------------
2+
#!/bin/sh
3+
#save as tree.sh, and chmod +x tree.sh , run it.
4+
cd ./$1
5+
pwd
6+
find ./ -name "*" -o -name ".*" 2>/dev/null |sed -e 's/^\.//' |sed -n '2,$p' | while read line
7+
do
8+
a=`echo $line |awk -F\/ '{print NF}'`
9+
a=$((a-2))
10+
i=1
11+
case $a in
12+
0) echo $line |sed -e 's/\//|---/' ;;
13+
*) while [ ! $i -gt $a ]; do
14+
line=`echo $line |sed -e 's/\/[^\/]*/|/'`
15+
i=$((i+1))
16+
done
17+
echo $line |sed -e 's/\//|---/' -e 's/ *//g';;
18+
esac
19+
done
20+
#-------------------------

0 commit comments

Comments
 (0)