Preface

xon.sh

TIPS

  • Install

    pip  install pipx -i https://mirrors.aliyun.com/pypi/simple/
    pipx install xonsh[full] -i https://mirrors.aliyun.com/pypi/simple/
  • Avoid garbled Chinese path under Windows cmd

    set "$LANG=zh_CN.UTF-8" && xonsh

Profile ~/.xonshrc

# 命令提示符格式
$PROMPT = '\n{env_name}{BOLD_GREEN}{user}@{hostname}{BOLD_BLUE} {cwd}\n{BOLD_YELLOW}{curr_branch:{} }{RESET}{BOLD_BLUE}{prompt_end}{RESET} '

# Windows cmd 下避免中文路径乱码
$LANG=zh_CN.UTF-8

# ll 别名
aliases['ll'] = 'ls -al'
This article is from qbit snap

qbit
268 声望279 粉丝