Skip to content

Instantly share code, notes, and snippets.

View masterdesky's full-sized avatar
🦝
<- This is a raccoon, yes

Pál Balázs masterdesky

🦝
<- This is a raccoon, yes
View GitHub Profile
@masterdesky
masterdesky / .zshrc
Last active March 21, 2021 15:27
Source enviromental config of Geant4 from Z shell
# Geant4 doesn't support zsh/ksh/etc. non-bash shells to source
# its enviromental configuration script in the "normal" bash-like way.
# Instead we have to change to Geant4's bin diretory and source the
# appropriate `geant4.sh` script from there.
# Suppose we installed Geant4 under the `${GEANT4_INSTALL}` directory
if [ -f ${GEANT4_INSTALL}/bin/geant4.sh ];
then
cd ${GEANT4_INSTALL}/bin
source geant4.sh
@masterdesky
masterdesky / github.bat
Last active October 13, 2021 17:31
CD to GitHub directory or create one if it isn't exists on Windows
@echo off
set /p github-dir=%GITHUB_DIR_LOCATION%
if not exist %github-dir% (
echo "GitHub folder is missing! Creating..."
mkdir "%github-dir%" 2>nul
)
cd "%github-dir%"
echo "Changed to GitHub directory"