-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser.bash
More file actions
28 lines (21 loc) · 900 Bytes
/
user.bash
File metadata and controls
28 lines (21 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
export PS1="\n[\e[1;31m\]\u\[\e[m\]@\[\e[0;32m\]\h\[\e[m\] \[\e[0;33m\]\t\[\e[m\] \[\e[0;34m\]\w\[\e[m\]]\n$ "
export EDITOR=nano
export PATH=$HOME/shell_configs/bin:$HOME/local/bin:$HOME/.local/bin:$PATH
promptFunc()
{
echo "$(date +%Y-%m-%d--%H-%M-%S) $(hostname) $PWD $(history 1)" >> ~/.full_history
}
PROMPT_COMMAND=promptFunc
alias hist="cat ~/.full_history"
# Custom aliases
alias ls="ls --color=auto --group-directories-first"
alias ll="ls -l"
alias grep="grep --color=auto"
alias python=python3
alias pip="python -m pip"
alias R="R --no-save --no-restore-data --no-restore"
# Slurm formatting
alias squeue="squeue --format='%8F %10K %12P %3v %25j %4T %.7M %.4C %.5y %.6Q %R' --user=$USER"
alias sinfo="sinfo --format='%9P %.5a %.10l %.5D %.4c %7t %N'"
export SACCT_FORMAT="jobid%-20,jobname%-20,ncpus%3,elapsed,state,exitcode,start,nodelist%5"
alias supdate="scontrol update job"