You are not logged in.

#1 2008-10-09 00:13:40

froli
Member
From: Montreal, Canada
Registered: 2008-06-17
Posts: 440
Website

[SOLVED]How to make Gmrun use my zsh aliases?

My "problem" looks simple but I can't solve it by myself. I simply want gmrun to use my .zshrc aliases.

For example, I have this line in my .zshrc:

alias rtorrent='urxvt -geometry 120x27 -e rtorrent'

But when I type rtorrent in gmrun it tells me: ERROR: Not Found... Even if I restart my session.

There's nothing about this in the wiki (I think), so thanks to those who will helps me. smile

Last edited by froli (2008-10-09 02:01:20)


arch64 | I'm using Yaourt smile  | Kik Messenger: froli | Follow me on Twitter!
Intel Core 2 Quad Q8300 2.5Ghz, 6GB RAM DDR2, 1TB HDD, EVGA GTS 450, Gnome3.

Offline

#2 2008-10-09 01:55:35

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: [SOLVED]How to make Gmrun use my zsh aliases?

gmrun does not use a shell, but completes from the $PATH. I would suggest turning your aliases into small scripts in ~/bin (or /usr/local/bin) and adding that to your PATH before the other entries

export PATH="/usr/local/bin:$PATH"

For instance:

#!/bin/sh
#/usr/local/bin/rtorrent
exec urxvt -geometry 120x27 -e rtorrent

Offline

#3 2008-10-09 02:00:49

froli
Member
From: Montreal, Canada
Registered: 2008-06-17
Posts: 440
Website

Re: [SOLVED]How to make Gmrun use my zsh aliases?

Well ok, it's quite simple. Thanks a lot!


arch64 | I'm using Yaourt smile  | Kik Messenger: froli | Follow me on Twitter!
Intel Core 2 Quad Q8300 2.5Ghz, 6GB RAM DDR2, 1TB HDD, EVGA GTS 450, Gnome3.

Offline

Board footer

Powered by FluxBB