Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-06-22 16:00:54

larryv
Member
Registered: 2020-06-22
Posts: 1

Hello Terminal Emulator

Hi,
Been using Gnome terminal emulator and I can use the up arrow key to see the last command I wrote. Why can't I do this in the xfce emulator?

Thanks.

Offline

#2 2020-06-22 18:09:09

MrEen
Member
Registered: 2019-04-19
Posts: 295

Re: Hello Terminal Emulator

Hello and welcome! smile

My guess is you don't have HISTSIZE and/or HISTFILESIZE set in your ~/.bashrc file. Here's the top half of mine:

# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If not running interactively, don't do anything
case $- in
    *i*) ;;
      *) return;;
esac

# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth

# append to the history file, don't overwrite it
shopt -s histappend

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

Now with these settings if I want to see what entered 996 commands ago, I can just press the up arrow 996 times. Why the heck I set it that big I'll never know!

Last edited by MrEen (2020-06-22 18:09:46)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.006 seconds, 7 queries executed - Memory usage: 516.68 KiB (Peak: 532.32 KiB) ]