V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
VeryCB
V2EX  ›  问与答

大家都设了哪些alias在.bash_profile或者.zshrc里?

  •  
  •   VeryCB · 2012-08-05 19:57:24 +08:00 · 5423 次点击
    这是一个创建于 4295 天前的主题,其中的信息可能已经有所发展或是发生改变。
    2 条回复    1970-01-01 08:00:00 +08:00
    xiaket
        1
    xiaket  
       2012-08-05 20:08:07 +08:00
    # Generic
    alias ls='ls -G'
    alias su='su -'
    alias ll='ls -l'
    alias la='ls -a'
    alias l='ls -lF'
    alias df='df -h'

    # Typos
    alias clera='clear'
    alias ls-l='ls -l'
    alias mkae='make'
    alias maek='make'

    # Acesssibilities
    alias c='clear'
    alias md='mkdir -p'
    alias which='type -p'
    alias ..='cd ..'
    alias ...='cd ../..'
    alias ....='cd ../../..'
    alias rc='rm -f *.pyc'
    alias mn='make clean'
    alias mt='make test'
    Blask
        2
    Blask  
       2012-08-05 20:37:32 +08:00
    https://github.com/robbyrussell/oh-my-zsh/blob/master/lib/aliases.zsh
    以及:
    alias ssh[随意]='ssh -qTfnN -D 7070 user@sshserver'
    alias aria2c="aria2c -c -s10 -x10 --check-certificate=false"
    alias py="python"
    alias wget="wget --no-check-certificate"
    alias goproxy="export http_proxy=127.0.0.1:8087 https_proxy=127.0.0.1:8087"
    alias sshproxy="export http_proxy=127.0.0.1:7070 https_proxy=127.0.0.1:7070"
    alias fgproxy="export http_proxy=127.0.0.1:8580 https_proxy=127.0.0.1:8580"
    alias disproxy="export http_proxy= https_proxy="

    # 路径别名
    hash -d PIC="/home/blask/图片"
    hash -d DOC="/home/blask/文档"
    hash -d DOWN="/home/blask/下载"
    hash -d MUSIC="/home/blask/音乐"
    hash -d DESK="/home/blask/桌面"
    hash -d SOFT="/home/blask/软件"
    hash -d PUBLIC="/home/blask/公共"
    hash -d MOV="/home/blask/视频"
    hash -d TEMPLATE="/home/blask/模板"
    hash -d GAME="/home/blask/游戏/"
    # End of 路径别名
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5612 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 07:28 · PVG 15:28 · LAX 00:28 · JFK 03:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.