• Babun - a windows shell you will love
  • Cmder - Portable console emulator for Windows
  • Settings
  • Nodejs
  • FAQ
  • Reference

Babun - a windows shell you will love

http://babun.github.io/

Cmder - Portable console emulator for Windows

http://cmder.net/

Settings

打开 Babun, 执行 babun check,检查安装是否成功。

{ ~ }  » babun check                                                                         ~
Executing babun check
Prompt speed      [OK]
Connection check  [OK]
Update check      [OK]
Cygwin check      [OK]

babun check 用于判断环境是否正确

babun update 用于判断是否有新的更新包

babun 自带 pact 包管理

{ ~ }  » pact --help
pact: Installs and removes Cygwin packages.Usage:"pact install <package names>" to install given packages"pact remove <package names>" to remove given packages"pact update <package names>" to update given packages"pact show" to show installed packages"pact find <patterns>" to find packages matching patterns"pact describe <patterns>" to describe packages matching patterns"pact packageof <commands or files>" to locate parent packages"pact invalidate" to invalidate pact caches (setup.ini, etc.)
Options:--mirror, -m <url> : set mirror--invalidate, -i       : invalidates pact caches (setup.ini, etc.)--force, -f : force the execution--help--version

.minttyrc 配置文件:

BackgroundColour=57,56,57
ForegroundColour=238,238,238
CursorColour=238,238,238
Black=0,0,0
BoldBlack=89,89,89
Red=229,32,130
BoldRed=238,105,171
Green=130,229,32
BoldGreen=171,238,105
Yellow=229,130,32
BoldYellow=238,171,105
Blue=32,130,229
BoldBlue=105,171,238
Magenta=130,32,229
BoldMagenta=171,105,238
Cyan=32,229,130
BoldCyan=105,238,171
White=238,238,238
BoldWhite=255,255,255
Transparency=medium
OpaqueWhenFocused=no
CursorType=block
BoldAsFont=yes
AllowBlinking=no
Columns=120
Rows=40
Font=Source Code Pro Medium
FontHeight=12
CursorBlinks=no
BellTaskbar=no

pip

wget https://bootstrap.pypa.io/get-pip.py -O - | python

zsh-autosuggestions

  1. Clone this repository into $ZSH_CUSTOM/plugins (by default ~/.oh-my-zsh/custom/plugins)

        $ git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
    
  2. Add the plugin to the list of plugins for Oh My Zsh to load:

        plugins=(zsh-autosuggestions)
    
  3. Start a new terminal session, or:

        $ source ~/.zshrc
    

autojump

  1. Grab a copy of autojump:

    $ git clone git://github.com/joelthelion/autojump.git $ZSH_CUSTOM/plugins/autojump && cd $ZSH_CUSTOM/plugins/autojump

  2. Run the installation script and follow on screen instructions.

    ./install.py or ./uninstall.py

  3. Please manually add the following line(s) to ~/.zshrc:

    [[ -s /home/gongyuqi/.autojump/etc/profile.d/autojump.sh ]] && source /home/gongyuqi/.autojump/etc/profile.d/autojump.sh

    autoload -U compinit && compinit -u

Please restart terminal(s) before running autojump.

gitflow-avh

  1. If you prefer a manual installation, please use the following instructions:

        $ git clone git://github.com/petervanderdoes/gitflow.git $ZSH_CUSTOM/plugins/gitflow && cd $ZSH_CUSTOM/plugins/gitflow
    
  2. Then, you can install git-flow, using:

        $ sudo make install
    

git-extras

  1. If you prefer a manual installation, please use the following instructions:

        $ git clone https://github.com/tj/git-extras.git $ZSH_CUSTOM/plugins/git-extras && cd $ZSH_CUSTOM/plugins/git-extras
    
  2. Then, you can install git-extras, using:

        $ sudo make install
    

Note: If you are a zsh user, you may want to 'source /home/gongyuqi/.oh-my-zsh/custom/plugins/git-extras//etc/git-extras-completion.zsh' and put this line into ~/.zshrc to enable zsh completion

zsh-syntax-highlighting

  1. If you prefer a manual installation, please use the following instructions:

        $ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
    
  2. Add the plugin to the list of plugins for Oh My Zsh to load:

        plugins=(zsh-syntax-highlighting)
    
  3. Start a new terminal session. or:

        $ source ~/.zshrc
    

zsh-completions

  1. If you prefer a manual installation, please use the following instructions:

        $ git clone https://github.com/zsh-users/zsh-completions $ZSH_CUSTOM/plugins/zsh-completions
    
  2. Add the plugin to the list of plugins for Oh My Zsh to load:

        plugins=(zsh-completions)
    
  3. Start a new terminal session. or:

        $ source ~/.zshrc
    

cloc

  1. If you prefer a manual installation, please use the following instructions:

        $ curl -O https://github.com/AlDanial/cloc/archive/v1.72.tar.gz ~/cloc && tar -zxvf v1.72.tar.gz && cd ~/cloc
    
  2. Then, you can install git-extras, using:

        $ sudo make install
    

or, It is recommended to install cloc with choco:

    $ choco install cloc

httpie

It is recommended to install httpie with pip:

# Make sure we have an up-to-date version of pip and setuptools:
$ pip install --upgrade pip setuptools
$ pip install --upgrade httpie

cheat

It is recommended to install cheat with pip:

$ [sudo] pip install cheat

将 babun 添加到 cmder:

  1. Add new task in CMDER settings

    `Win + Alt + P` to open settings, then go to `Startup > Tasks`.
    Then hit the `+` symbol on the bottom to create a new task
    
  2. Rename the task to Babun (or whatever you want)
  3. Add this command in Task Parameters:

        /icon "%userprofile%\.babun\cygwin\bin\mintty.exe" /dir "%userprofile%"
    
  4. Add this command in Commands:

        %userprofile%\.babun\cygwin\bin\mintty.exe -o Transparency=0 /bin/env CHERE_INVOKING=1 /bin/zsh.exe
    

"Open Cmder Here" in context menu

To add an entry in the Windows Explorer context menu to open Cmder in a specific directory, paste this into a OpenCmderHere.reg file and double-click to install it.

Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
@="Open Cmder Here"[HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder\command]
@=hex(2):25,00,43,00,4d,00,44,00,45,00,52,00,5f,00,49,00,4e,00,\53,00,54,00,41,00,4c,00,4c,00,5f,00,44,00,49,00,52,00,25,00,5c,00,43,00,6d,\00,64,00,65,00,72,00,2e,00,65,00,78,00,65,00,20,00,2f,00,53,00,54,00,41,00,\52,00,54,00,20,00,22,00,25,00,76,00,22,00,00,00

Cmder 中文显示问题(1.3以上)

文字重叠

取消勾选设置中的Monospace选项

中文乱码

在Settings > Startup > Environment里添加:set LANG=zh_CN.UTF8

Nodejs

nvm-windows

This is not the same thing as nvm, which is a completely separate project for Mac/Linux only.

Tip:安装目录不要出现空格

settings.txt

root: yourpath\nvm
path: yourpath\nodejs
arch: 64
proxy: none
node_mirror: http://npm.taobao.org/mirrors/node/
npm_mirror: https://npm.taobao.org/mirrors/npm/

配置系统环境变量,

%NVM_HOME%: yourpathnvm
%NVM_SYMLINK%: yourpathnodejs
%NPM_HOME%: yourpathnpm

添加 npm 命令

dos2unix '/cygdrive/c/Program Files/nodejs/npm'
cygstart /bin/zsh

nrm

Install

$ npm install -g nrm

Usage

Usage: nrm [options] [command]Commands:ls                           List all the registries
use <registry>               Change registry to registry
add <registry> <url> [home]  Add one custom registry
del <registry>               Delete one custom registry
home <registry> [browser]    Open the homepage of registry with optional browser
test [registry]              Show the response time for one or all registries
help                         Print this helpOptions:-h, --help     output usage information
-V, --version  output the version number

FAQ

出现以下问题:

compdef: unknown command or service: git
compdef: unknown command or service: grep
compdef: unknown command or service: git

解决方案:

compaudit | sudo xargs chmod g-w
compaudit | sudo xargs chown root
rm ~/.zcompdump*
compinit

出现以下问题:

66835 error Error: EPERM: operation not permitted, rename 'D:\Desktop\work\website\node_modules\.staging\abbrev-67f8252c' -> 'D:\Desktop\work\website\node_modules\abbrev'
66835 error     at Error (native) parent: 'website' }
66836 error Please try running this command again as root/Administrator.
66837 verbose exit [ -4048, true ]

解决方案:

使用管理员权限运行 cmd,node.exe 设置属性为, 以管理员身份运行此程序

出现以下问题:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0744 for '/home/geek/.ssh/id_rsa' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /home/geek/.ssh/id_rsa

解决方案:

sudo chmod 600 ~/.ssh/id_rsa
sudo chmod 600 ~/.ssh/id_rsa.pub

出现以下问题:

CreateProcess Failed with error 740: ��ֹ�����������

解决方案:

由于使用了 nvm-windows , 需要修改 webStormnode 依赖。 e.g. D:\yourpath\nvm\v6.11.2\node.exe

Reference

Integrating Babun - windows

"Open Cmder Here" in context menu - windows

Node.js Cygwin not supported

Dos2unix 安装与使用简介

Mac-zsh 安装和使用

让Windows用上OMZ的神器Babun

nodejs在windows下的安装配置(使用NVM的方式)

cmder中文显示相关问题解决方案

cygwin在windows上的初体验

Windows command tools相关推荐

  1. 精品软件推荐 Desktop Central - Free Windows Admin Tools

    推荐一个免费的企业IT管理软件: Desktop Central - Free Windows Admin Tools 官网: https://www.manageengine.com 功能:所有电脑 ...

  2. OS + windows command / cmd / dos / Cygwin / UnxUtils / miniGW / powershell

    DOS 命令帮助文档 command line shell 用好windows的快捷键 http://www.pcfree.cn/cn/service/OS/windows/2004/09/04/ar ...

  3. Windows Support Tools

    Windows Support Tools(支持工具)是Windows server深藏不露的锦囊之一,里头包含了超过100种的公用程序,其中有许多是从Microsoft Windows 2000 R ...

  4. python在windows command下打印中文出错 IOError [Errno 22] Invalid argument

    问题描述: python版本:2.7.15 pycharm的python版本:2.7.15 python文件编码:utf-8 windows command编码已经通过执行chcp 65001改为了u ...

  5. oVirt Windows Guest Tools

    oVirt Windows Guest Tools ISO 摘要 此功能将为基于Windows的VM添加带有所需驱动程序和代理的ISO映像. 所有者 姓名:lveyde(lveyde) 电子邮件:lv ...

  6. 安装 VS 2015 Update 2 + Windows SDK Tools 1.3.1 + Windows SDK 10586.212 后提示找不到 10586.0 SDK 问题的解决方法...

    将 Visual Studio 2015 升级到 Update 2,并安装 Windows SDK Tools 1.3.1 和 Windows SDK 10586.212 后,有可能造成原本已安装的 ...

  7. Kudu command tools

    为什么80%的码农都做不了架构师?>>>    介绍 kudu集群部署完毕后,如何管理kudu集群?官方提供了kudu command tool工具来管理kudu集群,通过kudu ...

  8. windows debug tools

    1.2 Windows调试工具集 应用场合 一组调试器和工具 当前版本 RPC)信息的工具. dbgsrv.exe 用于远程调试的进程服务器. dumpchk.exe 用于验证内存转储文件(DumpF ...

  9. Windows Azure Tools DSInit Error

    Development Storage始终启动不了,发现默认DSInit初始化失败.于是手动执行DSInit + 命令参数,但是出现如下错误: Failed to create database 'D ...

最新文章

  1. 欧拉降幂 ---- 2020 杭电多校[E - Fibonacci Sum]+欧拉降幂+和式的调整+二次剩余+毒瘤卡常
  2. 灵活运用ISA的链接转换功能:ISA2006系列之十三
  3. php 发送邮件乱码
  4. GPU Gems1 - 7 无数波动草叶的渲染
  5. 云联惠认证时间_云联惠强制关闭真正原因是什么?
  6. java布尔三目运算符_Java关系运算符,boolean运算符,三元运算符
  7. response 画验证码
  8. linux命令、vi编辑器常用命令
  9. Mysql分表,分区的区别和联系
  10. ASCII码与英文的显示原理
  11. 卡内基梅隆大学计算机专业介绍,卡内基梅隆大学计算机专业介绍 全美大学计算机专业榜首...
  12. 50岁的程序员该何去何从
  13. 从MSYS2访问Windows目录
  14. matplotlib图例中文乱码? 标题部分可以通过设置字体属性解决,但是图例不支持设置字体,该如何解决
  15. Java类之间的关联关系
  16. 2-18-python基础学习-0409
  17. PHP:Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocat
  18. iOS音视频开发十三:视频渲染,用 Metal 渲染
  19. Unity与3ds Max的单位关系(使用FBX文件)
  20. control-M 入门

热门文章

  1. Java局部变量final
  2. 10hibernate_one2many_1
  3. 交换机和路由器有哪些区别?
  4. php与html交互实现登录,php与html实现交互的基本操作
  5. Python内置函数之输入输出函数
  6. centos 找不到php.ini,centos找不到php.ini文件
  7. 十进制转换成十六进制c语言 链栈,C语言 链栈 实现十进制转换二进制,八进制,十六进制...
  8. 在 Linux 中使用ImageMagick命令行操作图像文件
  9. SQLite 基本命令使用方式
  10. 用python深度优先遍历解迷宫问题