diff --git a/zsh/aliases/00-default.conf b/zsh/aliases/00-default.conf new file mode 100644 index 0000000..52ba135 --- /dev/null +++ b/zsh/aliases/00-default.conf @@ -0,0 +1,9 @@ +# Default aliases. They can be overriden by other files with higher +# index. + +# Files navigation. +alias ls="ls --color" +alias sl="ls --color" + +# Git. +alias got="git" \ No newline at end of file diff --git a/zsh/aliases/20-freebsd.conf b/zsh/aliases/20-freebsd.conf new file mode 100644 index 0000000..b06fb68 --- /dev/null +++ b/zsh/aliases/20-freebsd.conf @@ -0,0 +1,6 @@ +# Some good aliases for FreeBSD. + +if [ "${OS/FreeBSD}" != "${OS}" ]; then + # Files navigation. + alias ls="ls -G" +fi \ No newline at end of file diff --git a/zsh/aliases/30-macos.conf b/zsh/aliases/30-macos.conf new file mode 100644 index 0000000..1e0183f --- /dev/null +++ b/zsh/aliases/30-macos.conf @@ -0,0 +1,6 @@ +# Some good aliases for macOS. + +if [ "${OS/DarwinD}" != "${OS}" ]; then + # Files navigation. + alias ls="ls -G" +fi \ No newline at end of file diff --git a/zsh/prompts/pztrn.zsh b/zsh/prompts/pztrn.zsh index 4be6eba..0868146 100644 --- a/zsh/prompts/pztrn.zsh +++ b/zsh/prompts/pztrn.zsh @@ -46,7 +46,8 @@ prompt_pztrn_setup () { vars['usercolor']="%{$fg[blue]%}" fi - p_userpwd="$vars['brackets_start']$vars['usercolor']%n$reset_color@%{$fg[magenta]%}%M$vars['brackets_end']" + p_hostname=$(hostname -f) + p_userpwd="$vars['brackets_start']$vars['usercolor']%n$reset_color@%{$fg[magenta]%}$p_hostname$vars['brackets_end']" p_shlvlhist="$vars['brackets_start']$vars['default_color']%B%h%b$vars['brackets_end']" p_rc="%(?..$vars['brackets_start']$fg[red]%?%1v$vars['brackets_end'])"