update dotfiles: nvim, zsh, bash improvements and other stuff

This commit is contained in:
2018-05-06 09:34:20 +02:00
parent 5ef18b7a9d
commit eccd0efc00
17 changed files with 93 additions and 76 deletions

View File

@ -30,19 +30,22 @@ source ~/.config/aliases
exitstatus()
{
if [[ $? == 0 ]]; then
echo ''
#echo -e ''
echo -e '\033[0;32m➜\033[0m '
else
echo '! '
#echo -e '\033[0;31m✗ '
echo -e '\033[0;31m➜\033[0m '
fi
}
user()
{
if [[ $USER == 'roman' ]]; then
echo ''
echo -e ''
else
echo '\u@\h '
echo -e '\u@\h '
fi
}
PS1='[$(exitstatus)$(user)\w]\$ '
#PS1='[$(exitstatus)$(user)\w]\$ '
PS1='$(exitstatus) \[\033[1;36m\]\W\[\033[0m\] '

View File

@ -1,6 +1,6 @@
# tmux display things in 256 colors
set -g default-terminal "tmux"
#set -g default-terminal "tmux"
# set terminfo for termite
set -ga terminal-overrides ",xterm-termite:Tc"

View File

@ -1,5 +1,8 @@
export ZSH=/home/roman/.oh-my-zsh
##################
# ZSH Config File
#
# General
DEFAULT_USER="roman"
ZSH_THEME="robbyrussell" #old=("agnoster")
ZSH_TMUX_AUTOSTART="true"
@ -18,14 +21,14 @@ plugins=(
command-not-found # needs package pkgfile
)
source $ZSH/oh-my-zsh.sh
# Exports
export EDITOR="nvim"
export PATH=~/.bin:$PATH
export LANG=de_DE.UTF-8
export ZSH=/home/roman/.oh-my-zsh
# load aliases
# load stuff
source $ZSH/oh-my-zsh.sh
source ~/.config/aliases
# fix for termite VTE Terminal