-- git status different with git bash
executing git config --global core.autocrlf true in babun should fix your problem
-- how to set shortkey
in .zshrc
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ......="cd ../../../../.."
alias lo="cd /e/Wnmp/html/lot/"
-- install package
pack install chere
-- set proxyexport http_proxy=http://user:password@server:portexport http_proxy= http://127.0.0.1:1080
--change theme
--auto ssh to hostssh-keygen -t rsa -C 'your email@domain.com'scp ~/.ssh/id_rsa.pub username@hostname:~/#将公钥文件复制至ssh服务器 ssh username@hostname#使用用户名和密码方式登录至ssh服务器 mkdir .ssh #若.ssh目录已存在,可省略此步 cat id_rsa.pub >> .ssh/authorized_keys #将公钥增加到文件尾
vim ~/.ssh/config #若没有该文件,直接新建即可添加文件内容格式如下:
Host shortnameHostName 101.....User rootIdentityFile ~/.ssh/id_rsa
Host alias#自定义别名
HostName hostname #替换为你的ssh服务器ip或domain
Port port #ssh服务器端口,默认为22
User user #ssh服务器用户名
IdentityFile ~/.ssh/id_rsa #第一个步骤生成的公钥文件对应的私钥文件
if permission errorchmod 600 id_rsa--change vim tmp file locationFirst of all, create these three folders:
mkdir ~/.vim/.backup ~/.vim/.swp ~/.vim/.undoNow, put these lines in your vimrc file.
set undodir=~/.vim/.undo//set backupdir=~/.vim/.backup//set directory=~/.vim/.swp//

本文介绍如何解决Git状态在Git Bash中显示不同的问题,设置Zsh的快捷键,安装包管理器,配置代理,更换命令行主题,实现SSH免密登录,并调整Vim的临时文件位置。
5599

被折叠的 条评论
为什么被折叠?



