You are not logged in.
Pages: 1
Hello everyone,
I have fish set up as my default shell. My config includes code to automatically start X11 when I login into TTY1.
However, there is a slight pause before X11 begins to start. I assume that is because fish takes a little while to load?
I have tried bash and zsh before, where this was instant. I solved it for bash by putting the code into .profile, which starts up for login shells before .bashrc and the like.
I wonder if there's a way to make fish ignore most of its loading and just run those things first?
Here is my config.fish:
#!/bin/fish
if status --is-login
set -gx LANG "sl_SI.UTF-8"
set -gx LC_MESSAGES "en_GB.UTF-8"
umask 077
# Autostart X
if [ -z "$DISPLAY" -a (tty) = "/dev/tty1" ]
exec startx
end
else if status --is-interactive
set -g fish_color_autosuggestion 555
set -g fish_color_command red
set -g fish_color_comment 555
set -g fish_color_cwd blue
set -g fish_color_cwd_root red
set -g fish_color_end red
set -g fish_color_error red --bold
set -g fish_color_escape yellow
set -g fish_color_host normal
set -g fish_color_match blue
set -g fish_color_normal normal
set -g fish_color_operator red
set -g fish_color_param normal
set -g fish_color_quote magenta
set -g fish_color_redirection green --bold
set -g fish_color_search_match blue
set -g fish_color_search_match purple
set -g fish_color_status red --bold
set -g fish_color_user normal
set -g fish_color_valid_path normal
set -g fish_pager_color_completion normal
set -g fish_pager_color_description blue
set -g fish_pager_color_prefix blue
set -g fish_pager_color_progress cyan --bold
set -g fish_pager_color_secondary cyan --bold
set -gx BROWSER firefox
set -gx EDITOR vim
set -gx PDFVIEWER acroread
endThanks,
Matej
Offline
Pages: 1