Update bashrc
This commit is contained in:
parent
2d259180b3
commit
6ad04f349c
2 changed files with 34 additions and 18 deletions
39
.bashrc
39
.bashrc
|
@ -1,21 +1,29 @@
|
||||||
#################################
|
##################################
|
||||||
## Check for Interactivy Shell ##
|
## Check for Interactivy Shell ##
|
||||||
#################################
|
##################################
|
||||||
case $- in
|
case $- in
|
||||||
*i*) ;;
|
*i*) ;;
|
||||||
*) return;;
|
*) return;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
#################################
|
##################################
|
||||||
## Toolbx ##
|
## OSTree System ##
|
||||||
#################################
|
##################################
|
||||||
if [ -f "/run/.containerenv" ]; then
|
if mount | grep -q 'ostree'; then
|
||||||
HOME="/var/home/$(whoami)"
|
export HOME="/var/home/$(whoami)"
|
||||||
|
is_ostree=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#################################
|
##################################
|
||||||
|
## Toolbox ##
|
||||||
|
##################################
|
||||||
|
if [[ -e "/run/.toolboxenv" ]]; then
|
||||||
|
export TOOLBX_NAME=$(grep '^name=' /run/.containerenv | cut -d '=' -f 2 | tr -d '"')
|
||||||
|
fi
|
||||||
|
|
||||||
|
##################################
|
||||||
## Oh My Bash ##
|
## Oh My Bash ##
|
||||||
#################################
|
##################################
|
||||||
export OSH="$HOME/.config/oh-my-bash"
|
export OSH="$HOME/.config/oh-my-bash"
|
||||||
OSH_CUSTOM="$HOME/.config/oh-my-bash-custom"
|
OSH_CUSTOM="$HOME/.config/oh-my-bash-custom"
|
||||||
OSH_THEME="agnoster-modded"
|
OSH_THEME="agnoster-modded"
|
||||||
|
@ -39,9 +47,9 @@ plugins=(
|
||||||
)
|
)
|
||||||
source "$OSH"/oh-my-bash.sh
|
source "$OSH"/oh-my-bash.sh
|
||||||
|
|
||||||
#################################
|
##################################
|
||||||
## Application Envs ##
|
## Application Envs ##
|
||||||
#################################
|
##################################
|
||||||
export PATH=$PATH:"$HOME/.local/bin"
|
export PATH=$PATH:"$HOME/.local/bin"
|
||||||
|
|
||||||
# NPM
|
# NPM
|
||||||
|
@ -54,7 +62,9 @@ export VOLTA_HOME="$HOME/.local/share/volta"
|
||||||
export PATH="$VOLTA_HOME/bin:$PATH"
|
export PATH="$VOLTA_HOME/bin:$PATH"
|
||||||
|
|
||||||
# Podman as Docker on Immutable Distros
|
# Podman as Docker on Immutable Distros
|
||||||
export DOCKER_HOST=unix:///run/user/1000/podman/podman.sock
|
if [[ -n "$is_ostree" ]]; then
|
||||||
|
export DOCKER_HOST=unix:///run/user/1000/podman/podman.sock
|
||||||
|
fi
|
||||||
|
|
||||||
# Go
|
# Go
|
||||||
export GOPATH=~/.local/share/go
|
export GOPATH=~/.local/share/go
|
||||||
|
@ -66,9 +76,9 @@ export HSA_OVERRIDE_GFX_VERSION=10.3.0 # RX 6650 XT
|
||||||
# Just
|
# Just
|
||||||
export JUST_UNSTABLE=1
|
export JUST_UNSTABLE=1
|
||||||
|
|
||||||
#################################
|
##################################
|
||||||
## Aliases ##
|
## Aliases ##
|
||||||
#################################
|
##################################
|
||||||
|
|
||||||
alias nvim-conf="nvim ~/.config/nvim"
|
alias nvim-conf="nvim ~/.config/nvim"
|
||||||
alias bash-conf="nvim #/.bashrc"
|
alias bash-conf="nvim #/.bashrc"
|
||||||
|
@ -76,3 +86,4 @@ alias todo="nvim ~/Documents/Notes/Todo.md"
|
||||||
|
|
||||||
alias nano="nvim"
|
alias nano="nvim"
|
||||||
alias neofetch="fastfetch"
|
alias neofetch="fastfetch"
|
||||||
|
|
||||||
|
|
5
.profile
5
.profile
|
@ -1,3 +1,8 @@
|
||||||
# Volta
|
# Volta
|
||||||
export VOLTA_HOME="$HOME/.local/share/volta"
|
export VOLTA_HOME="$HOME/.local/share/volta"
|
||||||
export PATH="$VOLTA_HOME/bin:$PATH"
|
export PATH="$VOLTA_HOME/bin:$PATH"
|
||||||
|
|
||||||
|
|
||||||
|
# Jetbrains Toolbox
|
||||||
|
export PATH="$PATH:/home/snoweuph/.local/share/JetBrains/Toolbox/scripts"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue