Skip to content

Commit

Permalink
(master) add banner
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPicklePinosaur committed Nov 7, 2023
1 parent 4215517 commit d8c5a7e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Binary file added media/shrs_banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/shrs_banner_transparent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion plugins/shrs_autocd/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ pub fn after_command_hook(
if let Some(exit_code) = ctx.cmd_output.status.code() {
if exit_code == 127 {
// Check if the command name matches a directory
let Some(cmd_name) = ctx.command.split(' ').next() else { return Ok(()) };
let Some(cmd_name) = ctx.command.split(' ').next() else {
return Ok(());
};

let paths = fs::read_dir("./").unwrap();

Expand Down

0 comments on commit d8c5a7e

Please sign in to comment.