OmniOS Shell Env Check List

bash Shell

~/.profile

#!/bin/bash

Solaris 衍生的 OS,默认都将 GNU 路径放在前面

而支持 ACLs 的 ls/chmod ,是在 /usr/bin 目录中的

export PATH=/usr/bin:/usr/sbin:/sbin:/usr/gnu/bin

export TERM=xterm-color

Enable color support of ls and also add handy aliases

if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='/usr/bin/ls --color=auto' #alias dir='dir --color=auto' #alias vdir='vdir --color=auto'

alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'

fi

Some more ls aliases

alias ll='ls -alF' alias la='ls -A' alias l='ls -CF'

~/.vimrc

set nocp set bs=2 syntax on

./.inputrc

"\e[1~": beginning-of-line # Home "\e[4~": end-of-line # End "\e[5~": beginning-of-history # PageUp "\e[6~": end-of-history # PageDown "\e[3~": delete-char # Delete "\e[2~": quoted-insert # Insert "\eOD": backward-word # Ctrl+Left "\eOC": forward-word # Ctrl+Right

/etc/default/init

TZ="Asia/Shanghai" CMASK=022 LANG=en_US.UTF-8

评论

《“OmniOS Shell Env Check List”》 有 1 条评论

  1. […] OmniOS Shell Env Check List 所述,对 OS […]

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理