init.d bash completion

Pagina: 1
Acties:

  • daft_dutch
  • Registratie: December 2003
  • Laatst online: 02-12-2025

daft_dutch

>.< >.< >.< >.<

Topicstarter
Er staat mij iets bij dat Vroeger. in debian er tab compleation was bij /etc/init.d/ssh
zoals /etc/init.d/ssh res<tab>
naar
/etc/init.d/ssh restart

ik heb de /etc/bash_completion bekeken en er staat wat /etc/init.d meuk in maar doet het niet.
Iemand hier wel eens tegen aangelopen.

Distro Debian Lenny (testing)

>.< >.< >.< >.<


Verwijderd

set -o vi?

  • jurp5
  • Registratie: Februari 2003
  • Laatst online: 30-01 20:52
Dit "probleem" heb ik ook met Ubuntu, in een voorgaande versie was er een hele uitgebreide completion functie, maar nu werkt het niet meer.

set -o vi werkt ook niet

Verwijderd

Je kunt ook invoke-rc.d (standaard onderdeel van Debian en deb based distro's) gebruiken hoef je alleen de service naam op te geven zonder een pad.

Voorbeeld: root@tux:~# invoke-rc.d ssh stop

  • laurencevde
  • Registratie: November 2001
  • Laatst online: 02-10-2025
Dit komt uit ~/.bashrc op ubuntu:
code:
1
2
3
4
5
6
# 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 ]; then
    . /etc/bash_completion
fi

Have a taste of freedom. It is sometimes a bitter pill. To me though, this is the sweetness of the GPL


  • daft_dutch
  • Registratie: December 2003
  • Laatst online: 02-12-2025

daft_dutch

>.< >.< >.< >.<

Topicstarter
laurencevde schreef op donderdag 21 februari 2008 @ 20:32:
Dit komt uit ~/.bashrc op ubuntu:
code:
1
2
3
4
5
6
# 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 ]; then
    . /etc/bash_completion
fi
En? kan jij wel /etc/init.d/ssh res<tab> doen
Of heb je spuit elf gevonden maar weet je niet waar de kraan is.

die invoke-rc.d heb ik nog nooit gebruikt. heeft ook tab compleation cewl.

[ Voor 7% gewijzigd door daft_dutch op 22-02-2008 14:21 ]

>.< >.< >.< >.<


  • laurencevde
  • Registratie: November 2001
  • Laatst online: 02-10-2025
Bij mij op gentoo wel ja :)
Maar dat was bedoeld voor als tab-completion helemaal niet werkte, en dat is dus niet het geval...

Have a taste of freedom. It is sometimes a bitter pill. To me though, this is the sweetness of the GPL

Pagina: 1