-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_bashrc
More file actions
53 lines (41 loc) · 1.47 KB
/
Copy pathdot_bashrc
File metadata and controls
53 lines (41 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# ~/.bashrc: executed by bash(1) for non-login shells
# Name: Feike Li 2023
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# Source environment variables
[ -f "$HOME/.env" ] && . "$HOME/.env"
# Shell options
shopt -s checkwinsize
# Make less more friendly for non-text input files
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# Set variable identifying the chroot you work in
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# Set custom prompt (simple version)
PS1='\[\033[01;33m\]\w\[\033[00m\] > '
# Source alias files
[ -f "$HOME/.aliases" ] && . "$HOME/.aliases"
[ -f "$HOME/.bash_aliases" ] && . "$HOME/.bash_aliases"
# Enable programmable completion
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
# Cursor speed (X11)
command -v xset >/dev/null 2>&1 && xset r rate 250 40
# Auto-attach to tmux session
if command -v tmux &>/dev/null && [ -z "$TMUX" ]; then
tmux attach \; select-pane -t 0 2>/dev/null || tmux new-session
fi
export PATH=$PATH:$HOME/.local/bin
# pnpm
export PNPM_HOME="/home/feeco/.local/share/pnpm"
case ":$PATH:" in
*":$PNPM_HOME/bin:"*) ;;
*) export PATH="$PNPM_HOME/bin:$PATH" ;;
esac
# pnpm end
# Android SDK
export ANDROID_HOME="$HOME/Android/Sdk"
export JAVA_HOME="/usr/lib/jvm/java-21-openjdk-amd64"
export PATH="$PATH:$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/platform-tools:$ANDROID_HOME/emulator"