-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc
67 lines (50 loc) · 1.33 KB
/
bashrc
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[[ -f "/etc/skel/.bashrc" ]] && {
source "/etc/skel/.bashrc"
}
[[ -f "$HOME/bin/docker" ]] && {
export DOCKER_HOST="unix:///run/user/1000/docker.sock"
}
[[ "$(uname -a)" =~ "microsoft" ]] && {
export DISPLAY="$(cat /etc/resolv.conf | grep "nameserver" | cut -d ' ' -f 2):0.0"
}
[[ -z "$TMPDIR" ]] && {
export TMPDIR="/tmp"
}
[[ ! "$PATH" =~ "$HOME/bin" ]] && {
PATH="$HOME/bin:$PATH"
}
[[ ! "$PATH" =~ "$HOME/.local/bin" ]] && {
PATH="$HOME/.local/bin:$PATH"
}
[[ -d "/usr/games/bin" ]] && {
PATH="/usr/games/bin:$PATH"
}
[[ -d "$HOME/SDK/SailfishOS/bin" ]] && {
PATH="$HOME/SDK/SailfishOS/bin:$PATH"
}
export PATH
alias rm="confirm rm"
alias cp="confirm cp"
alias mv="confirm mv"
alias sfossdk="/srv/mer/sdks/sfossdk/mer-sdk-chroot"
export HISTSIZE=100000
export HISTTIMEFORMAT="%Y/%m/%d %H:%M:%S "
export DEBEMAIL="knokmki612@gmail.com"
export DEBFULLNAME="Kimiaki Kuno"
export RUBY_CONFIGURE_OPTS="--enable-shared"
export DOCKER_BUILDKIT=0
export EDITOR="/usr/bin/env vim"
export GIT_EDITOR="$EDITOR"
[[ -f "$HOME/.bashrc_override" ]] && {
source "$HOME/.bashrc_override"
}
[[ -f "$HOME/.local/bin/mise" ]] && {
eval "$($HOME/.local/bin/mise activate bash)"
}
# pnpm
export PNPM_HOME="/var/home/kimiaki/.local/share/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end