From 4e6ac3dfc662f67efdd37b78ea445ed2282509d5 Mon Sep 17 00:00:00 2001 From: Daniil Tsivinsky Date: Sat, 26 Oct 2024 16:39:58 +0300 Subject: [PATCH] move bash files to .config dir --- config/.bash_profile | 18 ------------ config/.bashrc | 50 -------------------------------- config/.config/bash/profile.bash | 6 ++++ config/.config/bash/rc.bash | 32 ++++++++++++++++++++ 4 files changed, 38 insertions(+), 68 deletions(-) delete mode 100644 config/.bash_profile delete mode 100644 config/.bashrc create mode 100644 config/.config/bash/profile.bash create mode 100644 config/.config/bash/rc.bash diff --git a/config/.bash_profile b/config/.bash_profile deleted file mode 100644 index e6a58a8..0000000 --- a/config/.bash_profile +++ /dev/null @@ -1,18 +0,0 @@ -# -# ~/.bash_profile -# - -[[ -f ~/.bashrc ]] && . ~/.bashrc - -export QT_QPA_PLATFORM="wayland" -export QT_QPA_PLATFORMTHEME=qt5ct -export QT_WAYLAND_DISABLE_WINDOWDECORATION="1" - -export XDG_CURRENT_DESKTOP=sway - -export MOZ_ENABLE_WAYLAND=1 - -export _JAVA_AWT_WM_NONREPARENTING=1 - -export VDPAU_DRIVER=radeonsi -export LIBVA_DRIVER_NAME=radeonsi diff --git a/config/.bashrc b/config/.bashrc deleted file mode 100644 index 01505f4..0000000 --- a/config/.bashrc +++ /dev/null @@ -1,50 +0,0 @@ -# If not running interactively, don't do anything -[[ $- != *i* ]] && return - -if [ -f /usr/share/git/git-prompt.sh ]; then - source /usr/share/git/git-prompt.sh -fi - -export EDITOR=nvim -export VISUAL=nvim - -export DOTFILES="$HOME/dotfiles" - -export HISTSIZE=10000 - -# Go ENVs -export GO111MODULE=auto -export GOBIN="$HOME/go/bin" - -MY_BIN="$DOTFILES/bin" -RUST_BIN="$HOME/.cargo/bin" -PYTHON_BIN="$HOME/.local/bin" -ANDROID_BIN="$ANDROID_SDK_ROOT/emulator:$ANDROID_SDK_ROOT/platform-tools" -BUN_INSTALL="$HOME/.bun" -BUN_BIN="$BUN_INSTALL/bin" - -export PATH="$PATH:$MY_BIN:$PYTHON_BIN:$RUST_BIN:$GOBIN:$ANDROID_BIN:$BUN_BIN" - -source $HOME/.config/bash-completions/* -source $HOME/.config/bash/aliases.bash - -shopt -s autocd - -_GREEN="\[\033[32m\]" -_BLUE="\[\033[34m\]" -_RED="\[\033[31m\]" -_BOLD="\[\033[1m\]" -_RESET="\[\033[0m\]" -PS1=$_BLUE$_BOLD'\w'$_RESET$_RED$_BOLD'$(__git_ps1 " [%s]")'$_RESET' \$ ' - -# BEGIN_KITTY_SHELL_INTEGRATION -if test -n "$KITTY_INSTALLATION_DIR" -a -e "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; then source "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; fi -# END_KITTY_SHELL_INTEGRATION - -export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_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 - -TZ=:/etc/localtime - -export FONTCONFIG_PATH=/etc/fonts diff --git a/config/.config/bash/profile.bash b/config/.config/bash/profile.bash new file mode 100644 index 0000000..2d7c03c --- /dev/null +++ b/config/.config/bash/profile.bash @@ -0,0 +1,6 @@ +export MOZ_ENABLE_WAYLAND=1 + +export _JAVA_AWT_WM_NONREPARENTING=1 + +export VDPAU_DRIVER=radeonsi +export LIBVA_DRIVER_NAME=radeonsi diff --git a/config/.config/bash/rc.bash b/config/.config/bash/rc.bash new file mode 100644 index 0000000..dfb0ba3 --- /dev/null +++ b/config/.config/bash/rc.bash @@ -0,0 +1,32 @@ +if [ -f /usr/share/git/git-prompt.sh ]; then + source /usr/share/git/git-prompt.sh +fi + +export EDITOR=nvim +export VISUAL=nvim + +export DOTFILES="$HOME/dotfiles" + +export HISTSIZE=10000 + +# Go ENVs +export GO111MODULE=auto +export GOBIN="$HOME/go/bin" + +MY_BIN="$DOTFILES/bin" +RUST_BIN="$HOME/.cargo/bin" +PYTHON_BIN="$HOME/.local/bin" + +export PATH="$PATH:$MY_BIN:$PYTHON_BIN:$RUST_BIN:$GOBIN" + +source $HOME/.config/bash-completions/* +source $HOME/.config/bash/aliases.bash + +shopt -s autocd + +_GREEN="\[\033[32m\]" +_BLUE="\[\033[34m\]" +_RED="\[\033[31m\]" +_BOLD="\[\033[1m\]" +_RESET="\[\033[0m\]" +PS1=$_BLUE$_BOLD'\w'$_RESET$_RED$_BOLD'$(__git_ps1 " [%s]")'$_RESET' \$ '