small shell funcs
This commit is contained in:
parent
0d71b8c365
commit
5d5b94e6f3
1 changed files with 11 additions and 0 deletions
11
.zshrc
11
.zshrc
|
@ -86,6 +86,17 @@ function condac() {
|
|||
conda activate $@
|
||||
export HOST=$(hostname)
|
||||
}
|
||||
function k()
|
||||
{
|
||||
echo -n "$(( $@ ))"
|
||||
}
|
||||
function rscript ()
|
||||
{
|
||||
TDIR=$(mktemp -d)
|
||||
rustc -v -C lto -C opt-level=3 $1 -o $TDIR/rscript_executable
|
||||
$TDIR/rscript_executable ${@:2}
|
||||
rm -rf $TDIR
|
||||
}
|
||||
# Call Python and execute multiple statements from args
|
||||
function py() {
|
||||
python <<< "
|
||||
|
|
Loading…
Add table
Reference in a new issue