dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit bfb8898a5091985a6a40529afba3e1d5e6378594
parent ab4f8fc2c83b09e81df9f560c961af16ddef9ea4
Author: AndrewLockVI <andrew@laack.co>
Date:   Sat,  8 Feb 2025 23:44:37 -0600

Added configuration from home dir (added symlink to them)

Diffstat:
M.gitignore | 1+
Abashrc | 138+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atmux.conf | 54++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 193 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -1,3 +1,4 @@ +nvim nvim/* pulse/* dconf/* diff --git a/bashrc b/bashrc @@ -0,0 +1,138 @@ +# ~/.bashrc: executed by bash(1) for non-login shells. +# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) +# for examples + +# If not running interactively, don't do anything +case $- in + *i*) ;; + *) return;; +esac + +# don't put duplicate lines or lines starting with space in the history. +# See bash(1) for more options +HISTCONTROL=ignoreboth + +# append to the history file, don't overwrite it +shopt -s histappend + +# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) +HISTSIZE=1000 +HISTFILESIZE=2000 + +# check the window size after each command and, if necessary, +# update the values of LINES and COLUMNS. +shopt -s checkwinsize + +# If set, the pattern "**" used in a pathname expansion context will +# match all files and zero or more directories and subdirectories. +#shopt -s globstar + +# make less more friendly for non-text input files, see lesspipe(1) +#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" + +# set a fancy prompt (non-color, unless we know we "want" color) +case "$TERM" in + xterm-color|*-256color) color_prompt=yes;; +esac + +# uncomment for a colored prompt, if the terminal has the capability; turned +# off by default to not distract the user: the focus in a terminal window +# should be on the output of commands, not on the prompt +#force_color_prompt=yes + +if [ -n "$force_color_prompt" ]; then + if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then + # We have color support; assume it's compliant with Ecma-48 + # (ISO/IEC-6429). (Lack of such support is extremely rare, and such + # a case would tend to support setf rather than setaf.) + color_prompt=yes + else + color_prompt= + fi +fi + +unset color_prompt force_color_prompt + +# If this is an xterm set the title to user@host:dir +# enable color support of ls and also add handy aliases +if [ -x /usr/bin/dircolors ]; then + test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" + alias ls='ls --color=auto' + #alias dir='dir --color=auto' + #alias vdir='vdir --color=auto' + + #alias grep='grep --color=auto' + #alias fgrep='fgrep --color=auto' + #alias egrep='egrep --color=auto' +fi + +# colored GCC warnings and errors +#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' + +# some more ls aliases +#alias ll='ls -l' +#alias la='ls -A' +#alias l='ls -CF' + +# Alias definitions. +# You may want to put all your additions into a separate file like +# ~/.bash_aliases, instead of adding them here directly. +# See /usr/share/doc/bash-doc/examples in the bash-doc package. + +if [ -f ~/.bash_aliases ]; then + . ~/.bash_aliases +fi + +# Start tmux automatically if not already inside a tmux session + +# if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then +# tmux +#fi + +export PATH="$HOME/.local/bin:$PATH" + +eval "$(zoxide init bash)" + +cd() { + if [ "$1" ]; then + # If a path is provided, use zoxide's 'cd' subcommand to jump to it + z "$1" + else + # Otherwise, behave like the default cd command (go to home directory) + command cd "$@" + fi +} + +alias tmux-purge='tmux list-sessions | grep -v attached | cut -d: -f1 | xargs -I{} tmux kill-session -t "{}"' + +alias tmux-attach='function _tmux_attach(){ tmux attach-session -t "$1"; }; _tmux_attach' +alias tmux-new='function _tmux_new(){ tmux new-session -s "$1"; }; _tmux_new' +alias tmux-end='function _tmux_end(){ tmux kill-session -t "$1"; }; _tmux_end' +alias weather='curl wttr.in/waunakee' + +export SFML_INCLUDE_DIR=/usr/local/sfml/include +export SFML_LIB_DIR=/usr/local/sfml/lib +export LD_LIBRARY_PATH=$SFML_LIB_DIR:$LD_LIBRARY_PATH + +# requires auth +clone-public() { + read -p "Enter repository name: " REPO_NAME + git clone ssh://brgr.heron-peacock.ts.net/home/shared/git/public-repos/$REPO_NAME.git +} + +clone-private() { + read -p "Enter repository name: " REPO_NAME + git clone ssh://brgr.heron-peacock.ts.net/home/shared/git/private-repos/$REPO_NAME.git +} + +alias pw='cat ~/keys/pw.txt | wl-copy' + +# Mount remote drive +alias mount-server="nohup sshfs andrew@brgr.heron-peacock.ts.net:/home/shared/ /home/server/ -o reconnect" + +sendit() { + git add . && git commit -m "$1" && git push +} + +export EDITOR=vim +alias sshServer='ssh andrew@brgr.heron-peacock.ts.net' diff --git a/tmux.conf b/tmux.conf @@ -0,0 +1,54 @@ +set -g prefix C-s + +bind k kill-session +bind r command-prompt "rename-session '%%'" + +bind h split-window -h -c "#{pane_current_path}" +bind v split-window -v -c "#{pane_current_path}" + + +# Open index.md in the notes directory +bind i send-keys "cd ~/gitRepos/notes" C-m + +# Open ToDoList.md in the toDoList directory +bind d send-keys "vim ~/gitRepos/todolist/ToDoList.md" C-m + +# Open the nvim config directory +bind n send-keys "cd ~/.config/nvim && vim lua/core/keymaps.lua" C-m + +# Open .tmux.conf +bind c send-keys "vim ~/.tmux.conf" C-m + +# bind s send-keys "vim ~/.config/shortcuts.md" C-m + + +set -g default-terminal "screen-256color" +set -as terminal-features ",xterm-256color:RGB" + +set -g base-index 1 +setw -g pane-base-index 1 + +bind t new-window +bind w kill-window + + +set-option -g status-bg default +set-option -g status-fg colour240 + +# +#set -g status-left-length 85 +#set -g status-left "working on#[fg=colour135] #S" +#set -g window-status-current-format "#[fg=black,bold bg=default]│#[fg=white bg=cyan]#W#[fg=black,bold bg=default]│" +#set -g window-status-current-format "#[fg=black,bold bg=default]│#[fg=colour135 bg=black]#W#[fg=black,bold bg=default]│" +#set -g status-style bg=default +#set -g status-right "#[fg=magenta] #[bg=gray] %b %d %Y %l:%M %p" +#set -g status-right '#(gitmux "#{pane_current_path}")' +#set -g status-justify centre +# +# + +set-option -g status-position top +set -g status-bg '#000000' # Light pinkish background (similar to Cappuccin's 'macchiato') +set -g status-fg '#FFFFFF' # Off-white foreground color (similar to Cappuccin's 'latte') +set -g status-left '' # Hide system name on the left side +set -g status-right '' # Hide time on the right side