Commit dfd43da1 authored by Simon May's avatar Simon May
Browse files

Rearrange aliases

parent 5a0aba50
......@@ -9,6 +9,18 @@ alias llr='ls -ahlFrt'
alias cp='cp -i --reflink=auto'
alias mv='mv -i'
# SLURM aliases
alias sq='squeue -o "%.8Q %.8i %16j %7u %2t %.16V %.16S %.8M %.3D %R" -S "-t,-Q,i"'
alias sq-long='squeue -o "%.8Q %.5i %63j %7u %2t %.16V %.16S %.8M %.3D %R" -S "-t,-Q,i"'
alias sq-own='squeue -u "$USER" -o "%.8Q %.8i %25j %2t %.16S %.3D %5P %R" -S "P,-t,i"'
alias sq-own-long='squeue -u "$USER" -o "%.8Q %.8i %35j %2t %.16S %.3D %5P %6R" -S "P,-t,i"'
alias srun-ifreya='srun --immediate --nodes=1 --pty --time=01:00:00'
alias srun-idraco='srun --immediate --nodes=1 --pty --time=00:30:00 --partition express'
alias srun-icobra='srun-idraco'
# alias to archive run output to /r/ in a single tar file
alias archive-run-single-tar='archive_run_dir=~/r/output/$(basename "$PWD"); mkdir -p "$archive_run_dir/" && tar --index-file="$archive_run_dir/data.toc" -cvvf "$archive_run_dir/data.tar" *'
# other aliases
alias tar='tar --backup'
alias gd='git diff --no-index'
......@@ -32,19 +44,6 @@ newest-file() {
realpath -m --relative-base=. "$1"/$(ls -1rt "$1" | nth-last "$num")
}
# SLURM aliases
alias sq='squeue -o "%.8Q %.8i %16j %7u %2t %.16V %.16S %.8M %.3D %R" -S "-t,-Q,i"'
alias sq-long='squeue -o "%.8Q %.5i %63j %7u %2t %.16V %.16S %.8M %.3D %R" -S "-t,-Q,i"'
alias sq-own='squeue -u "$USER" -o "%.8Q %.8i %25j %2t %.16S %.3D %5P %R" -S "P,-t,i"'
alias sq-own-long='squeue -u "$USER" -o "%.8Q %.8i %35j %2t %.16S %.3D %5P %6R" -S "P,-t,i"'
alias srun-ifreya='srun --immediate --nodes=1 --pty --time=01:00:00'
alias srun-idraco='srun --immediate --nodes=1 --pty --time=00:30:00 --partition express'
alias srun-icobra='srun-idraco'
# alias to archive run output to /r/ in a single tar file
alias archive-run-single-tar='archive_run_dir=~/r/output/$(basename "$PWD"); mkdir -p "$archive_run_dir/" && tar --index-file="$archive_run_dir/data.toc" -cvvf "$archive_run_dir/data.tar" *'
# other aliases
make-arepo() {
config="$1"
dir=$(dirname "$config")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment