Initial commit for using stow to manage dotfiles
This commit is contained in:
commit
7e582da7e3
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
tmux/.config/tmux/plugins
|
6
.gitmodules
vendored
Normal file
6
.gitmodules
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[submodule "nvim/.config/nvim"]
|
||||||
|
path = nvim/.config/nvim
|
||||||
|
url = https://pipsquire.webhop.me/djweber12/my_nvim_config.git
|
||||||
|
[submodule "tmux/.config/tmux/plugins/tpm"]
|
||||||
|
path = tmux/.config/tmux/plugins/tpm
|
||||||
|
url = https://github.com/tmux-plugins/tpm
|
1
nvim/.config/nvim
Submodule
1
nvim/.config/nvim
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit ab433893d118ca0047dd31b2be8ac5981571196d
|
1
tmux/.config/tmux/plugins/tpm
Submodule
1
tmux/.config/tmux/plugins/tpm
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 99469c4a9b1ccf77fade25842dc7bafbc8ce9946
|
24
tmux/.config/tmux/tmux.conf
Normal file
24
tmux/.config/tmux/tmux.conf
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# List of plugins
|
||||||
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||||
|
# Tmux theme
|
||||||
|
set -g @plugin '2kabhishek/tmux2k'
|
||||||
|
|
||||||
|
set -g @tmux2k-theme 'onedark'
|
||||||
|
|
||||||
|
set -ga terminal-overrides ",xterm-256color:Tc"
|
||||||
|
|
||||||
|
set-option -g mouse on
|
||||||
|
|
||||||
|
bind h select-pane -L
|
||||||
|
bind j select-pane -D
|
||||||
|
bind k select-pane -U
|
||||||
|
bind l select-pane -R
|
||||||
|
|
||||||
|
bind-key -r -T prefix C-k resize-pane -U 5
|
||||||
|
bind-key -r -T prefix C-j resize-pane -D 5
|
||||||
|
bind-key -r -T prefix C-h resize-pane -L 5
|
||||||
|
bind-key -r -T prefix C-l resize-pane -R 5
|
||||||
|
|
||||||
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
||||||
|
run '~/.config/tmux/plugins/tpm/tpm'
|
31
top_level/.bash_aliases
Normal file
31
top_level/.bash_aliases
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# vim:syntax=sh
|
||||||
|
if [[ "`whoami`" == "root" ]]; then
|
||||||
|
PS1='\[\033[31;1m\]\u@\H\[\033[32;1m\] [\w]\[\033[35;1m\] \d \t \[\033[33;1m\](\j)\n\$ \[\033[0m\]'
|
||||||
|
else
|
||||||
|
PS1='\[\033[35;1m\]\u@\H\[\033[31;1m\] [\w]\[\033[32;1m\] \d \t \[\033[33;1m\](\j)\[\033[33;1m\]$(prompt_ps1_git_branch)\[\033[33;1m\]\$ \[\033[0m\]'
|
||||||
|
fi
|
||||||
|
# alternate PS1:
|
||||||
|
# PS1='[\[\033[31;1m\]\u@\H\[\033[34;1m\] \w\[\033[0m\]]\$ \[\033[0m\]'
|
||||||
|
case "$TERM" in
|
||||||
|
[ax]term*|rxvt*)
|
||||||
|
PROMPT_COMMAND='cdshowgitstatus;echo -ne "\033]0;"$(basename ${PWD})" [${USER}@${HOSTNAME}: ${PWD}]\007"'
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
alias grep='grep --color=auto'
|
||||||
|
alias grepnosvn='grep --color=auto --exclude-dir=".svn"'
|
||||||
|
alias egrepnosvn='egrep --color=auto --exclude-dir=".svn"'
|
||||||
|
alias gvim='gvim --remote-tab-silent'
|
||||||
|
alias cdshowgitstatus='if [[ $CDSHOWGITSTATUS_LAST_WD != $PWD ]]; then if [[ -d .git ]]; then git status; fi; CDSHOWGITSTATUS_LAST_WD=$PWD; fi'
|
||||||
|
#PROMPT_COMMAND="$PROMPT_COMMAND;cdshowgitstatus"
|
||||||
|
function prompt_ps1_git_branch()
|
||||||
|
{
|
||||||
|
if [[ -e /usr/bin/git && "$PCGB_LAST_WD" != "$PWD" ]]; then
|
||||||
|
current_git_branch=$(git branch 2>/dev/null | grep '^\*' | sed -e 's/^..//');
|
||||||
|
PCGB_LAST_WD=$PWD;
|
||||||
|
fi;
|
||||||
|
if [[ "$current_git_branch" != "" ]]; then
|
||||||
|
echo -e " [${current_git_branch}]";
|
||||||
|
fi
|
||||||
|
}
|
39
top_level/.bashrc
Normal file
39
top_level/.bashrc
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
# .bashrc
|
||||||
|
|
||||||
|
# Source global definitions
|
||||||
|
if [ -f /etc/bashrc ]; then
|
||||||
|
. /etc/bashrc
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f "${HOME}/.bash_aliases" ]; then
|
||||||
|
source "${HOME}/.bash_aliases"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# User specific environment
|
||||||
|
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]; then
|
||||||
|
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
|
||||||
|
fi
|
||||||
|
export PATH
|
||||||
|
|
||||||
|
HISTSIZE=1000000
|
||||||
|
|
||||||
|
# Uncomment the following line if you don't like systemctl's auto-paging feature:
|
||||||
|
# export SYSTEMD_PAGER=
|
||||||
|
|
||||||
|
# User specific aliases and functions
|
||||||
|
if [ -d ~/.bashrc.d ]; then
|
||||||
|
for rc in ~/.bashrc.d/*; do
|
||||||
|
if [ -f "$rc" ]; then
|
||||||
|
. "$rc"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
unset rc
|
||||||
|
|
||||||
|
alias nvimc="nvim ~/.config/nvim"
|
||||||
|
alias bashrc="nvim ~/.bashrc"
|
||||||
|
alias vpy="source ./venv/bin/activate"
|
||||||
|
export XDG_CONFIG_HOME=~/.config
|
||||||
|
function fcd() {
|
||||||
|
cd $(find . -type d -print | fzf);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user