-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.custom_env.sample
63 lines (50 loc) · 1.68 KB
/
.custom_env.sample
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
# .custom_env.sample
#
# last update: 2024.11.19.
# for macOS only
if [[ $OSTYPE == darwin* ]]; then
# $ brew install coreutils
alias ls='gls --color=auto'
#export EDITOR="~/.asdf/shims/nvim"
export EDITOR="/opt/homebrew/bin/nvim"
export SVN_EDITOR=$EDITOR
alias vi=$EDITOR
alias vim=$EDITOR
# for kitty
alias icat="kitty +kitten icat"
elif [ -z "$TERMUX_VERSION" ]; then # linux
# $ logtoday some-systemd-service.service
alias logtoday="journalctl --no-pager --since 'today' -u"
else # termux
# read guides in bin/termux/README.md
alias pdr="proot-distro login ubuntu"
alias pdu="proot-distro login ubuntu --user USERNAME"
fi
# launch a simple http server
alias httpserver="ruby -run -e httpd . -p 8888"
# for janet
alias janetnrepl="janet -e \"(import spork/netrepl) (netrepl/server)\""
# print go version of a compiled binary
gobuildversion() {
if [ -e "$1" ]; then
gdb "$1" -ex "print 'runtime.buildVersion'" -ex quit 2> /dev/null | tail -n 1 | grep -o '".*"' | tr -d '"'
else
echo "Go binary '$1' does not exist."
fi
}
# private go modules
# (https://pkg.go.dev/cmd/go@master#hdr-Configuration_for_downloading_non_public_code)
export GOPRIVATE=github.com/meinside
# docker cli options
export DOCKER_CLI_EXPERIMENTAL=enabled
# for luarocks packages (use `luarocks path`)
if [ -x "$(which luarocks)" ]; then
eval "$(luarocks path)"
fi
# [termux] sshd service aliases for proot-distro
alias sshd-start="sudo service ssh start"
alias sshd-stop="sudo service ssh stop"
# [termux] useful paths
export TERMUX_HOME="/data/data/com.termux/files/home"
# Raspberry Pi Pico SDK
export PICO_SDK_PATH=/home/ubuntu/srcs/pico/pico-sdk