mirror of https://github.com/CrimsonTome/tldr.git
chsh: Fix `chsh -s SHELL` syntax (#7801)
* It's `ch -s SHELL` to change your own shell Fixes #7800 * rephrase Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> * Use -s generically, --shell on Linux Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com>feature/windows-fix-syntax-2
parent
18642d59eb
commit
326cc8a262
|
@ -7,13 +7,13 @@
|
||||||
|
|
||||||
`chsh`
|
`chsh`
|
||||||
|
|
||||||
- Change the current user's login shell:
|
- Change the login shell of the current user:
|
||||||
|
|
||||||
`chsh {{path/to/shell}}`
|
`chsh -s {{path/to/shell}}`
|
||||||
|
|
||||||
- Change the login shell for a given user:
|
- Change the login shell for a given user:
|
||||||
|
|
||||||
`chsh --shell {{path/to/shell}} {{username}}`
|
`chsh -s {{path/to/shell}} {{username}}`
|
||||||
|
|
||||||
- List available shells:
|
- List available shells:
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
# chsh
|
||||||
|
|
||||||
|
> Change the user's login shell.
|
||||||
|
> More information: <https://manned.org/chsh>.
|
||||||
|
|
||||||
|
- Change the current user's login shell interactively:
|
||||||
|
|
||||||
|
`chsh`
|
||||||
|
|
||||||
|
- Change the current user's login shell:
|
||||||
|
|
||||||
|
`chsh --shell {{path/to/shell}}`
|
||||||
|
|
||||||
|
- Change the login shell for a given user:
|
||||||
|
|
||||||
|
`chsh --shell {{path/to/shell}} {{username}}`
|
||||||
|
|
||||||
|
- List available shells:
|
||||||
|
|
||||||
|
`chsh --list-shells`
|
Loading…
Reference in New Issue