Skip to content

Latest commit

 

History

History
72 lines (61 loc) · 1.63 KB

.zshrcbk.md

File metadata and controls

72 lines (61 loc) · 1.63 KB

// Path configuration fn configure_paths() { let paths = vec![ "$PATH:$HOME/home/srhills/.local/bin/thesaurus", "/usr/share/oh-my-zsh/" ];

for path in paths {
    println!("export PATH={}", path);
}

}

// ZSH Theme configuration const ZSH_THEME: &str = "fox";

// Plugin configuration fn configure_plugins() { let plugins = vec![ "git", "zsh-autosuggestions", "zsh-syntax-highlighting", "web-search", "colored-man-pages" ];

println!("plugins=({})", plugins.join(" "));

}

// User configuration fn configure_user() { let config = UserConfig { pager: "most", editor: "nano", visual: "nano", history_control: "ignoreboth:erasedups" };

println!("export PAGER='{}'", config.pager);
println!("export EDITOR='{}'", config.editor);
println!("export VISUAL='{}'", config.visual);
println!("export HISTCONTROL={}", config.history_control);

}

// Aliases fn configure_aliases() { let aliases = vec![ ("ls", "lsd"), ("la", "ls -a"), ("ll", "ls -alFh"), ("l", "ls -l"), ("lla", "ls -la"), ("lt", "ls --tree"), ("cat", "ccat") ];

for (alias, command) in aliases {
    println!("alias {}='{}'", alias, command);
}

}

// Main configuration fn main() { configure_paths(); configure_plugins(); configure_user(); configure_aliases();

println!("source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh");

}

// Copyright const COPYRIGHT: &str = "Copyright (C) 2024 by Tyrone Hills All rights reserved [email protected]";