|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
st not seeing aliases
Not sure if I messed up something along the way, but...
I've installed st-0.8.3 thru pkg_add -u. Now anytime I try to use one of my aliases (cls=clear for example): Quote:
But if I do Quote:
Last edited by stanl; 25th May 2020 at 10:06 PM. Reason: Additiona details |
|
||||
I've never used st. But I found this https://wiki.archlinux.org/index.php/St#Shell which states the default shell is /bin/sh, and explains how to change this. I assume you can set this to /bin/ksh, and perhaps add -l.
|
|
|||
No good. I downloaded st from suckless.org and tried both options in the Arch wiki:
Quote:
I'm open to suggestions. Thanks |
|
||||
I will guess that this is not an OpenBSD-specific problem, so would recommend the dev@ mailing list mentioned in https://suckless.org/community/, it seems to be the method for end-user support upstream. There is an archive, but it isn't very searchable.
|
|
||||
You can search from Google with "site:lists.suckless.org" and from there I found this, which might help.
https://lists.suckless.org/hackers/1611/13652.html |
|
|||
st -e /bin/ksh -l seems to work.
Thank you |
|
||||
Quote:
I don't think you should run ksh as a login shell if you're using it interactively, job control will be disabled. To set the interactive shell in st try exporting it as a variable: Code:
export SHELL=/bin/ksh If that doesn't work then replace -l with -i.
__________________
Are you infected with Wetiko? |
|
|||
You will have to excuse my lack of knowledge but I'm not clear on what you mean.
echo $SHELL returns /bin/ksh In ~/.aliases I have: alias st='st -e /bin/ksh -l' I use spectrwm as a window manager and have: program[term] = st -e /bin/ksh -l This is the only way st seems to work for me. |
|
||||
Quote:
Very strange that st won't parse your shell configuration file though Is the output of Code:
echo $ENV Does it still work if you change -l to -i? It's better to start ksh as an interactive shell if you're using it interactively
__________________
Are you infected with Wetiko? |
|
|||
In st:
Quote:
Quote:
Also, not sure if it means anything, but if I start an xterm and then start st within the xterm, aliases work. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
gnome's console is unaware of xterm aliases | daemonfowl | OpenBSD General | 6 | 26th February 2012 03:23 PM |
Shell aliases for regular user | dbach | OpenBSD General | 5 | 30th December 2011 11:41 PM |
postfix aliases configuration error | xiphias | FreeBSD Ports and Packages | 5 | 5th June 2010 05:35 PM |