From: Andre Ramnitz Date: Mon, 26 Feb 2024 10:27:21 +0000 (+0100) Subject: bash/fish: update config X-Git-Tag: v0.2~210 X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=96f0ff5fa0ebc69c9b722c9900689678c91bc44c;p=dotfiles.git bash/fish: update config --- diff --git a/config/fish/functions/wtemp.fish b/config/fish/functions/wtemp.fish new file mode 100644 index 00000000..f8c08e4f --- /dev/null +++ b/config/fish/functions/wtemp.fish @@ -0,0 +1,4 @@ +function wtemp --wraps=sensors\ \|\ grep\ WaterPostRad\ \|\ cut\ -f2\ -d\'\ \' --wraps=sensors\ \|\ grep\ WaterPostRad\ \|\ cut\ -f2\ -d\'+\' --description alias\ wtemp=sensors\ \|\ grep\ WaterPostRad\ \|\ cut\ -f2\ -d\'+\' + sensors | grep WaterPostRad | cut -f2 -d'+' $argv + +end diff --git a/home/.bash_profile b/home/.bash_profile index 2f14ea32..9f3d4196 100644 --- a/home/.bash_profile +++ b/home/.bash_profile @@ -3,6 +3,7 @@ export VDPAU_DRIVER=radeonsi export EDITOR="kcr edit" export FZF_DEFAULT_OPTS='--multi --layout=reverse --preview-window=down:60%' +export ZSTD_NBTHREADS="0" # This file is sourced by bash for login shells. The following line # runs your .bashrc and is recommended by the bash info pages. @@ -10,8 +11,8 @@ if [[ -f ~/.bashrc ]] ; then . ~/.bashrc fi -# autorun X11 -if test "$DISPLAY" = "" -a "$WAYLAND_DISPLAY" = "" -a "$XDG_VTNR" = 1; then +# autorun display-manager +if { [ -z "$DISPLAY" ] || [ -z "$WAYLAND_DISPLAY" ]; } && [ "$XDG_VTNR" -eq "1" ]; then #startx #dbus-launch --exit-with-session /usr/bin/startplasma-wayland #dbus-launch --exit-with-session Hyprland diff --git a/home/.bashrc b/home/.bashrc index 4b98757f..bd82eb01 100644 --- a/home/.bashrc +++ b/home/.bashrc @@ -27,6 +27,7 @@ alias gst='git status' alias nano='nano -_qpT4 ' alias free='free -h --si' alias lsblk='lsblk -o name,size,partuuid,fstype,mountpoints,label' +alias wtemp='sensors | grep WaterPostRad | cut -f2 -d'+'' alias lf='lfrun' @@ -132,7 +133,8 @@ function parse_git_dirty { fi } -export PS1="┬─[\[\e[33m\]\u\[\e[m\]@\[\e[34m\]\h\[\e[m\]:\w]─[\[\e[37m\]\t\[\e[m\]]\`parse_git_branch\`\n╰─\[\e[31m\]\\$\[\e[m\] " +# export PS1="┬─[\[\e[33m\]\u\[\e[m\]@\[\e[34m\]\h\[\e[m\]:\w]─[\[\e[37m\]\t\[\e[m\]]\`parse_git_branch\`\n╰─\[\e[31m\]\\$\[\e[m\] " +export PS1="\[\033[m\]|\[\033[1;35m\]\t\[\033[m\]|\[\e[1m\]\u\[\e[1;36m\]\[\033[m\]@\[\e[1;36m\]\h\[\033[m\]:\[\e[0m\]\[\e[1;32m\][\W]`parse_git_branch`> \[\e[0m\]" # enable moving between directories without cd shopt -s autocd