add helix runtime to git ignore

This commit is contained in:
James Dixon 2023-01-15 22:42:44 -05:00
parent 017dffc544
commit 802ff4475e
3 changed files with 45 additions and 43 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
*packer_compiled.lua *packer_compiled.lua
helix/runtime

View File

@ -1,6 +1,7 @@
# This .bashrc is kept under git version control # This .bashrc is kept under git version control
# To make any edits or configurations, please edit `~/.config/bashrc`
# as this is sourced at the end of this file # To make any local (non-tracked) edits or configurations,
# please edit `~/.local/.bashrc`, which is sourced from this file.
# If not running interactively, don't do anything # If not running interactively, don't do anything
case $- in case $- in
@ -9,22 +10,19 @@ case $- in
esac esac
##* environment variables *## ##* environment variables *##
# {{{
# environment variables for commands # environment variables for commands
export PAGER="less"
export EDITOR="/usr/bin/vim" export EDITOR="/usr/bin/vim"
export VISUAL="/usr/bin/vim" export VISUAL="/usr/bin/vim"
export PAGER="less"
# bash history options # bash history options
HISTSIZE= ; HISTSIZE= ;
HISTFILESIZE= HISTFILESIZE= ;
HISTCONTROL="ignoreboth:erasedups" HISTCONTROL="ignoreboth:erasedups"
HISTTIMEFORMAT="%F %T " HISTTIMEFORMAT="%F %T "
##* aliases *##
# {{{
# ls options # ls options
ls --version &> /dev/null ls --version &> /dev/null
if [ "$? " -eq 0 ]; then if [ "$? " -eq 0 ]; then
@ -33,6 +31,10 @@ else
LS_OPTS="-GF" LS_OPTS="-GF"
export CLICOLOR=1 export CLICOLOR=1
fi fi
# }}}
##* aliases *##
# {{{
# core utils (ls, grep, tree) # core utils (ls, grep, tree)
alias l="ls ${LS_OPTS}" alias l="ls ${LS_OPTS}"
@ -65,20 +67,20 @@ alias tmka="tmux kill-server" # aka killall
alias d="docker" alias d="docker"
alias dc="docker-compose" alias dc="docker-compose"
# kubernetes
alias k="kubectl"
alias mink="minikube"
# python # python
# python3 is python unless python is python # python3 is python unless python is already python3
if ! command -v python &> /dev/null && command -v python3 &> /dev/null; then if ! command -v python &> /dev/null && command -v python3 &> /dev/null; then
alias python="python3" alias python="python3"
alias py="python3" alias py="python3"
alias ipy="ipython3" alias ipy="ipython3"
fi fi
alias venvac="source venv/bin/activate" alias venvac="source venv/bin/activate"
alias mkvenv="python -m venv venv"
# linux gui things
alias xo="xdg-open"
alias firefox-temp='firefox --profile $(mktemp -d) &> /dev/null &'
# mac gui things
alias o="open"
# compression/archives # compression/archives
alias untar="tar -xvf" alias untar="tar -xvf"
@ -267,8 +269,7 @@ watip() {
} }
#}}} #}}}
##* prompt settings (PS1) *##
## prompt settings (PS1) ##
# {{{ # {{{
# git prompt function # git prompt function
@ -311,7 +312,7 @@ PS1="${bold}${bright_blue}\w\$(parse_git)${white} \\$ ${reset}"
# PS1="${bold}${bright_cyan}\u${bright_magenta}@${bright_yellow}\h${white}:${bright_blue}\w\$(parse_git)${white}\\$ ${reset}" # PS1="${bold}${bright_cyan}\u${bright_magenta}@${bright_yellow}\h${white}:${bright_blue}\w\$(parse_git)${white}\\$ ${reset}"
# }}} # }}}
## bash completions and integrations ## ##* bash completions and integrations *##
# {{{ # {{{
# bash autocompletion # bash autocompletion
if ! shopt -oq posix; then if ! shopt -oq posix; then
@ -327,10 +328,10 @@ fi
# fzf shell integration # fzf shell integration
export FZF_DEFAULT_OPTS="--bind=ctrl-f:page-down,ctrl-b:page-up" export FZF_DEFAULT_OPTS="--bind=ctrl-f:page-down,ctrl-b:page-up"
[ -f ~/.config/.fzf.bash ] && source ~/.config/.fzf.bash [ -f "~/.config/.fzf.bash" ] && source "~/.config/.fzf.bash"
# }}} # }}}
## paths ## ##* paths *##
# language version managers # language version managers
# {{{ # {{{
# ruby (rbenv) # ruby (rbenv)
@ -387,23 +388,37 @@ fi
[ -d "$HOME/.cargo" ] && appendpath "$HOME/.cargo/bin" [ -d "$HOME/.cargo" ] && appendpath "$HOME/.cargo/bin"
#}}} #}}}
## macOS package managers and specific config ## ##* OS specific config *##
# {{{ # {{{
# homebrew case "$OSTYPE" in
[ -d "/opt/homebrew/bin" ] && appendpath "/opt/homebrew/bin" darwin*)
# python3 (macOS) # homebrew
[ -d "$HOME/Library/Python/3.8/bin" ] && appendpath "$HOME/Library/Python/3.8/bin" [ -d "/opt/homebrew/bin" ] && appendpath "/opt/homebrew/bin"
# python3 (macOS)
[ -d "$HOME/Library/Python/3.8/bin" ] && appendpath "$HOME/Library/Python/3.8/bin"
# gui things
alias o="open"
;;
linux*)
# linux gui things
alias xo="xdg-open"
alias firefox-temp='firefox --profile $(mktemp -d) &> /dev/null &'
;;
esac
# local bins # local bins
[ -d "$HOME/.local/bin" ] && appendpath "$HOME/.local/bin" [ -d "$HOME/.local/bin" ] && appendpath "$HOME/.local/bin"
[ -d "$HOME/.local/scripts" ] && appendpath "$HOME/.local/scripts" [ -d "$HOME/.local/scripts" ] && appendpath "$HOME/.local/scripts"
# local rc # local rc
[ -r "$HOME/.config/.bashrc.local" ] && source "$HOME/.config/.bashrc.local" [ -r "$HOME/.local/.bashrc" ] && source "$HOME/.local/.bashrc"
#}}} #}}}
## alias to *new* and *improved* unix cli tools (exa, bat, nvim) ## section for *new* and *improved* cli tools (exa, bat, nvim)
# Check for nvim and set as editor after paths are added # {{{
# nvim
# {{{
NVIM=$(command -v nvim) NVIM=$(command -v nvim)
if [ -x "$NVIM" ]; then if [ -x "$NVIM" ]; then
EDITOR="$NVIM" EDITOR="$NVIM"
@ -412,21 +427,7 @@ fi
alias v="$EDITOR" alias v="$EDITOR"
alias vi="$EDITOR" alias vi="$EDITOR"
alias vim="$EDITOR" alias vim="$EDITOR"
# }}}
# dead code
# {{{
# start in tmux session if possible
# if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
# exec tmux
# fi
# shell options
# if ! shopt -q checkhash 2> /dev/null; then shopt -s checkhash fi
# if ! shopt -q checkwinsize 2> /dev/null; then shopt -s checkwinsize; fi
# if ! shopt -q cmdhist 2> /dev/null; then shopt -s cmdhist; fi
# if ! shopt -q histappend 2> /dev/null; then shopt -s histappend; fi
# if ! shopt -q extglob 2> /dev/null; then shopt -s extglob; fi
# if ! shopt -q globstar 2> /dev/null; then shopt -s globstar; fi
# }}} # }}}
# vim:ft=sh # vim:ft=sh

View File

@ -10,7 +10,7 @@ set -g default-terminal "xterm-256color"
setw -g mode-keys vi setw -g mode-keys vi
# unset the annoying delay # unset the annoying delay
set -sg escape-time 0 # set -sg escape-time -1
# mouse settings # mouse settings
# set -g mouse on # set -g mouse on