Created
October 21, 2022 05:26
-
-
Save KunYi/90724a6bc6d59b5aca4ee9582a4a2a17 to your computer and use it in GitHub Desktop.
my bashrc settings backup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for golang | |
if [ -x /usr/local/go/bin ]; then | |
export PATH=$PATH:/usr/local/go/bin | |
fi | |
# for launch colorful minicom | |
alias minicom='minicom -c on -R utf8' | |
# download cache of yocto | |
if [ -d ~/yocto_cache/download ]; then | |
export DL_DIR=/home/kunyi/yocto_cache/download | |
export BB_ENV_EXTRAWHITE="${BB_ENV_EXTRAWHITE} DL_DIR" | |
fi | |
# share states cache of yocto | |
if [ -d ~/yocto_cache/sstate ]; then | |
export SSTATE_DIR=/home/kunyi/yocto_cache/sstate | |
export BB_ENV_EXTRAWHITE="${BB_ENV_EXTRAWHITE} SSTATE_DIR" | |
fi | |
# for search c/c++ files | |
function cgrep() | |
{ | |
find . -name .repo -prune -o -name .git -prune -o -name out -prune -o -type f \( -name '*.c' -o -name '*.cc' -o -name '*.cpp' -o -name '*.h' -o -name '*.hpp' \) \ | |
-exec grep --color -n "$@" {} + | |
} | |
# for search openembbed recipse | |
function bbgrep() | |
{ | |
find . -name .git -prune -o -name build -prune -o -type f \( -name '*.inc' -o -name '*.bbappend' -o -name '*.bb' \) \ | |
-exec grep --color -n "$@" {} + | |
} | |
export PATH=~/.local/bin:"$PATH" | |
export MEGA_NZ_ACCOUNT= | |
export MEGA_NZ_PASSWORD= | |
# to enabled ccache | |
export CCACHE_DIR="/home/kunyi/.ccache" | |
export CC="ccache gcc" | |
export CXX="ccache g++" | |
export PATH="/usr/lib/ccache:$PATH" | |
# for kas container | |
#export KAS_CONTAINER_ENGINE=podman | |
# setting time format to en_US in bash/terminal | |
export LC_TIME=en_US.UTF-8 | |
# for rust | |
. "$HOME/.cargo/env" | |
# for Deno/JavaScript | |
export DENO_INSTALL=/home/kunyi/.deno | |
export PATH="$DENO_INSTALL/bin:$PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment