Skip to content

Commit b9388c6

Browse files
committed
Remove checkhome hack
Since grml/grml-live#247 grml/grml-live@61be585 the initial CWD is set by systemd to HOME. The rungetty/autologin workaround can thus go away. Closes: #180
1 parent 4a6b1bc commit b9388c6

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

doc/grmlzshrc.adoc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -667,10 +667,6 @@ Returns true if given command exists either as program, function, alias,
667667
builtin or reserved word. If the option -c is given, only returns true,
668668
if command is a program.
669669

670-
*checkhome()*::
671-
Changes directory to $HOME on first invocation of zsh. This is necessary on
672-
Grml systems with autologin.
673-
674670
*cl()*::
675671
Changes current directory to the one supplied by argument and lists the files
676672
in it, including file names starting with ".".

etc/zsh/zshrc

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -224,16 +224,6 @@ function isutfenv () {
224224
# check for user, if not running as root set $SUDO to sudo
225225
(( EUID != 0 )) && SUDO='sudo' || SUDO=''
226226

227-
# change directory to home on first invocation of zsh
228-
# important for rungetty -> autologin
229-
# Thanks go to Bart Schaefer!
230-
isgrml && function checkhome () {
231-
if [[ -z "$ALREADY_DID_CD_HOME" ]] ; then
232-
export ALREADY_DID_CD_HOME=$HOME
233-
cd
234-
fi
235-
}
236-
237227
# check for zsh v5.1+
238228

239229
if ! [[ ${ZSH_VERSION} == 5.<1->* \
@@ -2654,7 +2644,6 @@ function grmlstuff () {
26542644
}
26552645

26562646
# now run the functions
2657-
isgrml && checkhome
26582647
isgrml && grmlstuff
26592648
grmlcomp
26602649

0 commit comments

Comments
 (0)