1
0
Fork 0
mirror of https://github.com/hcartiaux/dotfiles.git synced 2024-10-18 09:15:24 +02:00

[bash] bash_oar, shfmt run

This commit is contained in:
Hyacinthe Cartiaux 2018-02-25 13:02:51 +01:00
parent 0a348c1f63
commit 49f4838ba7

View file

@ -9,10 +9,9 @@
# - http://wiki-oar.imag.fr/index.php/Customization_tips
# - http://wiki-oar.imag.fr/index.php/Oarsh_and_bash_completion
if [[ "$SHELL" = "/bin/bash" ]] ; then
if [[ $SHELL == "/bin/bash" ]]; then
# oarsh completion
function _oarsh_complete_()
{
function _oarsh_complete_() {
local word=${COMP_WORDS[COMP_CWORD]}
local list
list=$(uniq "$OAR_NODEFILE" | tr '\n' ' ')
@ -39,4 +38,3 @@ test -n "$INTERACTIVE" && test -n "$OAR_NODE_FILE" && (
echo "[OAR] Your nodes are:"
sort "$OAR_NODE_FILE" | uniq -c | awk '{printf(" %s*%d\n",$2,$1)}END{printf("\n")}' | sed -e 's/,$//'
) || true