hostname bashrc, gitignore dotfiles in $HOME, create $HOME/.vim dir

This commit is contained in:
Julian Scharrenbach 2018-12-05 16:28:59 +01:00
parent d693610b79
commit 103f26762c
3 changed files with 8 additions and 25 deletions

28
.bashrc
View File

@ -96,37 +96,15 @@ if [ -f /etc/bash_completion ]; then
. /etc/bash_completion . /etc/bash_completion
fi fi
# local bashrc
[ -f ~/.bashrc_$HOSTNAME ] && source ~/.bashrc_$HOSTNAME
# This allows you to bookmark your favorite places across the file system # This allows you to bookmark your favorite places across the file system
# Define a variable containing a path and you will be able to cd into it regardless of the directory you're in # Define a variable containing a path and you will be able to cd into it regardless of the directory you're in
shopt -s cdable_vars shopt -s cdable_vars
# Examples: # Examples:
# export dotfiles="$HOME/dotfiles" # export dotfiles="$HOME/dotfiles"
export projects="$HOME/projects"
export elements="$HOME/elements"
export develop="$HOME/elements/develop"
# ssh using a new window when we are in TMUX
#SSHEXEC=$(which ssh)
#ssh() {
# if [ -n "$TMUX" ]
# then
# title="$*"
# #if [ "$1" = -t ]
# #then
# # title="$2"
# # shift 2
# #fi
# #if [ "$1" = "stay" ]
# #then
# # "$SSHEXEC $@"
# #else
# tmux new-window -n "$title" "$SSHEXEC $( echo $@ | sed 's/stay//')"
# #fi
# else
# $SSHEXEC $@
# fi
#}
# colorful manpages # colorful manpages
export LESS_TERMCAP_mb=$'\e[1;32m' export LESS_TERMCAP_mb=$'\e[1;32m'

2
.gitignore vendored
View File

@ -1,2 +1,4 @@
.vim/swap .vim/swap
.ssh/ .ssh/
$HOME/.vim/swap
$HOME/.ssh/

View File

@ -31,4 +31,7 @@ then
fi fi
fi fi
# create named directory-tree if not existent
mkdir -p $HOME/.vim/swap
create_link .vimrc create_link .vimrc