diff --git a/CHANGELOG.md b/CHANGELOG.md index e0b3031..d118fbb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Package manager integration for `apt`, `dnf`, `emerge`, `nix` +- Adding aliases to executable match ## [0.5.15] diff --git a/src/shell.rs b/src/shell.rs index 1a36e23..5342953 100644 --- a/src/shell.rs +++ b/src/shell.rs @@ -139,6 +139,12 @@ impl Data { pub fn get_executables(&mut self) -> &Vec { if self.executables.is_empty() { self.executables = get_path_files(); + if self.alias.is_some() { + let alias = self.alias.as_ref().unwrap(); + for command in alias.keys() { + self.executables.push(command.to_string()); + } + } } &self.executables }