From 1e5504b61427853ee432233432c66ac102534470 Mon Sep 17 00:00:00 2001 From: Pinghao Wu Date: Fri, 29 Nov 2024 19:01:45 +0800 Subject: [PATCH] bash: cleanup --- .bash_profile | 3 --- .bashrc | 12 +----------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/.bash_profile b/.bash_profile index c57d0d6..b6f2a9e 100644 --- a/.bash_profile +++ b/.bash_profile @@ -21,7 +21,6 @@ export VIMINIT=":source $XDG_CONFIG_HOME/vim/vimrc" export VIMPAGER_RC="$XDG_CONFIG_HOME/vim/vimrc" export SCREENRC="$XDG_CONFIG_HOME/screen/screenrc" export GRADLE_USER_HOME="$XDG_CACHE_HOME/gradle" -export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc" export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=$XDG_CACHE_HOME/java $_JAVA_OPTIONS" export CARGO_HOME="$XDG_DATA_HOME/cargo" @@ -34,7 +33,6 @@ export SQLITE_HISTORY="$XDG_CACHE_HOME/sqlite_history" export MYSQL_HISTFILE="$XDG_CACHE_HOME/mysql_history" export NODE_REPL_HISTORY="$XDG_CACHE_HOME/node_repl_history" export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc" -export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass export ABDUCO_SOCKET_DIR="$XDG_DATA_HOME" # go phone home stuff @@ -66,7 +64,6 @@ if [ "${OSTYPE%%-*}" = "linux" ]; then export SDL_VIDEODRIVER=wayland export QT_WAYLAND_DISABLE_WINDOWDECORATION=1 export GTK_IM_MODULE=wayland - export QT_IM_MODULE=fcitx export GTK_THEME=Arc-Darker fi diff --git a/.bashrc b/.bashrc index e3d2f57..4a87602 100644 --- a/.bashrc +++ b/.bashrc @@ -48,17 +48,7 @@ fi command -v nvim >/dev/null && alias vim=nvim alias sway="env LC_ALL=zh_TW.utf8 XDG_CURRENT_DESKTOP=sway sway" alias mcshl="env ALSOFT_DRIVERS=alsa $_GCOMPAT_PRELOAD _JAVA_OPTIONS=\"-Dawt.useSystemAAFontSettings=lcd -Xmn512m -Xms2G -Xmx2G -XX:+UseTransparentHugePages -XX:MaxGCPauseMillis=50 -XX:+UseZGC $_JAVA_OPTIONS\" mcshl" -alias tstoggle="swaymsg input 1267:9454:ELAN24EE:00_04F3:24EE events toggle" -alias makepkgsh="podman run -itu builder -w /home/builder -v .:/home/builder -v /var/cache/pacman/pkg:/var/cache/pacman/pkg --userns keep-id registry.xdavidwu.link/ci-modulize/archlinux-docker-ci/base-devel sh" -if [ -f /usr/bin/composer.phar ]; then - alias composer81="php81 /usr/bin/composer.phar" - alias composer82="php82 /usr/bin/composer.phar" - alias composer="php83 /usr/bin/composer.phar" -fi -alias artisan81="php81 artisan" -alias artisan82="php82 artisan" -alias artisan="php83 artisan" alias dl="curl -OJLR --compressed" alias errno="grep -h '^#define[[:space:]]*E' /usr/include/asm-generic/errno* | sed 's|^#define[[:space:]]*||'" alias signal="grep -h '^#define SIG' /usr/include/asm/signal.h | sed 's|^#define ||'" @@ -151,5 +141,5 @@ _completion_loader sudo 2>/dev/null [ $? -eq 124 ] && complete -F _comp_cmd_sudo doas _completion_loader symfony-autocomplete 2>/dev/null -[ $? -eq 124 ] && complete -F _symfony artisan artisan81 composer composer81 +[ $? -eq 124 ] && complete -F _symfony artisan composer true -- 2.45.2