From 06dc0763ca4d49706ce5adbb74fb03097d44e60b Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Mon, 27 May 2024 18:49:44 -0400 Subject: refactor: remove lots of unused cruft and include an install --- .bashrc | 125 --- .../JetBrains/CLion2023.3/codestyles/Default.xml | 73 -- .../options/AIAssistantPromptLibraryStorage.xml | 35 - .../options/AquaNewUserFeedbackService.xml | 5 - .../options/AquaOldUserFeedbackService.xml | 6 - .../CLion2023.3/options/ChartsStyleConfig.xml | 253 ------ .../JetBrains/CLion2023.3/options/Clang-Tidy.xml | 676 ---------------- .../CLion2023.3/options/NewUIInfoService.xml | 6 - .../JetBrains/CLion2023.3/options/PerfProfiler.xml | 9 - .../CLion2023.3/options/PyCharmUIInfoState.xml | 5 - .../CLion2023.3/options/actionSummary.xml | 856 --------------------- .../CLion2023.3/options/baseRefactoring.xml | 7 - .../CLion2023.3/options/colors.scheme.xml | 5 - .../JetBrains/CLion2023.3/options/console-font.xml | 5 - .../CLion2023.3/options/cppRuleManager.xml | 16 - .../JetBrains/CLion2023.3/options/csvSettings.xml | 36 - .../CLion2023.3/options/dataViewsSettings.xml | 3 - .../CLion2023.3/options/databaseDrivers.xml | 3 - .config/JetBrains/CLion2023.3/options/debugger.xml | 18 - .config/JetBrains/CLion2023.3/options/diff.xml | 5 - .../JetBrains/CLion2023.3/options/docker-tools.xml | 6 - .../JetBrains/CLion2023.3/options/editor-font.xml | 6 - .config/JetBrains/CLion2023.3/options/editor.xml | 15 - .../options/features.usage.statistics.xml | 140 ---- .../JetBrains/CLion2023.3/options/filetypes.xml | 8 - .config/JetBrains/CLion2023.3/options/find.xml | 44 -- .../CLion2023.3/options/ide.general.local.xml | 5 - .../JetBrains/CLion2023.3/options/ide.general.xml | 15 - .../CLion2023.3/options/images.support.xml | 8 - .config/JetBrains/CLion2023.3/options/laf.xml | 5 - .../JetBrains/CLion2023.3/options/linux/keymap.xml | 5 - .../CLion2023.3/options/linux/toolchains.xml | 8 - .config/JetBrains/CLion2023.3/options/nodejs.xml | 8 - .../CLion2023.3/options/ocRefactoring.xml | 5 - .config/JetBrains/CLion2023.3/options/other.xml | 159 ---- .../CLion2023.3/options/parameter.hints.xml | 7 - .config/JetBrains/CLion2023.3/options/plantuml.xml | 11 - .../options/profilerRunConfigurations.xml | 6 - .../CLion2023.3/options/project.default.xml | 12 - .../JetBrains/CLion2023.3/options/projectView.xml | 5 - .../CLion2023.3/options/recentProjects.xml | 197 ----- .../CLion2023.3/options/runner.layout.xml | 57 -- .../CLion2023.3/options/rust.feedback.xml | 5 - .../JetBrains/CLion2023.3/options/settingsSync.xml | 5 - .../options/sshRecentConnections.v2.xml | 7 - .../options/sshRecentConnectionsHost.xml | 7 - .../CLion2023.3/options/trusted-paths.xml | 28 - .config/JetBrains/CLion2023.3/options/ui.lnf.xml | 6 - .config/JetBrains/CLion2023.3/options/updates.xml | 9 - .../CLion2023.3/options/usage.statistics.xml | 6 - .../JetBrains/CLion2023.3/options/usageView.xml | 5 - .config/JetBrains/CLion2023.3/options/vcs.xml | 16 - .../CLion2023.3/options/web-types-npm-loader.xml | 120 --- .../JetBrains/CLion2023.3/options/window.state.xml | 44 -- .config/i3/.i3status.conf | 87 --- .config/i3/config | 219 ------ README.md | 6 + bashrc | 128 +++ install.py | 14 + 59 files changed, 148 insertions(+), 3443 deletions(-) delete mode 100644 .bashrc delete mode 100644 .config/JetBrains/CLion2023.3/codestyles/Default.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/AIAssistantPromptLibraryStorage.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/AquaNewUserFeedbackService.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/AquaOldUserFeedbackService.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/ChartsStyleConfig.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/Clang-Tidy.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/NewUIInfoService.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/PerfProfiler.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/PyCharmUIInfoState.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/actionSummary.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/baseRefactoring.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/colors.scheme.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/console-font.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/cppRuleManager.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/csvSettings.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/dataViewsSettings.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/databaseDrivers.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/debugger.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/diff.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/docker-tools.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/editor-font.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/editor.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/features.usage.statistics.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/filetypes.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/find.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/ide.general.local.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/ide.general.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/images.support.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/laf.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/linux/keymap.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/linux/toolchains.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/nodejs.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/ocRefactoring.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/other.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/parameter.hints.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/plantuml.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/profilerRunConfigurations.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/project.default.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/projectView.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/recentProjects.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/runner.layout.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/rust.feedback.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/settingsSync.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/sshRecentConnections.v2.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/sshRecentConnectionsHost.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/trusted-paths.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/ui.lnf.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/updates.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/usage.statistics.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/usageView.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/vcs.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/web-types-npm-loader.xml delete mode 100644 .config/JetBrains/CLion2023.3/options/window.state.xml delete mode 100644 .config/i3/.i3status.conf delete mode 100644 .config/i3/config create mode 100644 bashrc create mode 100755 install.py diff --git a/.bashrc b/.bashrc deleted file mode 100644 index 73b3e1a..0000000 --- a/.bashrc +++ /dev/null @@ -1,125 +0,0 @@ -# -# ~/.bashrc -# - -[[ $- != *i* ]] && return - -colors() { - local fgc bgc vals seq0 - - printf "Color escapes are %s\n" '\e[${value};...;${value}m' - printf "Values 30..37 are \e[33mforeground colors\e[m\n" - printf "Values 40..47 are \e[43mbackground colors\e[m\n" - printf "Value 1 gives a \e[1mbold-faced look\e[m\n\n" - - # foreground colors - for fgc in {30..37}; do - # background colors - for bgc in {40..47}; do - fgc=${fgc#37} # white - bgc=${bgc#40} # black - - vals="${fgc:+$fgc;}${bgc}" - vals=${vals%%;} - - seq0="${vals:+\e[${vals}m}" - printf " %-9s" "${seq0:-(default)}" - printf " ${seq0}TEXT\e[m" - printf " \e[${vals:+${vals+$vals;}}1mBOLD\e[m" - done - echo; echo - done -} - -[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion - -# Change the window title of X terminals -case ${TERM} in - xterm*|rxvt*|Eterm*|aterm|kterm|gnome*|interix|konsole*) - PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\007"' - ;; - screen*) - PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\033\\"' - ;; -esac - -use_color=true - -# Set colorful PS1 only on colorful terminals. -# dircolors --print-database uses its own built-in database -# instead of using /etc/DIR_COLORS. Try to use the external file -# first to take advantage of user additions. Use internal bash -# globbing instead of external grep binary. -safe_term=${TERM//[^[:alnum:]]/?} # sanitize TERM -match_lhs="" -[[ -f ~/.dir_colors ]] && match_lhs="${match_lhs}$(<~/.dir_colors)" -[[ -f /etc/DIR_COLORS ]] && match_lhs="${match_lhs}$(/dev/null \ - && match_lhs=$(dircolors --print-database) -[[ $'\n'${match_lhs} == *$'\n'"TERM "${safe_term}* ]] && use_color=true - -PS1="[\[$(tput sgr0)\]\[$(tput bold)\]\[\033[38;5;85m\]\t\[$(tput sgr0)\]] \[$(tput bold)\]\w\[$(tput sgr0)\] \[$(tput sgr0)\]\[$(tput bold)\]\[\033[38;5;226m\]\$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/')\[$(tput sgr0)\] \[$(tput sgr0)\]\[$(tput bold)\]\[\033[38;5;85m\]\\$\[$(tput sgr0)\] \[$(tput sgr0)\]" - -unset use_color safe_term match_lhs sh - -alias cp="cp -i" # confirm before overwriting something -alias df='df -h' # human-readable sizes -alias music="mocp" - -xhost +local:root > /dev/null 2>&1 - -complete -cf sudo - -# Bash won't get SIGWINCH if another process is in the foreground. -# Enable checkwinsize so that bash will check the terminal size when -# it regains control. #65623 -# http://cnswww.cns.cwru.edu/~chet/bash/FAQ (E11) -shopt -s checkwinsize - -shopt -s expand_aliases - -# export QT_SELECT=4 - -# Enable history appending instead of overwriting. #139609 -shopt -s histappend - -# -# # ex - archive extractor -# # usage: ex -ex () -{ - if [ -f $1 ] ; then - case $1 in - *.tar.bz2) tar xjf $1 ;; - *.tar.gz) tar xzf $1 ;; - *.bz2) bunzip2 $1 ;; - *.rar) unrar x $1 ;; - *.gz) gunzip $1 ;; - *.tar) tar xf $1 ;; - *.tbz2) tar xjf $1 ;; - *.tgz) tar xzf $1 ;; - *.zip) unzip $1 ;; - *.Z) uncompress $1;; - *.7z) 7z x $1 ;; - *) echo "'$1' cannot be extracted via ex()" ;; - esac - else - echo "'$1' is not a valid file" - fi -} - -export PATH="${PATH}:~/Scripts" - -# Add RVM to PATH for scripting. Make sure this is the last PATH variable change. -export PATH="$PATH:$HOME/.rvm/bin" - -if [ -f ~/.git-completion.bash ]; then - . ~/.git-completion.bash -fi -source /usr/share/nvm/init-nvm.sh - -[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* - -export BROWSER="/usr/bin/brave" -xset r rate 350 50 diff --git a/.config/JetBrains/CLion2023.3/codestyles/Default.xml b/.config/JetBrains/CLion2023.3/codestyles/Default.xml deleted file mode 100644 index 92ef787..0000000 --- a/.config/JetBrains/CLion2023.3/codestyles/Default.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/AIAssistantPromptLibraryStorage.xml b/.config/JetBrains/CLion2023.3/options/AIAssistantPromptLibraryStorage.xml deleted file mode 100644 index f1a440f..0000000 --- a/.config/JetBrains/CLion2023.3/options/AIAssistantPromptLibraryStorage.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/AquaNewUserFeedbackService.xml b/.config/JetBrains/CLion2023.3/options/AquaNewUserFeedbackService.xml deleted file mode 100644 index a135ee6..0000000 --- a/.config/JetBrains/CLion2023.3/options/AquaNewUserFeedbackService.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/AquaOldUserFeedbackService.xml b/.config/JetBrains/CLion2023.3/options/AquaOldUserFeedbackService.xml deleted file mode 100644 index 0ebf4fd..0000000 --- a/.config/JetBrains/CLion2023.3/options/AquaOldUserFeedbackService.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/ChartsStyleConfig.xml b/.config/JetBrains/CLion2023.3/options/ChartsStyleConfig.xml deleted file mode 100644 index 6e9f3b9..0000000 --- a/.config/JetBrains/CLion2023.3/options/ChartsStyleConfig.xml +++ /dev/null @@ -1,253 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/Clang-Tidy.xml b/.config/JetBrains/CLion2023.3/options/Clang-Tidy.xml deleted file mode 100644 index d5a0a46..0000000 --- a/.config/JetBrains/CLion2023.3/options/Clang-Tidy.xml +++ /dev/null @@ -1,676 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/NewUIInfoService.xml b/.config/JetBrains/CLion2023.3/options/NewUIInfoService.xml deleted file mode 100644 index d57f265..0000000 --- a/.config/JetBrains/CLion2023.3/options/NewUIInfoService.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/PerfProfiler.xml b/.config/JetBrains/CLion2023.3/options/PerfProfiler.xml deleted file mode 100644 index 4eda18a..0000000 --- a/.config/JetBrains/CLion2023.3/options/PerfProfiler.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/PyCharmUIInfoState.xml b/.config/JetBrains/CLion2023.3/options/PyCharmUIInfoState.xml deleted file mode 100644 index 8d34ad3..0000000 --- a/.config/JetBrains/CLion2023.3/options/PyCharmUIInfoState.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/actionSummary.xml b/.config/JetBrains/CLion2023.3/options/actionSummary.xml deleted file mode 100644 index a5d4b4c..0000000 --- a/.config/JetBrains/CLion2023.3/options/actionSummary.xml +++ /dev/null @@ -1,856 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/baseRefactoring.xml b/.config/JetBrains/CLion2023.3/options/baseRefactoring.xml deleted file mode 100644 index b016594..0000000 --- a/.config/JetBrains/CLion2023.3/options/baseRefactoring.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/colors.scheme.xml b/.config/JetBrains/CLion2023.3/options/colors.scheme.xml deleted file mode 100644 index aa0897d..0000000 --- a/.config/JetBrains/CLion2023.3/options/colors.scheme.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/console-font.xml b/.config/JetBrains/CLion2023.3/options/console-font.xml deleted file mode 100644 index 2c67ad2..0000000 --- a/.config/JetBrains/CLion2023.3/options/console-font.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/cppRuleManager.xml b/.config/JetBrains/CLion2023.3/options/cppRuleManager.xml deleted file mode 100644 index d1b8288..0000000 --- a/.config/JetBrains/CLion2023.3/options/cppRuleManager.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - std::* - - - boost::* - - - Catch::* - - - testing::* - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/csvSettings.xml b/.config/JetBrains/CLion2023.3/options/csvSettings.xml deleted file mode 100644 index 39be55b..0000000 --- a/.config/JetBrains/CLion2023.3/options/csvSettings.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/dataViewsSettings.xml b/.config/JetBrains/CLion2023.3/options/dataViewsSettings.xml deleted file mode 100644 index 2bca92d..0000000 --- a/.config/JetBrains/CLion2023.3/options/dataViewsSettings.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/databaseDrivers.xml b/.config/JetBrains/CLion2023.3/options/databaseDrivers.xml deleted file mode 100644 index 18bb29e..0000000 --- a/.config/JetBrains/CLion2023.3/options/databaseDrivers.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/debugger.xml b/.config/JetBrains/CLion2023.3/options/debugger.xml deleted file mode 100644 index 899c20a..0000000 --- a/.config/JetBrains/CLion2023.3/options/debugger.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/diff.xml b/.config/JetBrains/CLion2023.3/options/diff.xml deleted file mode 100644 index c679db1..0000000 --- a/.config/JetBrains/CLion2023.3/options/diff.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/docker-tools.xml b/.config/JetBrains/CLion2023.3/options/docker-tools.xml deleted file mode 100644 index 982bc72..0000000 --- a/.config/JetBrains/CLion2023.3/options/docker-tools.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/editor-font.xml b/.config/JetBrains/CLion2023.3/options/editor-font.xml deleted file mode 100644 index d229c69..0000000 --- a/.config/JetBrains/CLion2023.3/options/editor-font.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/editor.xml b/.config/JetBrains/CLion2023.3/options/editor.xml deleted file mode 100644 index 6044f36..0000000 --- a/.config/JetBrains/CLion2023.3/options/editor.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/features.usage.statistics.xml b/.config/JetBrains/CLion2023.3/options/features.usage.statistics.xml deleted file mode 100644 index d1c50d2..0000000 --- a/.config/JetBrains/CLion2023.3/options/features.usage.statistics.xml +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/filetypes.xml b/.config/JetBrains/CLion2023.3/options/filetypes.xml deleted file mode 100644 index 8b5379d..0000000 --- a/.config/JetBrains/CLion2023.3/options/filetypes.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/find.xml b/.config/JetBrains/CLion2023.3/options/find.xml deleted file mode 100644 index 40af4b1..0000000 --- a/.config/JetBrains/CLion2023.3/options/find.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/ide.general.local.xml b/.config/JetBrains/CLion2023.3/options/ide.general.local.xml deleted file mode 100644 index 22930d0..0000000 --- a/.config/JetBrains/CLion2023.3/options/ide.general.local.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/ide.general.xml b/.config/JetBrains/CLion2023.3/options/ide.general.xml deleted file mode 100644 index 6ef231d..0000000 --- a/.config/JetBrains/CLion2023.3/options/ide.general.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/images.support.xml b/.config/JetBrains/CLion2023.3/options/images.support.xml deleted file mode 100644 index 3f51694..0000000 --- a/.config/JetBrains/CLion2023.3/options/images.support.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/laf.xml b/.config/JetBrains/CLion2023.3/options/laf.xml deleted file mode 100644 index da3e2e9..0000000 --- a/.config/JetBrains/CLion2023.3/options/laf.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/linux/keymap.xml b/.config/JetBrains/CLion2023.3/options/linux/keymap.xml deleted file mode 100644 index 66f49c6..0000000 --- a/.config/JetBrains/CLion2023.3/options/linux/keymap.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/linux/toolchains.xml b/.config/JetBrains/CLion2023.3/options/linux/toolchains.xml deleted file mode 100644 index 53080de..0000000 --- a/.config/JetBrains/CLion2023.3/options/linux/toolchains.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/nodejs.xml b/.config/JetBrains/CLion2023.3/options/nodejs.xml deleted file mode 100644 index 553263a..0000000 --- a/.config/JetBrains/CLion2023.3/options/nodejs.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/ocRefactoring.xml b/.config/JetBrains/CLion2023.3/options/ocRefactoring.xml deleted file mode 100644 index ddd4e67..0000000 --- a/.config/JetBrains/CLion2023.3/options/ocRefactoring.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/other.xml b/.config/JetBrains/CLion2023.3/options/other.xml deleted file mode 100644 index 8c8c4f5..0000000 --- a/.config/JetBrains/CLion2023.3/options/other.xml +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - - - - - - - - - - { - "shownTips": { - "CtrlW": 1688735415200, - "FocusProjectToolWindow": 1688648695857 - } -} - - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/parameter.hints.xml b/.config/JetBrains/CLion2023.3/options/parameter.hints.xml deleted file mode 100644 index 6dc6b4b..0000000 --- a/.config/JetBrains/CLion2023.3/options/parameter.hints.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/plantuml.xml b/.config/JetBrains/CLion2023.3/options/plantuml.xml deleted file mode 100644 index 848fce1..0000000 --- a/.config/JetBrains/CLion2023.3/options/plantuml.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/profilerRunConfigurations.xml b/.config/JetBrains/CLion2023.3/options/profilerRunConfigurations.xml deleted file mode 100644 index 47515e7..0000000 --- a/.config/JetBrains/CLion2023.3/options/profilerRunConfigurations.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/project.default.xml b/.config/JetBrains/CLion2023.3/options/project.default.xml deleted file mode 100644 index 608d7e9..0000000 --- a/.config/JetBrains/CLion2023.3/options/project.default.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/projectView.xml b/.config/JetBrains/CLion2023.3/options/projectView.xml deleted file mode 100644 index ace4061..0000000 --- a/.config/JetBrains/CLion2023.3/options/projectView.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/recentProjects.xml b/.config/JetBrains/CLion2023.3/options/recentProjects.xml deleted file mode 100644 index 9a45923..0000000 --- a/.config/JetBrains/CLion2023.3/options/recentProjects.xml +++ /dev/null @@ -1,197 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/runner.layout.xml b/.config/JetBrains/CLion2023.3/options/runner.layout.xml deleted file mode 100644 index 885a213..0000000 --- a/.config/JetBrains/CLion2023.3/options/runner.layout.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/rust.feedback.xml b/.config/JetBrains/CLion2023.3/options/rust.feedback.xml deleted file mode 100644 index 1b1a4c9..0000000 --- a/.config/JetBrains/CLion2023.3/options/rust.feedback.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/settingsSync.xml b/.config/JetBrains/CLion2023.3/options/settingsSync.xml deleted file mode 100644 index 6c9eb82..0000000 --- a/.config/JetBrains/CLion2023.3/options/settingsSync.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/sshRecentConnections.v2.xml b/.config/JetBrains/CLion2023.3/options/sshRecentConnections.v2.xml deleted file mode 100644 index 0ab9433..0000000 --- a/.config/JetBrains/CLion2023.3/options/sshRecentConnections.v2.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/sshRecentConnectionsHost.xml b/.config/JetBrains/CLion2023.3/options/sshRecentConnectionsHost.xml deleted file mode 100644 index d921474..0000000 --- a/.config/JetBrains/CLion2023.3/options/sshRecentConnectionsHost.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/trusted-paths.xml b/.config/JetBrains/CLion2023.3/options/trusted-paths.xml deleted file mode 100644 index 16870ef..0000000 --- a/.config/JetBrains/CLion2023.3/options/trusted-paths.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/ui.lnf.xml b/.config/JetBrains/CLion2023.3/options/ui.lnf.xml deleted file mode 100644 index 1b1ca5d..0000000 --- a/.config/JetBrains/CLion2023.3/options/ui.lnf.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/updates.xml b/.config/JetBrains/CLion2023.3/options/updates.xml deleted file mode 100644 index 0220197..0000000 --- a/.config/JetBrains/CLion2023.3/options/updates.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/usage.statistics.xml b/.config/JetBrains/CLion2023.3/options/usage.statistics.xml deleted file mode 100644 index 201271c..0000000 --- a/.config/JetBrains/CLion2023.3/options/usage.statistics.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/usageView.xml b/.config/JetBrains/CLion2023.3/options/usageView.xml deleted file mode 100644 index f9b8955..0000000 --- a/.config/JetBrains/CLion2023.3/options/usageView.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/vcs.xml b/.config/JetBrains/CLion2023.3/options/vcs.xml deleted file mode 100644 index 1f8002a..0000000 --- a/.config/JetBrains/CLion2023.3/options/vcs.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/web-types-npm-loader.xml b/.config/JetBrains/CLion2023.3/options/web-types-npm-loader.xml deleted file mode 100644 index bd4b4f2..0000000 --- a/.config/JetBrains/CLion2023.3/options/web-types-npm-loader.xml +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.config/JetBrains/CLion2023.3/options/window.state.xml b/.config/JetBrains/CLion2023.3/options/window.state.xml deleted file mode 100644 index 83b07ab..0000000 --- a/.config/JetBrains/CLion2023.3/options/window.state.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.config/i3/.i3status.conf b/.config/i3/.i3status.conf deleted file mode 100644 index 6b34e2b..0000000 --- a/.config/i3/.i3status.conf +++ /dev/null @@ -1,87 +0,0 @@ -# i3status configuration file. -# see "man i3status" for documentation. - -# It is important that this file is edited as UTF-8. -# The following line should contain a sharp s: -# ß -# If the above line is not correctly displayed, fix your editor first! - -general { - - colors = true - color_good = "#a3be8c" - color_bad = "#bf616a" - color_degraded = "#d08770" - output_format = "i3bar" - interval = 1 -} - -order += "volume master" -order += "cpu_usage 0" -#order += "cpu_temperature 0" -#order += "ipv6" -#order += "run_watch DHCP" -#order += "run_watch VPN" -#order += "wireless wlan0" -#order += "ethernet eth0" -order += "disk /" -order += "battery 0" -#order += "load" -order += "tztime local" - -wireless wlan0 { - format_up = "W: (%quality at %essid, %bitrate) %ip" - format_down = "W: down" -} - -ethernet eth0 { - # if you use %speed, i3status requires root privileges - format_up = "E: %ip" - format_down = "E: down" -} - -battery 0 { - format = "%status %percentage" - last_full_capacity = true - low_threshold = 10 - status_chr = "⚡ CHR" - status_bat = "🔋 BAT" - status_full = "🔋 FULL" -} - -cpu_usage { - format = "💻 CPU %usage" -} - -run_watch DHCP { - pidfile = "/var/run/dhclient*.pid" -} - -run_watch VPN { - pidfile = "/var/run/vpnc/pid" -} - -tztime local { - format = "📅 %A %D ⏰ %H:%M:%S" -} - -load { - format = "%1min" -} - -disk "/" { - format = "💿 %avail" -} - -cpu_temperature 0 { - format ="T:%degrees°C" - max_threshold = 65 - path = "/sys/devices/platform/coretemp.0/hwmon/hwmon0/temp1_input" -} - -volume master { - format = "🎶 %volume" - device = "default" - mixer = "Master" - mixer_idx = 0 -} diff --git a/.config/i3/config b/.config/i3/config deleted file mode 100644 index 22a4cb2..0000000 --- a/.config/i3/config +++ /dev/null @@ -1,219 +0,0 @@ -# This file has been auto-generated by i3-config-wizard(1). -# It will not be overwritten, so edit it as you like. -# -# Should you change your keyboard layout some time, delete -# this file and re-run i3-config-wizard(1). -# - -# i3 config file (v4) -# -# Please see https://i3wm.org/docs/userguide.html for a complete reference! - -set $mod Mod4 - -# Font for window titles. Will also be used by the bar unless a different font -# is used in the bar {} block below. -#font pango:monospace 10 - -# This font is widely installed, provides lots of unicode glyphs, right-to-left -# text rendering and scalability on retina/hidpi displays (thanks to pango). -font pango:DejaVu Sans Mono 10 - -# The combination of xss-lock, nm-applet and pactl is a popular choice, so -# they are included here as an example. Modify as you see fit. - -# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the -# screen before suspend. Use loginctl lock-session to lock your screen. -exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork - -# NetworkManager is the most popular way to manage wireless networks on Linux, -# and nm-applet is a desktop environment-independent system tray GUI for it. -exec --no-startup-id nm-applet - -# Use pactl to adjust volume in PulseAudio. -set $refresh_i3status killall -SIGUSR1 i3status -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status -bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status -bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status - -# Use Mouse+$mod to drag floating windows to their wanted position -floating_modifier $mod - -# start a terminal -bindsym $mod+Return exec konsole - -# kill focused window -bindsym $mod+Shift+q kill - -# start dmenu (a program launcher) -bindsym $mod+d exec --no-startup-id dmenu_run -# A more modern dmenu replacement is rofi: -# bindcode $mod+40 exec "rofi -modi drun,run -show drun" -# There also is i3-dmenu-desktop which only displays applications shipping a -# .desktop file. It is a wrapper around dmenu, so you need that installed. -# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop - -# change focus -bindsym $mod+j focus left -bindsym $mod+k focus down -bindsym $mod+l focus up -bindsym $mod+semicolon focus right - -# alternatively, you can use the cursor keys: -bindsym $mod+Left focus left -bindsym $mod+Down focus down -bindsym $mod+Up focus up -bindsym $mod+Right focus right - -# move focused window -bindsym $mod+Shift+j move left -bindsym $mod+Shift+k move down -bindsym $mod+Shift+l move up -bindsym $mod+Shift+semicolon move right - -# alternatively, you can use the cursor keys: -bindsym $mod+Shift+Left move left -bindsym $mod+Shift+Down move down -bindsym $mod+Shift+Up move up -bindsym $mod+Shift+Right move right - -# split in horizontal orientation -bindsym $mod+h split h - -# split in vertical orientation -bindsym $mod+v split v - -# enter fullscreen mode for the focused container -bindsym $mod+f fullscreen toggle - -# change container layout (stacked, tabbed, toggle split) -bindsym $mod+s layout stacking -bindsym $mod+w layout tabbed -bindsym $mod+e layout toggle split - -# toggle tiling / floating -bindsym $mod+Shift+space floating toggle - -# change focus between tiling / floating windows -bindsym $mod+space focus mode_toggle - -# focus the parent container -bindsym $mod+a focus parent - -# focus the child container -#bindsym $mod+d focus child - -# Define names for default workspaces for which we configure key bindings later on. -# We use variables to avoid repeating the names in multiple places. -set $ws1 "1" -set $ws2 "2" -set $ws3 "3" -set $ws4 "4" -set $ws5 "5" -set $ws6 "6" -set $ws7 "7" -set $ws8 "8" -set $ws9 "9" -set $ws10 "10" - -# switch to workspace -bindsym $mod+1 workspace number $ws1 -bindsym $mod+2 workspace number $ws2 -bindsym $mod+3 workspace number $ws3 -bindsym $mod+4 workspace number $ws4 -bindsym $mod+5 workspace number $ws5 -bindsym $mod+6 workspace number $ws6 -bindsym $mod+7 workspace number $ws7 -bindsym $mod+8 workspace number $ws8 -bindsym $mod+9 workspace number $ws9 -bindsym $mod+0 workspace number $ws10 - -# move focused container to workspace -bindsym $mod+Shift+1 move container to workspace number $ws1 -bindsym $mod+Shift+2 move container to workspace number $ws2 -bindsym $mod+Shift+3 move container to workspace number $ws3 -bindsym $mod+Shift+4 move container to workspace number $ws4 -bindsym $mod+Shift+5 move container to workspace number $ws5 -bindsym $mod+Shift+6 move container to workspace number $ws6 -bindsym $mod+Shift+7 move container to workspace number $ws7 -bindsym $mod+Shift+8 move container to workspace number $ws8 -bindsym $mod+Shift+9 move container to workspace number $ws9 -bindsym $mod+Shift+0 move container to workspace number $ws10 - -# reload the configuration file -bindsym $mod+Shift+c reload -# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) -bindsym $mod+Shift+r restart -# exit i3 (logs you out of your X session) - -set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown -mode "$mode_system" { - bindsym l exec --no-startup-id i3exit lock, mode "default" - bindsym e exec --no-startup-id i3exit logout, mode "default" - bindsym s exec --no-startup-id i3exit suspend, mode "default" - bindsym h exec --no-startup-id i3exit hibernate, mode "default" - bindsym r exec --no-startup-id i3exit reboot, mode "default" - bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default" - - # back to normal: Enter or Escape - bindsym Return mode "default" - bindsym Escape mode "default" -} - -bindsym $mod+Shift+e mode "$mode_system" - -# resize window (you can also use the mouse for that) -mode "resize" { - # These bindings trigger as soon as you enter the resize mode - - # Pressing left will shrink the window’s width. - # Pressing right will grow the window’s width. - # Pressing up will shrink the window’s height. - # Pressing down will grow the window’s height. - bindsym j resize shrink width 10 px or 10 ppt - bindsym k resize grow height 10 px or 10 ppt - bindsym l resize shrink height 10 px or 10 ppt - bindsym semicolon resize grow width 10 px or 10 ppt - - # same bindings, but for the arrow keys - bindsym Left resize shrink width 10 px or 10 ppt - bindsym Down resize grow height 10 px or 10 ppt - bindsym Up resize shrink height 10 px or 10 ppt - bindsym Right resize grow width 10 px or 10 ppt - - # back to normal: Enter or Escape or $mod+r - bindsym Return mode "default" - bindsym Escape mode "default" - bindsym $mod+r mode "default" -} - -bindsym $mod+r mode "resize" - -# Custom -bindsym $mod+Shift+s "exec --no-startup-id maim -s | xclip -selection clipboard -target image/png" -bindsym $mod+Shift+w "exec --no-startup-id brave" -bindsym $mod+Shift+t "exec --no-startup-id deepin-screen-recorder" -bindsym $mod+Shift+p "exec setup-screen.sh" - -for_window [class=".*"] border pixel 3 -gaps outer 0 -gaps inner 4 -smart_gaps on -smart_borders on - -client.focused #FF355E #FF355E #ffffff #2e9ef4 - -# Start i3bar to display a workspace bar (plus the system information i3status -# finds out, if available) -bar { - i3bar_command i3bar --transparency - status_command i3status --config ~/.config/i3/.i3status.conf - position top - separator_symbol "⋆" - colors { - background #101010dd - } -} - -exec --no-startup-id xrandr --output HDMI-A-0 --auto --right-of eDPRR diff --git a/README.md b/README.md index e69de29..e3189b1 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,6 @@ +# Dotfiles + +## Install +```sh +git clone https://git.matthewkosarek.xyz/dotfiles.git/ +``` diff --git a/bashrc b/bashrc new file mode 100644 index 0000000..548ea89 --- /dev/null +++ b/bashrc @@ -0,0 +1,128 @@ +# +# ~/.bashrc +# + +[[ $- != *i* ]] && return + +colors() { + local fgc bgc vals seq0 + + printf "Color escapes are %s\n" '\e[${value};...;${value}m' + printf "Values 30..37 are \e[33mforeground colors\e[m\n" + printf "Values 40..47 are \e[43mbackground colors\e[m\n" + printf "Value 1 gives a \e[1mbold-faced look\e[m\n\n" + + # foreground colors + for fgc in {30..37}; do + # background colors + for bgc in {40..47}; do + fgc=${fgc#37} # white + bgc=${bgc#40} # black + + vals="${fgc:+$fgc;}${bgc}" + vals=${vals%%;} + + seq0="${vals:+\e[${vals}m}" + printf " %-9s" "${seq0:-(default)}" + printf " ${seq0}TEXT\e[m" + printf " \e[${vals:+${vals+$vals;}}1mBOLD\e[m" + done + echo; echo + done +} + +[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion + +# Change the window title of X terminals +case ${TERM} in + xterm*|rxvt*|Eterm*|aterm|kterm|gnome*|interix|konsole*) + PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\007"' + ;; + screen*) + PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\033\\"' + ;; +esac + +use_color=true + +# Set colorful PS1 only on colorful terminals. +# dircolors --print-database uses its own built-in database +# instead of using /etc/DIR_COLORS. Try to use the external file +# first to take advantage of user additions. Use internal bash +# globbing instead of external grep binary. +safe_term=${TERM//[^[:alnum:]]/?} # sanitize TERM +match_lhs="" +[[ -f ~/.dir_colors ]] && match_lhs="${match_lhs}$(<~/.dir_colors)" +[[ -f /etc/DIR_COLORS ]] && match_lhs="${match_lhs}$(/dev/null \ + && match_lhs=$(dircolors --print-database) +[[ $'\n'${match_lhs} == *$'\n'"TERM "${safe_term}* ]] && use_color=true + +PS1="[\[$(tput sgr0)\]\[$(tput bold)\]\[\033[38;5;85m\]\t\[$(tput sgr0)\]] \[$(tput bold)\]\w\[$(tput sgr0)\] \[$(tput sgr0)\]\[$(tput bold)\]\[\033[38;5;226m\]\$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/')\[$(tput sgr0)\] \[$(tput sgr0)\]\[$(tput bold)\]\[\033[38;5;85m\]\\$\[$(tput sgr0)\] \[$(tput sgr0)\]" + +unset use_color safe_term match_lhs sh + +alias cp="cp -i" # confirm before overwriting something +alias df='df -h' # human-readable sizes +alias music="mocp" +alias gti="git" + +xhost +local:root > /dev/null 2>&1 + +complete -cf sudo + +# Bash won't get SIGWINCH if another process is in the foreground. +# Enable checkwinsize so that bash will check the terminal size when +# it regains control. #65623 +# http://cnswww.cns.cwru.edu/~chet/bash/FAQ (E11) +shopt -s checkwinsize + +shopt -s expand_aliases + +# export QT_SELECT=4 + +# Enable history appending instead of overwriting. #139609 +shopt -s histappend + +# +# # ex - archive extractor +# # usage: ex +ex () +{ + if [ -f $1 ] ; then + case $1 in + *.tar.bz2) tar xjf $1 ;; + *.tar.gz) tar xzf $1 ;; + *.bz2) bunzip2 $1 ;; + *.rar) unrar x $1 ;; + *.gz) gunzip $1 ;; + *.tar) tar xf $1 ;; + *.tbz2) tar xjf $1 ;; + *.tgz) tar xzf $1 ;; + *.zip) unzip $1 ;; + *.Z) uncompress $1;; + *.7z) 7z x $1 ;; + *) echo "'$1' cannot be extracted via ex()" ;; + esac + else + echo "'$1' is not a valid file" + fi +} + +export PATH="${PATH}:~/Scripts:~/.local/bin:~/Programs/flutter/bin:~/.pub-cache/bin" + +if [ -f ~/.git-completion.bash ]; then + . ~/.git-completion.bash +fi + +export PYENV_ROOT="$HOME/.pyenv" +command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" +eval "$(pyenv init -)" + +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion + +# emsdk +source "/home/matthew/Programs/emsdk/emsdk_env.sh" 2>/dev/null diff --git a/install.py b/install.py new file mode 100755 index 0000000..ab25e93 --- /dev/null +++ b/install.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python3 + +import shutil +from os.path import expanduser +import os + +project = os.path.dirname(os.path.realpath(__file__)) +home = expanduser("~") + +bashrc_project = os.path.join(project, "bashrc") +bashrc_home = os.path.join(home, ".bashrc") + +print("Copying bashrc...") +shutil.copyfile(bashrc_project, bashrc_home) -- cgit v1.2.1