我的一些命令行配置

我的一些命令行配置

目前采用一个仓库维护效率相关的工具和文章

gitconfig

.gitconfig

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[user]
email = xxx@qq.com
name = xyz
[core]
autocrlf = true
[alias]
fb = !sh -c \"git branch -a | grep -v remotes | grep $1 | head -n 1 | xargs git checkout\"

co = checkout

ci = commit

st = status

pl = pull

ps = push

dt = difftool

l = log --stat

cp = cherry-pick

ca = commit -a

b = branch

gu = ls-files . --exclude-standard --others

sl = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --all --since='90 days ago'

summary = show # Mercurial crib

[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true

[color "branch"]
current = yellow reverse
local = yellow
remote = green

[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold

[color "status"]
added = yellow
changed = green
untracked = cyan

bashrc

.bashrc

1
2
alias start_proxy="export https_proxy=http://127.0.0.1:1080"
alias stop_proxy="unset https_proxy"

Reference


我的一些命令行配置
http://dantefung.github.io/2024/07/06/我的一些命令行配置/
Beitragsautor
DANTE FUNG
Veröffentlicht am
July 6, 2024
Urheberrechtshinweis