Closed IceAsteroid closed 1 year ago
This has nothing to do with kitty. Read man bash focusing on the section about when the various bash rc files are sourced. Depending on where your aliases are defined you will need to pass the appropriate options to bash.
@kovidgoyal, Hi, greetings!
But what, I do exactly what I should do for bash. It works on alacritty, but not on kitty. I wonder why such an issue would occur.
My goal is to call a script and for it to have more than one commands executed in a new opening terminal.
Why would this not work on kitty specifically?
Moreover, the reason why I switched to kitty, is alacritty cannot have different themes to switch, or it allegedly can do with a workaround that as someone mentioned in an issue page but not documented. And devs of it have been cocky so far.
Of course, alacritty is fast as rocket, but performance is not the first concern in my case.
On Wed, Oct 04, 2023 at 06:03:54AM -0700, IceAsteroid wrote:
@kovidgoyal, Hi.
But what, I do exactly what I should do for bash. It works on alacritty, but not on kitty. I wonder why such an issue would occur.
Read the manual, use the right options. Probably, bash -i -l
Presumably because alacritty is incorrectly running bash in login/interactive mode even though you have not asked it to. kitty will only do that when running it as an actual interactive shell.
My goal is to call a script and for it to have more than one commands executed in a new opening terminal.
Why would this not work on kitty specifically?
It works fine.
ok, thank you for the advice, have a good day, sir!
It worked!
I tried the following, and it ran like a rock.
kitty bash -i -c 'ls; sleep 2, shopt expand_aliases; wt-dnscrypt
No '-l' option here, since it launches shell as a login shell, that will bring code from ".bash_profile", which I have put stuff to run at login.
Indeed, without the '-i' option for bash, I cannot use shell options like expand_aliases, with just bash in a terminal.
My bad for not comprehensively searching for solutions. Sorry for the disturbance :(
To Reproduce Steps to reproduce the behavior:
bind new or change keybindings of bash
enhanced version of C-r for history searching
$() must be added, otherwise, sometimes shell won't show user typing anymore after ^C cancallin a command's running and then us
e C-r. bind -x '"\C-r":"$(historyEnhance_)"'
kitty 0.29.2 created by Kovid Goyal Linux unix 6.3.13_1 #1 SMP PREEMPT_DYNAMIC Tue Jul 25 00:19:40 UTC 2023 x86_64 Void 6.3.13_1 (unix) (/dev/tty)
Running under: Wayland Frozen: False Paths: kitty: /usr/bin/kitty base dir: /usr/lib/kitty extensions dir: /usr/lib/kitty/kitty system shell: /bin/bash Loaded config files: /home/apple/.config/kitty/kitty.conf
Config options different from defaults: font_family JetBrainsMono Nerd Font font_size 13.0 Colors: background #fbf1c7
color0 #ebdbb2
color1 #cc241d
color10 #79740e
color11 #b57614
color12 #076678
color13 #8f3f71
color14 #427b58
color15 #282828
color2 #98971a
color3 #d79921
color4 #458588
color5 #b16286
color6 #689d6a
color7 #7c6f64
color8 #928374
color9 #9d0006
cursor #665c54
cursor_text_color #bdae93
foreground #3c3836
selection_background #d65d0e
selection_foreground #3c3836
url_color #458588
Important environment variables seen by the kitty process: PATH /usr/lib/ruby/gems/3.2.0/bin:/home/apple/Bin:/home/apple/Bin/ScriptsLocal:/home/apple/Bin/Iptables:/home/apple/Bin/StartInTerminalFZF:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin:/home/apple/Bin/Games:/usr/sbin LANG en_US.UTF-8 EDITOR nvim SHELL /bin/bash GLFW_IM_MODULE ibus DISPLAY :0 WAYLAND_DISPLAY wayland-1 USER apple XCURSOR_SIZE 24 XDG_SEAT seat0 XDG_SESSION_TYPE wayland XDG_SESSION_CLASS user XDG_SESSION_ID 9 XDG_RUNTIME_DIR /tmp/1000-runtime-dir XDG_VTNR 1
[277 00:59:37.963738] [glfw error 65544]: process_desktop_settings: failed with error: [org.freedesktop.DBus.Error.UnknownMethod] No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop"