Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improve Fish shell configuration with enhanced alias and clear … #1815

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ShinniUwU
Copy link

Pull Request

Description

This PR introduces enhancements to the Fish shell configuration by adding new features:

  • New clear Function: Added a function to clear the terminal screen and scrollback buffer.
  • System Information Display: Added fastfetch to display system information upon terminal launch.

Motivation and Context

These updates aim to enhance the usability of the Fish shell environment. The new clear function provides a more effective way to clear the terminal as before it wasn't really clearing it you could scroll up, and fastfetch offers useful system information anyone would probably want to put that in their config.fish .

Dependencies

No additional dependencies are required for these changes.

Related Issues

N/A

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update (non-breaking change; modified files are limited to the documentation)
  • Technical debt (a code change that does not fix a bug or add a feature but makes something clearer for devs)
  • Other (provide details below)

Checklist

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My commit message follows the commit guidelines.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added a changelog entry.
  • I have added necessary comments/documentation to my code.
  • I have added tests to cover my changes.
  • I have tested my code locally and it works as expected.
  • All new and existing tests passed.

Screenshots

N/A

Additional context

N/A


Feel free to tweak any part of this description if needed!

# Enhanced clear command
function clear --description 'Clear the screen and scrollback buffer'
command clear
printf '\e[3J'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need a function for clear ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added that function for a cleaner clear command. I believe this improves readability and maintains consistency in my setup. It's not strictly necessary, but it helps in streamlining the process and keeping the configuration tidy.

Copy link
Contributor

@rubiin rubiin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants