-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc
47 lines (37 loc) · 1.24 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
#!/bin/bash
nekoactivate() {
if [ -n "$NEKOACTIVATED" ]; then
echo "neko already activated" >&2
return 1
fi
if [ -z "$NEKONAME" ]; then
echo '$NEKONAME not set' >&2
return 1
fi
export PATH="$HOME/.local/bin/:$PATH"
export MANPATH="$HOME/.local/share/man:$MANPATH";
export INFOPATH="$HOME/.local/share/info:$INFOPATH";
export LIBRARY_PATH="$HOME/.local/lib/:$LIBRARY_PATH"
export LD_LIBRARY_PATH="$HOME/.local/lib/:$LD_LIBRARY_PATH"
export C_INCLUDE_PATH="$HOME/.local/include/ncurses/:$HOME/.local/include/:$C_INCLUDE_PATH"
export HOME="$HOME/$NEKONAME"
mkdir -p "$HOME"
export PATH="$HOME/.local/bin/:$PATH"
export MANPATH="$HOME/.local/share/man:$MANPATH";
export INFOPATH="$HOME/.local/share/info:$INFOPATH";
export LIBRARY_PATH="$HOME/.local/lib/:$LIBRARY_PATH"
export LD_LIBRARY_PATH="$HOME/.local/lib/:$LD_LIBRARY_PATH"
export C_INCLUDE_PATH="$HOME/.local/include/ncurses/:$HOME/.local/include/:$C_INCLUDE_PATH"
mkdir -p ~/.local/tmux
export TMUX_TMPDIR="$HOME/.local/tmux"
export NEKOACTIVATED=1
return 0
}
nekocharm() {
nekoactivate || return 1
cd ~ || true
exec bash
}
if [ -n "$NEKONAME" ]; then
nekocharm
fi