# Some example alias instructions
alias less='less -r'
#alias rm='rm -i'
#alias cp='cp -i'
#alias mv='mv -i'

# alias whence='type -a'
#alias ls='ls -F --color=auto --show-control-char'
alias dir='ls --color=auto --format=vertical'
alias vdir='ls --color=auto --format=long'
alias ls="ls --color=auto"
alias ll='ls -al'
alias la='ls -A'
alias l='ls -l'
alias grep='grep --color=auto'

alias ..='cd ..'
alias p="cd -"

alias vi="vim -p"
alias uconv="iconv -f ${NATIVE_CODE:-latin1} -t utf-8"
alias nconv="iconv -f utf-8 -t ${NATIVE_CODE:-latin1}"
alias u='[[ ${LANG,,} =~ ^(ko|ja|zh|vi)_ ]] && {
	[[ ${LANG,,} =~ \.utf-?8$ ]] && NEW_LANG="${OLD_LANG:=${NATIVE_LANG}}" || NEW_LANG="${NATIVE_LANG%.*}.utf8"
	export OLD_LANG="${LANG}"
	export LANG="${NEW_LANG}"
	echo "Changed system charset to ${bcyan}{${LANG}}${normal} from ${byellow}{${OLD_LANG}}${normal}"
}'
whereis wget >& /dev/null && alias wget="wget --no-check-certificate"
whereis wget >& /dev/null || alias wget="curl -LO"

#
# Embeded VIM Configurations
# vim: filetype=sh noet sw=4 ts=4 fdm=marker
#
