Results 1 to 4 of 4

Thread: Bash auto completion question

  1. #1

    Default Bash auto completion question

    I installed openSUSE 13.2 in two machines and I always use the nvidia proprietary driver for the video cards.
    I noticed, when I attempted to run the nvidia .run file and hit the TAB key I can only hear the bip sound from the machine and no auto-completion.
    However if I type
    Code:
    /bin/bash sh NVIDIA and hit the tab KEY it works.
    People who do not break things first will never learn to create anything

  2. #2

    Default Re: Bash auto completion question

    Quote Originally Posted by conram View Post
    I installed openSUSE 13.2 in two machines and I always use the nvidia proprietary driver for the video cards.
    I noticed, when I attempted to run the nvidia .run file and hit the TAB key I can only hear the bip sound from the machine and no auto-completion.
    However if I type
    Code:
    /bin/bash sh NVIDIA and hit the tab KEY it works.
    First thing, that script is not bash it is a POSIX sh script. ie the shebang is

    Code:
    #!/bin/sh
    or

    Code:
    #!/usr/bin/env sh
    You can chek it by:

    Code:
    head -n1 myscript
    So either run it with

    Code:
    bash myscript
    or

    Code:
    sh myscript
    However you only need that if the script is not executable.



    Second because the NVIDIA script is not in your PATH tab completion could not find it.
    try this for the completion.

    Code:
    ./NV + <TAB>
    Code:
    ./NVIDIA.run


    provided that script is in the same directory you are in. NOTE the leading ./ before the NVIDIA.run
    "Unfortunately time is always against us" -- [Morpheus]

    .:https://github.com/Jetchisel:.

  3. #3

    Default Re: Bash auto completion question

    Hi thanks for your reply,
    With the previous openSUSE versions, since I started using nvidia cards
    I just run sh NVIDIA and hit TAB in init 3 in the directory where I dump the file and it works.
    People who do not break things first will never learn to create anything

  4. #4

    Default Re: Bash auto completion question

    Not sure what change in the completion part of bash in 13.2
    "Unfortunately time is always against us" -- [Morpheus]

    .:https://github.com/Jetchisel:.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •