1
0
Fork 0

replace hostname with fqdn because teh conventions

This commit is contained in:
Von Random 2015-12-09 13:28:29 +03:00
parent f919e3394f
commit 7dcbdc5ddf

11
shellrc
View file

@ -14,6 +14,11 @@ else
alias whence='type -P'
fi
export fqdn="$(hostname -f)"
if [[ -z ${fqdn} ]]; then
export fqdn="${HOSTNAME}"
fi
newline="
"
vscripts="${HOME}/vscripts"
@ -77,7 +82,7 @@ fi
# ls
if [[ ${OSTYPE} == freebsd* ]]; then
alias ls='command ls -G '
elif [[ ${OSTYPE} == 'linux-gnu' || ${OSTYPE} == 'cygwin' ]] && [[ ${HOSTNAME} != *pvc* ]]; then
elif [[ ${OSTYPE} == 'linux-gnu' || ${OSTYPE} == 'cygwin' ]] && [[ ${fqdn} != *pvc* ]]; then
alias ls='command ls --color=auto --group-directories-first '
fi
alias la='ls -FA'
@ -246,7 +251,7 @@ if is_zsh; then
rb=' ]'
bb=':'
prompt_user='%(1000#..%(1205#..%F{red}%n%f%b ))'
prompt_host='%M'
prompt_host=${fqdn}
prompt_cwd='%B%d%b'
prompt_bang='%(!.%F{red}>%f.%B>%b)'
prompt_jobs='%(1j. jobs:%B%F{red}%j%f%b.)'
@ -366,7 +371,7 @@ else
lb="[ "
rb=" ]"
bb=":"
prompt_host="$HOSTNAME"
prompt_host="${fqdn}"
prompt_bang=">${reset}"
precmd() {
if [[ -z ${hide_info} ]]; then