Announcement

Collapse
No announcement yet.

Bash Autcompletion Only Halfwork

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Bash Autcompletion Only Halfwork

    So I decided to start from scratch rather then spending more then a day trying to battle kubuntu to take my new video card..on a clean install tab auto completion only work to an extent! For example if I type "sudo apt-g" <tab> it completes the apt-get part for me.If I type "sudo apt-get in" <tab> it completes the word install for me. However, the problem lies in suggesting package names. if I type "sudo apt-get install cal" <tab> it does nothing to suggest Calligra Suite or any Calligra tools. I reinstalled bash autcompletiion. I also uncomented everything related to auto completion in /etc/bash.bashrc

    Code:
    # enable bash completion in interactive shells
    #if ! shopt -oq posix; then
    #  if [ -f /usr/share/bash-completion/bash_completion ]; then
    #    . /usr/share/bash-completion/bash_completion
    #  elif [ -f /etc/bash_completion ]; then
    #    . /etc/bash_completion
    #  fi
    #fi
    What am I missing?
    OS: Kubuntu 12.10/Windows 8
    CPU: Intel Core i7 2600K
    Motherboard: Gigabyte GA-Z77X-UD5H
    Memory: 2x4GB Corsair Dominator
    Graphics Card: MSI R7770
    Monitor: Dell 2208WFP
    Mouse: Mionix NAOS 5000
    PSU: Corsair 520HX
    Case: Thermaltake Mozart TX
    Cooling: Thermalright TRUE Black Ultra-120 eXtreme CPU Heatsink Rev C
    Hard Drives: 1x180 GB Intel 330 SSD - 1xWD 1 TB Caviar Black - 1xWD 2 TB Caviar Green - 2xWD 3 TB Caviar Green

    #2
    what your "missing" is that auto completion dose not work like that ,,, it dose NOT suggest package names .
    it will complete a application or command name and file/directory names .

    VINNY
    i7 4core HT 8MB L3 2.9GHz
    16GB RAM
    Nvidia GTX 860M 4GB RAM 1152 cuda cores

    Comment


      #3
      I am not sure what you mean. For example, my lucid box did not have this out of the box. I installed bash-completion and the functionality I described works fine. On my Ubuntu 12.04 and 12.10 servers I seem to recall this being avaliable right out of the box. I believe it was avaliable out of the box in Kubuntu as well, but I reinstalleed bash-completion on this install and the functionality I dewscribed for package names is not working.Weather it is bash related or not, the fuctionality exists with out a doubt and I am simply trying to figure out what I need to do to get it working again as it is a life saver.
      OS: Kubuntu 12.10/Windows 8
      CPU: Intel Core i7 2600K
      Motherboard: Gigabyte GA-Z77X-UD5H
      Memory: 2x4GB Corsair Dominator
      Graphics Card: MSI R7770
      Monitor: Dell 2208WFP
      Mouse: Mionix NAOS 5000
      PSU: Corsair 520HX
      Case: Thermaltake Mozart TX
      Cooling: Thermalright TRUE Black Ultra-120 eXtreme CPU Heatsink Rev C
      Hard Drives: 1x180 GB Intel 330 SSD - 1xWD 1 TB Caviar Black - 1xWD 2 TB Caviar Green - 2xWD 3 TB Caviar Green

      Comment


        #4
        oops it dose work like that ,,,,,,sweet , but I must hit the tab key twice ,

        VINNY
        i7 4core HT 8MB L3 2.9GHz
        16GB RAM
        Nvidia GTX 860M 4GB RAM 1152 cuda cores

        Comment


          #5
          The single vs double tab behavior is as designed. If there is only one match available when tab is pressed it auto-completes. If there are multiple 'suggestions' based on what was typed before pressing tab, you have to press tab a second time to get a 'list of suggestions'.
          Windows no longer obstructs my view.
          Using Kubuntu Linux since March 23, 2007.
          "It is a capital mistake to theorize before one has data." - Sherlock Holmes

          Comment


            #6
            Yes, I should have clarified the single tba vs double tab but it's nto working regardless.
            OS: Kubuntu 12.10/Windows 8
            CPU: Intel Core i7 2600K
            Motherboard: Gigabyte GA-Z77X-UD5H
            Memory: 2x4GB Corsair Dominator
            Graphics Card: MSI R7770
            Monitor: Dell 2208WFP
            Mouse: Mionix NAOS 5000
            PSU: Corsair 520HX
            Case: Thermaltake Mozart TX
            Cooling: Thermalright TRUE Black Ultra-120 eXtreme CPU Heatsink Rev C
            Hard Drives: 1x180 GB Intel 330 SSD - 1xWD 1 TB Caviar Black - 1xWD 2 TB Caviar Green - 2xWD 3 TB Caviar Green

            Comment


              #7
              For example sudo apt-get install firefox-loc<tab><tab> does nothing.
              OS: Kubuntu 12.10/Windows 8
              CPU: Intel Core i7 2600K
              Motherboard: Gigabyte GA-Z77X-UD5H
              Memory: 2x4GB Corsair Dominator
              Graphics Card: MSI R7770
              Monitor: Dell 2208WFP
              Mouse: Mionix NAOS 5000
              PSU: Corsair 520HX
              Case: Thermaltake Mozart TX
              Cooling: Thermalright TRUE Black Ultra-120 eXtreme CPU Heatsink Rev C
              Hard Drives: 1x180 GB Intel 330 SSD - 1xWD 1 TB Caviar Black - 1xWD 2 TB Caviar Green - 2xWD 3 TB Caviar Green

              Comment


                #8
                Glad I coudl teach you something new Vinny. Always glad to help but that doesn;t happen often here.

                And ps myspell cehck is broken atm so ignroe the horendous typos.
                OS: Kubuntu 12.10/Windows 8
                CPU: Intel Core i7 2600K
                Motherboard: Gigabyte GA-Z77X-UD5H
                Memory: 2x4GB Corsair Dominator
                Graphics Card: MSI R7770
                Monitor: Dell 2208WFP
                Mouse: Mionix NAOS 5000
                PSU: Corsair 520HX
                Case: Thermaltake Mozart TX
                Cooling: Thermalright TRUE Black Ultra-120 eXtreme CPU Heatsink Rev C
                Hard Drives: 1x180 GB Intel 330 SSD - 1xWD 1 TB Caviar Black - 1xWD 2 TB Caviar Green - 2xWD 3 TB Caviar Green

                Comment


                  #9
                  Originally posted by Xplorer4x4 View Post
                  For example sudo apt-get install firefox-loc<tab><tab> does nothing.
                  It does here. First 'tab' produces:
                  Code:
                  paul@tanagra:~$ sudo apt-get install firefox-locale-
                  Second 'tab' produces:
                  Code:
                  paul@tanagra:~$ sudo apt-get install firefox-locale-
                  firefox-locale-af       firefox-locale-eu       firefox-locale-km       firefox-locale-pt
                  firefox-locale-ar       firefox-locale-fa       firefox-locale-kn       firefox-locale-ro
                  firefox-locale-as       firefox-locale-fi       firefox-locale-ko       firefox-locale-ru
                  firefox-locale-ast      firefox-locale-fr       firefox-locale-ku       firefox-locale-si
                  firefox-locale-be       firefox-locale-fy       firefox-locale-lg       firefox-locale-sk
                  firefox-locale-bg       firefox-locale-ga       firefox-locale-lt       firefox-locale-sl
                  firefox-locale-bn       firefox-locale-gd       firefox-locale-lv       firefox-locale-sq
                  firefox-locale-br       firefox-locale-gl       firefox-locale-mai      firefox-locale-sr
                  firefox-locale-bs       firefox-locale-gu       firefox-locale-mk       firefox-locale-sv
                  firefox-locale-ca       firefox-locale-he       firefox-locale-ml       firefox-locale-sw
                  firefox-locale-cs       firefox-locale-hi       firefox-locale-mn       firefox-locale-ta
                  firefox-locale-csb      firefox-locale-hr       firefox-locale-mr       firefox-locale-te
                  firefox-locale-cy       firefox-locale-hu       firefox-locale-nb       firefox-locale-th
                  firefox-locale-da       firefox-locale-hy       firefox-locale-nl       firefox-locale-tr
                  firefox-locale-de       firefox-locale-id       firefox-locale-nn       firefox-locale-uk
                  firefox-locale-el       firefox-locale-is       firefox-locale-nso      firefox-locale-vi
                  firefox-locale-en       firefox-locale-it       firefox-locale-oc       firefox-locale-zh-hans
                  firefox-locale-eo       firefox-locale-ja       firefox-locale-or       firefox-locale-zh-hant
                  firefox-locale-es       firefox-locale-ka       firefox-locale-pa       firefox-locale-zu
                  firefox-locale-et       firefox-locale-kk       firefox-locale-pl       
                  paul@tanagra:~$ sudo apt-get install firefox-locale-
                  Have you updated the package cache? I do it daily.
                  Windows no longer obstructs my view.
                  Using Kubuntu Linux since March 23, 2007.
                  "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                  Comment


                    #10
                    Originally posted by Snowhog View Post
                    It does here.
                    Exactly, thats why I asked what I am missing.

                    Have you updated the package cache? I do it daily.
                    Yep, although I probably should have mentioned that I copied over my entire /etc/apt folder from my back up to save time adding a bunch of PPAs. However I did do the clean since then.
                    OS: Kubuntu 12.10/Windows 8
                    CPU: Intel Core i7 2600K
                    Motherboard: Gigabyte GA-Z77X-UD5H
                    Memory: 2x4GB Corsair Dominator
                    Graphics Card: MSI R7770
                    Monitor: Dell 2208WFP
                    Mouse: Mionix NAOS 5000
                    PSU: Corsair 520HX
                    Case: Thermaltake Mozart TX
                    Cooling: Thermalright TRUE Black Ultra-120 eXtreme CPU Heatsink Rev C
                    Hard Drives: 1x180 GB Intel 330 SSD - 1xWD 1 TB Caviar Black - 1xWD 2 TB Caviar Green - 2xWD 3 TB Caviar Green

                    Comment


                      #11
                      Check your ~/.bashrc file to see if the auto-completion section is enabled:
                      Code:
                      # enable programmable completion features (you don't need to enable
                      # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
                      # sources /etc/bash.bashrc).
                      if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
                          . /etc/bash_completion
                      fi
                      When you are in a console, you are using your user environment, so the ~/.bashrc file is being used.
                      Windows no longer obstructs my view.
                      Using Kubuntu Linux since March 23, 2007.
                      "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                      Comment


                        #12
                        Originally posted by Snowhog View Post
                        Check your ~/.bashrc file to see if the auto-completion section is enabled:
                        Code:
                        # enable programmable completion features ([B]you don't need to enable
                        # this, if it's already enabled in /etc/bash.bashrc[/B] and /etc/profile
                        # sources /etc/bash.bashrc).
                        if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
                            . /etc/bash_completion
                        fi
                        When you are in a console, you are using your user environment, so the ~/.bashrc file is being used.
                        According to the comments in bold it shouldnt matter, but I did check the one in the home folder and autocompletition is enabled.
                        OS: Kubuntu 12.10/Windows 8
                        CPU: Intel Core i7 2600K
                        Motherboard: Gigabyte GA-Z77X-UD5H
                        Memory: 2x4GB Corsair Dominator
                        Graphics Card: MSI R7770
                        Monitor: Dell 2208WFP
                        Mouse: Mionix NAOS 5000
                        PSU: Corsair 520HX
                        Case: Thermaltake Mozart TX
                        Cooling: Thermalright TRUE Black Ultra-120 eXtreme CPU Heatsink Rev C
                        Hard Drives: 1x180 GB Intel 330 SSD - 1xWD 1 TB Caviar Black - 1xWD 2 TB Caviar Green - 2xWD 3 TB Caviar Green

                        Comment


                          #13
                          Do you by chance have Adobe Reader installed? Does the file acroread.sh (a symlink) exist in /etc/bash_completion.d?
                          Windows no longer obstructs my view.
                          Using Kubuntu Linux since March 23, 2007.
                          "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                          Comment


                            #14
                            Negative and Negative. Didn't realize Adobe Reader was available on linux. okular does the job for me.
                            OS: Kubuntu 12.10/Windows 8
                            CPU: Intel Core i7 2600K
                            Motherboard: Gigabyte GA-Z77X-UD5H
                            Memory: 2x4GB Corsair Dominator
                            Graphics Card: MSI R7770
                            Monitor: Dell 2208WFP
                            Mouse: Mionix NAOS 5000
                            PSU: Corsair 520HX
                            Case: Thermaltake Mozart TX
                            Cooling: Thermalright TRUE Black Ultra-120 eXtreme CPU Heatsink Rev C
                            Hard Drives: 1x180 GB Intel 330 SSD - 1xWD 1 TB Caviar Black - 1xWD 2 TB Caviar Green - 2xWD 3 TB Caviar Green

                            Comment


                              #15
                              Are you running Konsole, or an Emacs console??
                              Windows no longer obstructs my view.
                              Using Kubuntu Linux since March 23, 2007.
                              "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                              Comment

                              Working...
                              X