sh `colorls`别名设置

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh `colorls`别名设置相关的知识,希望对你有一定的参考价值。

# Enable tab completion of flags
source $(dirname $(gem which colorls))/tab_complete.sh

# Move standard ls
alias ols="ls"
# Base formats
alias ls="colorls -A"           # short, multi-line
alias ll="colorls -1A"          # list, 1 per line
alias ld="ll"                   # ^^^, NOTE: Trying to move to this for alternate hand commands
alias la="colorls -lA"          # list w/ info
# [d] Sort output with directories first
alias lsd="ls --sort-dirs"
alias lld="ll --sort-dirs"
alias ldd="ld --sort-dirs"
alias lad="la --sort-dirs"
# [t] Sort output with recent modified first
alias lst="ls -t"
alias llt="ll -t"
alias ldt="ld -t"
alias lat="la -t"
# [g] Add git status of each item in output
alias lsg="ls --git-status"
alias llg="ll --git-status"
alias ldg="ld --git-status"
alias lag="la --git-status"
# https://github.com/athityakumar/colorls#installation
sudo gem install colorls

以上是关于sh `colorls`别名设置的主要内容,如果未能解决你的问题,请参考以下文章

sh wdl设置别名/ ln

sh BASH常用别名及设置

无法在 MacOS 上安装 Colorls

编写用户的环境初始化脚本****.sh,包括别名,登陆提示符,vim 的设置,环境变量的设置

sh Bash:别名,echo:将天气预报别名追加到〜/ .bashrc

sh bash别名