Coder Social home page Coder Social logo

load-bash-alias's Introduction

load-bash-alias

License: GPL v3 MELPA

Convert bash aliases into eshell ones.

Installation

Manual

  1. Download and copy load-bash-alias.el into ~/.emacs.d/lisp directory.
  2. Add the following elisp code to your Emacs config:
;; Tell Emacs where is your personal elisp lib directory
(add-to-list 'load-path "~/.emacs.d/lisp/")

;; load-bash-alias
;; https://github.com/daviderestivo/load-bash-alias
(load-library "load-bash-alias")
  1. Call load-bash-alias-load-bash-alias-into-eshell interactive function to convert bash aliases into eshell ones:
M-x load-bash-alias-load-bash-alias-into-eshell

Melpa

Add the following elisp snippet to your init.el:

(use-package load-bash-alias
  :ensure t
  :config
  (setq load-bash-alias-bashrc-file "~/.bashrc")
  (setq load-bash-alias-exclude-aliases-regexp "^alias magit\\|^alias oc"))

Customization

The location of your barshrc file can be customized by setting the value of load-bash-alias-bashrc-file variable:

(setq load-bash-alias-bashrc-file "~/.bashrc")

In case you want to add more alias files please add them to bash-alias-additional-aliases-files. For example:

(setq load-bash-alias-additional-aliases-files '("~/.dotfiles/bashrc_addons"))

In addition it's possible to exclude certain bash aliases to be converted into eshell ones simply setting load-bash-alias-exclude-aliases-regexp:

(setq load-bash-alias-exclude-aliases-regexp "^alias magit\\|^alias oc")

Credits

The original ideas for this package has been taken from Skye. The original elisp code can be found here.

load-bash-alias's People

Contributors

daviderestivo avatar gallipo avatar purcell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

load-bash-alias's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.