changed package name from 'fern' to 'shed'
This commit is contained in:
@@ -226,7 +226,7 @@ impl History {
|
||||
let max_hist = crate::state::read_shopts(|s| s.core.max_hist);
|
||||
let path = PathBuf::from(env::var("FERNHIST").unwrap_or({
|
||||
let home = env::var("HOME").unwrap();
|
||||
format!("{home}/.fern_history")
|
||||
format!("{home}/.shed_history")
|
||||
}));
|
||||
let mut entries = read_hist_file(&path)?;
|
||||
// Enforce max_hist limit on loaded entries
|
||||
|
||||
@@ -101,7 +101,7 @@ pub enum ReadlineEvent {
|
||||
Pending,
|
||||
}
|
||||
|
||||
pub struct FernVi {
|
||||
pub struct ShedVi {
|
||||
pub reader: PollReader,
|
||||
pub writer: Box<dyn LineWriter>,
|
||||
|
||||
@@ -120,7 +120,7 @@ pub struct FernVi {
|
||||
pub needs_redraw: bool,
|
||||
}
|
||||
|
||||
impl FernVi {
|
||||
impl ShedVi {
|
||||
pub fn new(prompt: Option<String>, tty: RawFd) -> ShResult<Self> {
|
||||
let mut new = Self {
|
||||
reader: PollReader::new(),
|
||||
|
||||
@@ -23,7 +23,7 @@ use crate::{
|
||||
sys::TTY_FILENO,
|
||||
},
|
||||
prompt::readline::keys::{KeyCode, ModKeys},
|
||||
shopt::FernBellStyle,
|
||||
shopt::ShedBellStyle,
|
||||
state::read_shopts,
|
||||
};
|
||||
use crate::{
|
||||
|
||||
Reference in New Issue
Block a user