msysgit之git bash方便的複製粘貼,默認工做目錄,窗口大小,提升速度等小竅門

桌面圖標點鼠標右鍵,選擇屬性,修改工做目錄到本身的git目錄:git

打開快速編輯,這時候鼠標左鍵能夠隨意選取文本,enter鍵複製。鼠標右鍵是粘貼。另外,粘貼的快捷鍵是 inerst鍵shell

修改默認窗口大小bash

若是你感受你的git bash運行反應速度很慢,修改git安裝目錄 etc/profile 文件內容,把PS1定義部分代碼註釋掉,把PS1定義爲簡單的: PS1="$ ",速度會獲得大力提高ide

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# non-printable characters must be enclosed inside \[ and \]
#PS1='\[\033]0;$MSYSTEM:${PWD//[^[:ascii:]]/?}\007\]' # set window title
#PS1="$PS1"'\n'                 # new line
#PS1="$PS1"'\[\033[32m\]'       # change color
#PS1="$PS1"'\u@\h '             # user@host<space>
#PS1="$PS1"'\[\033[33m\]'       # change color
#PS1="$PS1"'\w'                 # current working directory
#if test -z "$WINELOADERNOEXEC"
#then
#    PS1="$PS1"'$(__git_ps1)'   # bash function
#fi
#PS1="$PS1"'\[\033[0m\]'        # change color
#PS1="$PS1"'\n'                 # new line
#PS1="$PS1"'$ '                 # prompt: always $
PS1= "$ "
相關文章
相關標籤/搜索