-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathzshAliases.txt
44 lines (37 loc) · 1.9 KB
/
zshAliases.txt
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
# Example zsh aliases
alias zshconfig="vim ~/.zshrc"
alias ohmyzsh="vim ~/.oh-my-zsh"
alias pod_update="pod update --verbose --no-repo-update"
alias pod_install="pod install --verbose --no-repo-update"
#work app files
alias app_dir="cd /Users/此处替换/Documents/B_work/ios/"
alias app_nodejs="cd /Users/此处替换/Documents/B_work/nodejs/"
alias app_ection="cd /Users/此处替换/Documents/B_work/ection/"
# open files
alias open_app="cd /Users/此处替换/Documents/B_work/ios/"
alias open_nodejs="cd /Users/此处替换/Documents/B_work/nodejs/"
alias open_ection="cd /Users/此处替换/Documents/B_work/ection/"
# command_help
alias command_help='cd /Users/此处替换/Documents/B_Work/command_help'
alias command_help_git='vim /Users/此处替换/Documents/B_Work/command_help/command_help_git.txt'
alias command_help_screen='vim /Users/此处替换/Documents/B_Work/command_help/command_help_screen.txt'
alias command_help_pod='vim /Users/此处替换/Documents/B_Work/command_help/command_help_pod.txt'
alias command_help_hotkey_mac='vim /Users/此处替换/Documents/B_Work/command_help/command_help_hotkey_mac.txt'
alias command_help_hotkey_xcode='vim /Users/此处替换/Documents/B_Work/command_help/command_help_hotkey_xcode.txt'
alias command_history='print -l ${(o)history%% *} | uniq -c | sort -nr | head -n 10'
# files_option
alias la='ls -a'
alias vi='vim'
alias javac="javac -J-Dfile.encoding=utf8"
alias grep="grep --color=auto"
alias -s html=mate # 在命令行直接输入后缀为 html文件名,会在 TextMate 中打开
alias -s rb=vi # 在命令行直接输入 ruby 文件,会在 TextMate 中打开
alias -s py=vi # 在命令行直接输入 python 文件,会用 vim 中打开,以下类似
alias -s js=vi
alias -s c=vi
alias -s java=vi
alias -s txt=vi
alias -s gz='tar -xzvf'
alias -s tgz='tar -xzvf'
alias -s zip='unzip'
alias -s bz2='tar -xjvf'