This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Luke Swart | |
email = lukeswart@gmail.com | |
[core] | |
editor = vim | |
[merge] | |
tool = kdiff3 | |
[alias] | |
st = status | |
cm = commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set colorful prompt | |
# export PS1='\[\e[1;32m\][\u@\h \W]\$\[\e[0m\] ' | |
# export PROMPT_DIRTRIM=2 | |
export MYPS='$(echo -n "${PWD/#$HOME/~}" | awk -F "/" '"'"'{if (length($0) > 20) { if (NF>4) print $1 "/" $2 "/.../" $(NF-1) "/" $NF; else if (NF>3) print $1 "/" $2 "/.../" $NF; else print $1 "/.../" $NF; } else print $0;}'"'"')' | |
case "$TERM" in | |
"dumb") | |
PS1="> " | |
;; | |
xterm*|rxvt*|eterm*|screen*) | |
PS1='\[\e[1;32m\][\u@\h]$(eval "echo ${MYPS}")$\[\e[0m\] ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unbind C-b | |
set -g prefix C-z | |
bind-key z send-prefix | |
set-option -g history-limit 1000 | |
setw -g mode-keys vi | |
# unbind [ | |
# bind Escape copy-mode | |
unbind p | |
bind p paste-buffer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unbind C-b | |
set -g prefix C-t | |
bind-key t send-prefix | |
set-option -g history-limit 1000 | |
# set -g @yank_selection "primary" | |
# # tmux plug-in manager | |
# set -g @tpm_plugins " \ | |
# tmux-plugins/tpm \ | |
# tmux-plugins/tmux-yank \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NVIDIA Optimus Aliases - bbswitch | |
alias tmulti="sudo $HOME/bin/term_multiscreen" | |
alias rmulti="sudo $HOME/bin/reinit_multiscreen" | |
alias imulti="sudo /home/lucas/bin/init_multiscreen" |
NewerOlder