-
Notifications
You must be signed in to change notification settings - Fork 0
/
.shell-exports
67 lines (52 loc) · 2.03 KB
/
.shell-exports
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
#!/bin/sh
export EIX_LIMIT_COMPACT=0
export CONAN_V2_MODE=1
export QT_CREATOR_SKIP_PACKAGE_MANAGER_SETUP=0
# workarround for slow file deletion in electron based app's like VSCode (should be fixed in electron 12)
export ELECTRON_TRASH=gio
# ripgrep config file
export RIPGREP_CONFIG_PATH=$HOME/.ripgreprc
# Make vim the default editor.
export EDITOR='vim'
# Enable persistent REPL history for node
export NODE_REPL_HISTORY=~/.node_history
export NODE_REPL_HISTORY_SIZE='32768'
export NODE_REPL_MODE='sloppy'
# Make Python use UTF-8 encoding for output to stdin, stdout, and stderr.
export PYTHONIOENCODING='UTF-8'
# Increase Bash history size
export HISTSIZE='32768'
export HISTFILESIZE="${HISTSIZE}"
# Omit duplicates and commands that begin with a space from history.
export HISTCONTROL='ignoreboth'
# Prefer US English and use UTF-8.
export LANG='en_US.UTF-8'
export LC_ALL='en_US.UTF-8'
# Highlight section titles in manual pages.
export LESS_TERMCAP_md="${yellow}"
# Don’t clear the screen after quitting a manual page.
export MANPAGER='less -X'
# Set proxy on macOS based on system settings
if [ -x "$(command -v scutil)" ]; then
export http_proxy=`scutil --proxy | awk '\
/HTTPEnable/ { enabled = $3; } \
/HTTPProxy/ { server = $3; } \
/HTTPPort/ { port = $3; } \
END { if (enabled == "1") { print "http://" server ":" port; } }'`
export https_proxy="${http_proxy}"
export no_proxy="127.0.0.1,localhost,.lokal,.lan"
fi
# Enable parallel build jobs by default
if [ -x "$(command -v nproc)" ]; then
export CMAKE_BUILD_PARALLEL_LEVEL="$(nproc)"
elif [ "$(uname -s)" = "Darwin" ]; then
export CMAKE_BUILD_PARALLEL_LEVEL="$(sysctl hw.ncpu | awk '{print $2}')"
elif [ "$(uname -s)" = "Linux" ]; then
export CMAKE_BUILD_PARALLEL_LEVEL="$(grep -c ^processor /proc/cpuinfo)"
fi
# if CMAKE_BUILD_PARALLEL_LEVEL exists, is a number and greater than 1
if [ -n "$CMAKE_BUILD_PARALLEL_LEVEL" ] && [ "$CMAKE_BUILD_PARALLEL_LEVEL" -gt 1 ] 2>/dev/null; then
export MAKEFLAGS="-j ${CMAKE_BUILD_PARALLEL_LEVEL}"
else
unset CMAKE_BUILD_PARALLEL_LEVEL
fi