Git Clone Recursive
or
#git #submodule #recursive
git clone --recursive repo.git
or
git clone repo.git
cd repo
git submodule update --init --recursive
#git #submodule #recursive
🔥1
How to Use Bash Aliases in Make File
/etc/bash.bashrc
Problem:
Solution:
Makefile
/etc/bash.bashrc
...
alias wttr='curl wttr.in/Almaty'
...
Problem:
run:
wttr
romaxa@coder:/var/www$ make
wttr
Command 'wttr' not found, did you mean:
command 'sttr' from snap sttr (0.2.25)
command 'attr' from deb attr (1:2.5.2-1build1.1)
See 'snap info <snapname>' for additional versions.
make: *** [Makefile:2: run] Error 127
Solution:
Makefile
SHELL=/bin/bash --rcfile /etc/bash.bashrc -i
run:
wttr
make
Fix Find Usages Behaviour in WebStorm in Xubuntu / Make Interactive Navigation 4 JS or TS
#js #ts #navigation #webstorm #jetbrains #idea #xubuntu
#js #ts #navigation #webstorm #jetbrains #idea #xubuntu
Bash Increase JSON Field and Overwrite File
#json #increment
jq '.id += 1' file.json > temp.json && mv temp.json file.json
#json #increment
Linux Locale Error
Show locales:
Fix:
#locale
manpath: can't set the locale; make sure $LC_* and $LANG are correct
Show locales:
locale -a
Fix:
sudo locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales
#locale
alias git-exclude-untracked='git ls-files --others --exclude-standard >> .git/info/exclude'
1