add back files. add sourcing bashrc to profile.

This commit is contained in:
Matthew Jensen 2021-08-03 10:18:04 -07:00
parent c44d4a20ec
commit 0fbf4b41ee
3 changed files with 19 additions and 3 deletions

View File

@ -1,10 +1,12 @@
FILES:=.vimrc .gitconfig .bash_profile
all:$(FILES)
source ${HOME}/.bash_profile
. ${HOME}/.bash_profile
$(FILES):
cp -rf $(HOME)/$@ dotfiles/$@.bak
cp -rf dotfiles/$@ ${HOME}/$@
clean:
@echo "clean: idk yet.\nTODO: default config swap\n- .git-config.sample.\n- .debian_bash_profile.sample\n- .vimrc.sample?"

View File

@ -1,10 +1,23 @@
export VISUAL=vim
export VISUAL=vi
export EDITOR="$VISUAL"
function homestead() {
homestead() {
( cd ~/Homestead && vagrant $* )
}
alias hup="homestead up && homestead ssh"
PATH=$PATH:$HOME/.config/composer/vendor/bin
set -o vi
# tm - create new tmux session, or switch to existing one. Works from within tmux too. (@bag-man)
# `tm` will allow you to select your tmux session via fzf.
# `tm irc` will attach to the irc session (if it exists), else it will create it.
tm() {
[[ -n "$TMUX" ]] && change="switch-client" || change="attach-session"
if [ $1 ]; then
tmux $change -t "$1" 2>/dev/null || (tmux new-session -d -s $1 && tmux $change -t "$1"); return
fi
session=$(tmux list-sessions -F "#{session_name}" 2>/dev/null | fzf --exit-0) && tmux $change -t "$session" || echo "No sessions found."
}
. ~/.bashrc

1
dotfiles/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.bak