Jump to content

Search the Community

Showing results for tags 'shell'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Alfred 3
  • Make the Most of Alfred
    • Discussion & Help
    • Bug Reports
    • Alfred Feature Suggestions
    • Themes
  • Alfred Workflows
    • Share your Workflows
    • Workflow Help & Questions
  • Alfred v2 Themes
  • Alfred Remote for iOS
    • Alfred Remote Discussion & Help
    • Remote Connection Troubleshooting

Categories

  • Articles
    • Forum Integration
    • Frontpage
  • Pages
  • Miscellaneous
    • Databases
    • Templates
    • Media

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Twitter


Website URL


Jabber


Location


Interests

Found 14 results

  1. Hey guys! Some of you out there (unfortunately, probably not that many) may have heard of the terminal emulator Kitty. It's cross platform, fast, and quite customizable. Long story short, I replaced Terminal.app with Kitty (iTerm never seemed to meet my needs). However, it took quite a lot of work to get Kitty to work when I entered a shell command (i.e. "> echo hello") into Alfred. At last, after much messing around, I finally got it working, and have come to share how I did that in case anyone else wants to do it too. Go to Features > Terminal / Shell and change Application to "Custom." Copy and paste this AppleScript into the box that shows up under the Application dropdown. That's all it takes! It took me about an hour and a half to make that work properly. I could easily get it to run a command, but not with the directory set to ~, the .bashrc file loaded, and then keep the window open after finishing the command. All of these things were important to me, so after much tinkering, I made it work. Note: this only works, of course, if you are using bash. If this is not the case, you can likely copy and modify my script and RTFM.
  2. I want to be able to launch some zsh/bash commands from the Alfred's bar. I sat the prefix to my likings, selected "Custom", modify the script accordingly. on alfred_script(q) tell application "iTerm" activate do script q end tell end alfred_script But it doesn't work.
  3. Hey All, Looking for a solution on a very minor annoyance, I usually run a lot of shell commands from Alfred using the > prefix, which is great! Love it! However, when it executes the command it pops open terminal and runs the command and leaves another lingering window around which I find annoying. Does anyone know of a way to force Alfred to close the window it opens after the command is executed? Very rarely do I need the returned command's output. It's usually for firing off quick things like docker pulls, file moves, git commits and such. If I need to do this through an AppleScript I'm open to that as well, just wanted to find some way around my terminal windows popping up everywhere like mushrooms. Thanks!
  4. Heyho guys and girls, I just finished porting my old v1 extension NotificationControl to a v2 style workflow. You can download it here. You can use the following keywords: Show the current status of Growl and NotificationCenter : stat Pause Growl and Notification Center : pause Resume Growl and Notification Center : resume Pause or resume Growl : growl Pause or resume Notification Center : notificationcenter Close all Growl notifications : close_growl Close all NotificationCenter notifications : close_nc Show Growl’s rollup : show Hide Growl’s rollup : hide Enable Growl’s incoming network : enable Disable Growl’s incoming network : disable/ Restart Growl : restart
  5. In Terminal.app Preferences, I have the "Shells open with" property set to the custom "/opt/local/bin/bash" (rather than default login shell). However, if I then enter something like > echo foo in Alfred, this opens a new Terminal window but does not execute the command as it should. Alfred version: v2.8 (414) Mac OS X version: 10.10.5
  6. I was sitting there in iTerm thinking "wouldn't it be great if I could talk to Alfred directly from the terminal"? bash completion, etc. I'm not sure how to get this done; I was hoping for some guidance by the authors. Alfred's AppleScript library only exposes a few functions. If I wanted to use completion, I'd need a list of all of its keywords. However, if that list existed, I'm sure I could work something out. It'd be pretty awesome. Chris
  7. I would like to write an Alfred workflow that acts as a thin wrapper around a command line application which takes many option flags and arguments. Is there any way to integrate Alfred with the bash completion script of this application in such a way that the possible completions of a partially entered command are displayed?
  8. Fish Toolbox This is a toolbox of functions for working with the [Fish Shell](http://fishshell.com/). You can install fish shell with homebrew: brew install fish Currently, the functions are: f:seteditor Set the code editor to use f:editfunction Edit a Fish function. It will show a list of possible functions to edit. If you press FN key and select a function, that function will be deleted. f:editconfig Edit the Fish Configuration file. f:newfunction Create a new fish function. with more to come. You can download it from my GitHub account: https://github.com/raguay/MyAlfred/blob/master/FishToolbox.alfredworkflow Or from Packal!
  9. Helps you lookup what shell commands mean using http://explainshell.com. Your OS X installation should have PHP 5.3.3 or newer installed. Lion or Mountain Lion should meet the minimum requirements. If not, you can install the latest version of PHP with MacPorts or Homebrew. Download! Requires Alfred 2 and the Powerpack. Updates can be found and installed using Monkey Patch, or the older Alleyoop (discontinued).
  10. I am working on a workflow which should execute a shell script command for of the documents (*.xml files) currently selected in the Finder. I did some experiments around it, but could not get it to work yet. Any pointers, e.g. what workflow elements I will need? I am currently thinking along the lines of first calling an applescript which gives me the selected files, then filtering out only the xml files and lastly calling a shell script for each of the files or alternatively calling the script once but passing along an array of xml files. What do you guys think? Thanks for any suggestions / sample workflows.
  11. The following command download magnet link to a local torrent file /usr/local/bin/aria2c --bt-metadata-only=true --bt-save-metadata=true 'magnet:?xt=urn:btih:9cf3900966073b22a8580c1152221c7edefe2186&dn=Superman.Man.of.Steel.2013.720p.R6.LiNE.x264.AAC-DiGiTAL&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.istole.it%3A6969&tr=udp%3A%2F%2Ftracker.ccc.de%3A80&tr=udp%3A%2F%2Fopen.demonii.com%3A1337' It works fine if I run it in the Terminal. But the same command fail to run from alfred workflow "Run Script" action. The failed log are as follows.
  12. Quick Jot Workflow. Collect Time-stamped stacking jots in a single text file. New jot will be placed on the first of the file. Modify the file location for your need. Type "." in Alfred2 Input and write a simple note. Intended to personal use with Dropbox, iPhone, Unclutter. http://dl.dropboxusercontent.com/u/67598652/Files/Quick%20Jot.alfredworkflow
  13. I wrote a script like this, #!/bin/sh HEXO=/Users/cinvro/nvm/v0.10.15/bin/hexo cd ~/Work/hexo/cinvro.com/ $HEXO generate it works when I execute it in my terminal,but it doesn't work when I put it in a Alfred2 Workflow. hexo here is a node.js program.
  14. Hi there, I was wondering what's the best way to display a multiline return for a shell command. For example if I did a LS directory and wanted to show the entire output. Using the traditional methods with a notification will show the first line, but not the rest. I have a work around in play by using the qlmanage command to display a text file in the quick look window. But I feel this is probably not the best way.
×
×
  • Create New...