2020-11-27 11:02:47 +00:00
|
|
|
[ -x /bin/more ] || [ -x /usr/bin/more ] || alias more=less
|
2019-05-02 18:24:27 +00:00
|
|
|
[ -x /usr/bin/vim ] && alias vi=vim || alias vim=vi
|
|
|
|
|
|
|
|
alias ll='ls -alF --color=auto'
|
|
|
|
|
|
|
|
[ -z "$KSH_VERSION" -o \! -s /etc/mkshrc ] || . /etc/mkshrc
|
|
|
|
|
|
|
|
[ -x /usr/bin/arp -o -x /sbin/arp ] || arp() { cat /proc/net/arp; }
|
|
|
|
[ -x /usr/bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
|
|
|
|
|
|
|
|
service() {
|
|
|
|
[ -f "/etc/init.d/$1" ] || {
|
|
|
|
echo "service "'"'"$1"'"'" not found, the following services are available:"
|
|
|
|
ls "/etc/init.d"
|
|
|
|
return 1
|
|
|
|
}
|
|
|
|
/etc/init.d/$@
|
|
|
|
}
|
|
|
|
|
|
|
|
[ -n "$KSH_VERSION" -o \! -s "$HOME/.shinit" ] || . "$HOME/.shinit"
|
|
|
|
[ -z "$KSH_VERSION" -o \! -s "$HOME/.mkshrc" ] || . "$HOME/.mkshrc"
|