Minor fixes/improvements

whole-command-tab-completion
bretello 2017-07-17 02:00:15 +02:00
parent 6988e525eb
commit 46177a425c
3 changed files with 20 additions and 11 deletions

View File

@ -2,7 +2,6 @@
#### ALIAS #
###########################
####
#### Easier life (MAC SPECIFIC)
####
@ -73,7 +72,7 @@ alias ssh1="ssh -o ControlMaster=no"
# Some colorizing options for grc
GRC=`which grc`
GRC=$(which grc)
if [ "$TERM" != dumb ] && [ -n "$GRC" ]; then
#alias colourify="$GRC -es --colour=auto"
alias colourify="$GRC --colour=auto"

View File

@ -6,19 +6,31 @@ shared_plugins=(git brew common-aliases fast-syntax-highlighting zsh-autosuggest
uname=$(uname -a)
if [[ $uname == *"Darwin"* ]]; then
if [[ $(which brew) ]]; then
os_extra=(osx brew)
elif [[ $(which port)]]; then
os_extra=(osx macports)
else
os_extra=(osx)
fi
elif [[ $uname == *"ARCH"* ]]; then
os_extra=(archlinux)
elif [[ $uname == *"Debian"* ]]; then
os_extra=(debian)
fi
# https://www.xkcd.com/378/
export EDITOR="vim"
plugins=($shared_plugins $os_extra)
alias esource="$EDITOR $HOME/.zshrc"
alias resource="source $HOME/.zshrc"
alias dotedit="$EDITOR $DOTFILES/brethil_dotfile.sh"
alias funedit="$EDITOR $DOTFILES/functions.sh"
alias aledit="$EDITOR $DOTFILES/aliases.sh"
# Custom definitions files
alias funedit="$EDITOR ~/.dotfiles_functions.sh"
alias aledit="$EDITOR ~/.dotfiles_aliases.sh"
# Extras
functions_file=$DOTFILES/functions.sh # Function definitions
@ -26,11 +38,9 @@ aliases_file=$DOTFILES/aliases.sh # Aliases definitions
colors_file=$DOTFILES/colors.sh # Colors definitions
# Source extras
if [ -f $functions_file ]; then source $functions_file; fi
if [ -f $aliases_file ]; then source $aliases_file; fi
if [ -f $colors_file ]; then source $colors_file; fi
export EDITOR="vim"
if [ -f $functions_file ]; then source $functions_file; else echo "[brethil-dotfiles] Couldn't load functions: $functions_file"; fi
if [ -f $aliases_file ]; then source $aliases_file; else echo "[brethil-dotfiles] Couldn't load aliases: $aliases_file"; fi
if [ -f $colors_file ]; then source $colors_file; else echo "[brethil-dotfiles] Couldn't load colors: $colors_file";fi
### SETUP PATHS ####
export PATH=$PATH:$HOME/bin