Coder Social home page Coder Social logo

Allow use of shell aliases about pathpicker HOT 4 CLOSED

raine avatar raine commented on April 26, 2024
Allow use of shell aliases

from pathpicker.

Comments (4)

joeguilmette avatar joeguilmette commented on April 26, 2024

a big +1 from me. i wouldn't go so far as to say useless without aliases, but it would be much more useful if i were able to use aliases.

from pathpicker.

pcottle avatar pcottle commented on April 26, 2024

Alright I heard back about my approach in #59 so lets go with that! My only worry is that we source the entire .bashrc which might have side-effects. I actually use my bashrc to log onto my development server for facebook (automatically) so its kind of an aggressive script to source, but hopefully my situation is not super common.

[pcottle:~/Dropbox (Facebook)/wip/PathPicker:master]$ git show --stat | ./fpp
getting input
executing command:
ga  '/Users/pcottle/Dropbox (Facebook)/wip/PathPicker/src/output.py'

(ga is aliased to git add for me)

should work 100% for bash, and hoping zsh is the same way. can anyone test?

from pathpicker.

langtianlang avatar langtianlang commented on April 26, 2024

@pcottle Using 0.5.6. Zsh aliases did not work for me

➜  code/stuff git:(master) ✗ gs | fpp
getting input
executing command:
ga '/Users/llang/code/stuff/thing.rb'
/Users/llang/.fpp/.fpp.sh: line 4: ga: command not found
➜  code/stuff git:(master) ✗ brew upgrade fpp
Error: fpp 0.5.6 already installed
➜  code/upclookup git:(master) ✗ ga
Nothing specified, nothing added.
Maybe you wanted to say 'git add .'?

from pathpicker.

pcottle avatar pcottle commented on April 26, 2024

@langtianlang youll have to install from master, since 0d12fef is not in fpp 0.5.6:

# excerpt from 0.5.6's output.py
def getAliases():
    try:
        lines = open(os.path.expanduser(BASH_RC), 'r').readlines()
    except IOError:

either follow the manual install instructions in the README or wait till tonight when I submit the new release :)

from pathpicker.

Related Issues (20)

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.