-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
97 lines (77 loc) · 2.48 KB
/
Copy pathbashrc
File metadata and controls
97 lines (77 loc) · 2.48 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
[[ -f "/etc/skel/.bashrc" ]] && {
source "/etc/skel/.bashrc"
}
[[ -f "$HOME/bin/docker" ]] && {
export DOCKER_HOST="unix:///run/user/1000/docker.sock"
}
[[ -z "$TMPDIR" ]] && {
export TMPDIR="/tmp"
}
case ":$PATH:" in
*":$HOME/bin:"*) ;;
*) PATH="$HOME/bin:$PATH" ;;
esac
case ":$PATH:" in
*":$HOME/.local/bin:"*) ;;
*) PATH="$HOME/.local/bin:$PATH" ;;
esac
[[ -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"
command -v toolbox >/dev/null 2>&1 && {
latest_ubuntu_toolbox="$(toolbox list --containers 2>/dev/null \
| awk '$2 ~ /^ubuntu-toolbox-/ {print $2}' \
| sort -V \
| tail -n 1)"
[[ -n "$latest_ubuntu_toolbox" ]] && {
alias playwright-cli="toolbox run -c $latest_ubuntu_toolbox playwright-cli"
}
unset latest_ubuntu_toolbox
}
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 EDITOR="/usr/bin/env vim"
export GIT_EDITOR="$EDITOR"
# Migrate legacy Claude Code config. Older setups exported CLAUDE_CONFIG_DIR=~/.claude,
# which placed the main config at ~/.claude/.claude.json. We no longer set that var, so
# Claude Code reads the default ~/.claude.json. Move it there once (idempotent);
# mcpServers are re-populated by `rulesync generate` (mise run setup-agentic-ai).
[[ -z "$CLAUDE_CONFIG_DIR" && -f "$HOME/.claude/.claude.json" ]] &&
command mv "$HOME/.claude/.claude.json" "$HOME/.claude.json"
[[ -f "$HOME/.claude/settings.json" && -f "$HOME/.claude/settings.override.json" ]] &&
command -v jq >/dev/null 2>&1 && {
jq -s '.[0] * .[1]' \
"$HOME/.claude/settings.json" \
"$HOME/.claude/settings.override.json" \
> "$HOME/.claude/settings.json.tmp"
if cmp -s "$HOME/.claude/settings.json" "$HOME/.claude/settings.json.tmp"
then
command rm "$HOME/.claude/settings.json.tmp"
else
command mv "$HOME/.claude/settings.json.tmp" "$HOME/.claude/settings.json"
fi
}
[[ -f "$HOME/.bashrc_override" ]] && {
source "$HOME/.bashrc_override"
}
[[ -f "$HOME/.local/bin/mise" ]] && {
eval "$($HOME/.local/bin/mise activate bash)"
}
# pnpm
export PNPM_HOME="$HOME/.local/share/pnpm"
case ":$PATH:" in
*":$PNPM_HOME/bin:"*) ;;
*) export PATH="$PNPM_HOME/bin:$PATH" ;;
esac
# pnpm end