Skip to content

23 comments

Ω ~/ uname -r
4.0.1-1-ARCH

:3 Are you running Testing?

EDIT: Nope, 4.0 was released in between the time I updated this morning and now :D

3 points

Personally my PC works just as good as with the kernel I installed 2011 when I built this PC.

3 points

What prompt/PS1 are you using

2 points

It's nothing special. Here are the relevant lines from my .zshrc

user=YOURUSERNAMEHERE
if (( EUID == $(id -u $user) )); then
    PROMPT="%(?,Ω,ω) %~/ "
    if [[ -z $(ls /tmp | grep "ssh-") && -z $TMUX ]] ; then
        echo -n "Unlock ssh key? [Y/n] "
        read input
        case $input in ""|[Yy]|[Yy][Ee][Ss]) eval $(ssh-agent); ssh-add ~/.ssh/id_rsa ;; esac

    fi
else
    PROMPT="[%B%F{red}%n%f%b@%m %B%40<..<%~%<< %b] %# "
fi

if [[ -z $DISPLAY ]]; then
    PROMPT="[%B%(?,%F{blue},%F{red})%n%f%b@%m %B%40<..<%~%<< %b] %# "
fi
RPROMPT="%B%(?..%?)%b"

Basically, the Ω becomes a lowercase ω when the previous command exits with a nonzero exit code. However, if $DISPLAY is not set (X is not running) the fancy unicode characters don't often show up so I opted for a more standard prompt that changes colors to indicate the same thing. Also, if X isn't running ssh-agent probably isn't either so the prompt offers to add the ssh keys. The RPROMPT variable in zsh dictates what shows up on the right side after you run a command. In my case, I chose to display the exit code. Here it is in action

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.