Babun, Great Windows Shell

-- 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 proxy
export http_proxy=http://user:password@server:port
export http_proxy= http://127.0.0.1:1080 


--change theme
ssh-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    shortname
        HostName 101.....
        User    root
        IdentityFile ~/.ssh/id_rsa

Host alias#自定义别名
HostName        hostname  #替换为你的ssh服务器ip或domain
Port            port #ssh服务器端口,默认为22
User            user #ssh服务器用户名
IdentityFile    ~/.ssh/id_rsa #第一个步骤生成的公钥文件对应的私钥文件
if permission error 
chmod 600 id_rsa

--change vim tmp file location

First of all, create these three folders:
mkdir ~/.vim/.backup ~/.vim/.swp ~/.vim/.undo

Now, put these lines in your vimrc file.
set undodir=~/.vim/.undo//
set backupdir=~/.vim/.backup//
set directory=~/.vim/.swp//

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值