From ec27acebe85fe696829c7df07014676d7470c8e4 Mon Sep 17 00:00:00 2001 From: philw Date: Fri, 16 Aug 2024 15:50:41 +0200 Subject: Update dots --- shell/bash/.bash_profile | 2 ++ shell/bash/.bashrc | 43 +++++++++++++++---------------------------- 2 files changed, 17 insertions(+), 28 deletions(-) (limited to 'shell/bash') diff --git a/shell/bash/.bash_profile b/shell/bash/.bash_profile index aeac56a..f702739 100644 --- a/shell/bash/.bash_profile +++ b/shell/bash/.bash_profile @@ -4,3 +4,5 @@ [[ -f ~/.bashrc ]] && . ~/.bashrc . "$HOME/.cargo/env" + +echo 75 > /sys/class/backlight/intel_backlight/brightness diff --git a/shell/bash/.bashrc b/shell/bash/.bashrc index b921287..8da3835 100644 --- a/shell/bash/.bashrc +++ b/shell/bash/.bashrc @@ -1,4 +1,3 @@ - parse_git_branch() { local branch="" branch=$(git branch 2> /dev/null | sed -n '/^[^*]/d;s/* \(.*\)/\1/p') @@ -11,14 +10,18 @@ parse_git_branch() { echo "$branch" } + update_prompt() { PS1="\[\e[31m\][\[\e[33m\]\u\[\e[32m\]@\[\e[34m\]\h \[\e[35m\]\w\[\e[31m\]]\[\e[35m\] \[\e[33m\]\$(parse_git_branch)\[\e[34m\]# \[\e[0m\]" } PROMPT_COMMAND="update_prompt" - -eval "$(zoxide init bash)" +if [ -z "$XDG_RUNTIME_DIR" ]; then + XDG_RUNTIME_DIR="/tmp/$(id -u)-runtime-dir" + mkdir -pm 0700 "$XDG_RUNTIME_DIR" + export XDG_RUNTIME_DIR +fi export XDG_DATA_HOME="$HOME"/.local/share export XDG_CONFIG_HOME="$HOME"/.config @@ -40,6 +43,7 @@ export ANDROID_HOME=$HOME/Android/sdk export PATH=$PATH:$ANDROID_HOME/emulator export PATH=$PATH:$ANDROID_HOME/platform-tools export AWT_TOOLKIT=MToolkit +export _JAVA_AWT_WM_NONREPARENTING=1 export JAVA_HOME=/usr/lib/jvm/java-21-openjdk export GEM="/home/fw/.local/share/gem/ruby/3.0.0/bin" @@ -47,31 +51,22 @@ alias acl="arduino-cli" alias acl="arduino-cli compile" alias aclbl="arduino-cli board list" -alias ls="eza -l --icons --color=always" -alias l="eza -l --icons --color=always" -alias ls="eza -l --icons --color=always" -alias la="eza -la --icons --color=always" -alias ll="eza -l --color=always --group-directories-first" -alias lt="eza -T --color=always --group-directories-first" +alias get_idf='. $HOME/esp/esp-idf/export.sh' + +alias l='ls -la --color=auto' +alias la='ls -la --color=auto' +alias ls='ls --color=auto' +alias ..='cd ..' + alias v="nvim" alias c="clear" -alias e="exit" alias j="joshuto" -alias g="grep" -alias g="rg" alias zl="zellij" alias h="htop" alias n="neofetch" alias poweroff="doas /usr/bin/poweroff" alias reboot="doas /usr/bin/reboot" -alias latexmk="latex-mk" - -alias orphans="doas pacman -Rcns $(pacman -Qqdt)" - -alias pf="prettier --write ." - - alias gts="git status" alias gta="git add ." alias gtc="git commit -m" @@ -86,17 +81,9 @@ if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then # exec dbus-run-session run_something &> /dev/null fi -case ":$PATH:" in - *":$GEM:"*) ;; - *) export PATH="$GEM:$PATH" ;; -esac - - # If not running interactively, don't do anything [[ $- != *i* ]] && return -. "$HOME/.cargo/env" -# export PATH=$PATH:$(xdg-user-dir USER)/.local/bin -# export PATH=$PATH:$(xdg-user-dir USER)/.local/bin export GPG_TTY=$(tty) +export PATH=$PATH:$HOME/.local/bin -- cgit v1.2.3