mirror of
https://github.com/HerrCraziDev/dotfiles.git
synced 2026-04-20 14:34:21 +02:00
cleaning in .termrc, chkinst node
This commit is contained in:
14
.termrc
14
.termrc
@@ -17,11 +17,6 @@ else
|
|||||||
HRNX_TMUX_SESSIONNAME="main"
|
HRNX_TMUX_SESSIONNAME="main"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Fix linker errors with gtk3 -- removed since I nuked gtk-nocsd
|
|
||||||
#export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0
|
|
||||||
|
|
||||||
echo -e '\e[34m [termrc] Config reloaded\e[0m'
|
|
||||||
|
|
||||||
# Check if program is installed
|
# Check if program is installed
|
||||||
function chkinst {
|
function chkinst {
|
||||||
command -v $1 &>/dev/null
|
command -v $1 &>/dev/null
|
||||||
@@ -34,7 +29,7 @@ chkinst rust && export PATH=$PATH:$HOME/.cargo/bin
|
|||||||
chkinst snap && export PATH=$PATH:/snap/bin
|
chkinst snap && export PATH=$PATH:/snap/bin
|
||||||
|
|
||||||
# Add node global modules to PATH
|
# Add node global modules to PATH
|
||||||
if nodepath=$(npm root -g); then
|
if chkinst node && chkinst npm && nodepath=$(npm root -g); then
|
||||||
export PATH=$PATH:$nodepath
|
export PATH=$PATH:$nodepath
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -52,9 +47,6 @@ alias ls='ls --color=auto'
|
|||||||
# Decompress raw zlib files (.dat)
|
# Decompress raw zlib files (.dat)
|
||||||
zlibd() (printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" | cat - "$@" | gzip -dc)
|
zlibd() (printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" | cat - "$@" | gzip -dc)
|
||||||
|
|
||||||
# Kilroy was here ! #2
|
|
||||||
export _KILROY_WAS_HERE=2
|
|
||||||
|
|
||||||
# Make scripts executable in a dir
|
# Make scripts executable in a dir
|
||||||
fixsh () {
|
fixsh () {
|
||||||
if [ -d $1 ] ; then
|
if [ -d $1 ] ; then
|
||||||
@@ -71,6 +63,10 @@ fixsh () {
|
|||||||
fixsh $HOME/sh
|
fixsh $HOME/sh
|
||||||
fixsh $HOME/bin
|
fixsh $HOME/bin
|
||||||
|
|
||||||
|
# Kilroy was here ! #2
|
||||||
|
export _KILROY_WAS_HERE=2
|
||||||
|
echo -e '\e[34m [termrc] Config reloaded\e[0m'
|
||||||
|
|
||||||
|
|
||||||
# Run WSL-specific inits
|
# Run WSL-specific inits
|
||||||
if [ -n "$WSLENV" ] ; then
|
if [ -n "$WSLENV" ] ; then
|
||||||
|
|||||||
Reference in New Issue
Block a user