You are not logged in.

#1 2012-04-10 08:11:48

kemmotar
Member
From: Ukraine
Registered: 2012-01-08
Posts: 43
Website

IPython as default shell

How to replace Bash with IPython?

Offline

#2 2012-04-10 23:37:02

jk121960
Member
From: Palos Hills, Illinois
Registered: 2011-12-09
Posts: 254

Re: IPython as default shell

http://linux.die.net/man/8/usermod

In usermod you can specify a shell to use. I have never tried it with python but it makes since.

--jerry

the only drawback I see to this is how do you execute normal computer maintenance commands, or how to update computer with pacman that uses bash. I don't know enough about python.

Last edited by jk121960 (2012-04-10 23:40:31)


Arch Awesome, Ranger & Vim the coding triple threat.

Offline

#3 2012-04-11 11:19:51

ingolemo
Member
Registered: 2012-02-16
Posts: 12

Re: IPython as default shell

man chsh

Offline

#4 2013-01-21 22:39:04

ismaelvc
Member
From: México, D.F.
Registered: 2012-02-26
Posts: 136

Re: IPython as default shell

@jk121960: You just have to append a "!" before the command you want!, ex:

!packer -Syu

You can do things like:

files = !ls -l
for file in files:
    if file ...:
        ...
    else:
        ... # do something

pretty cool and modern to me, It goes along very well also if you are learning python. wink

here is some nice info:
http://ipython.org/ipython-doc/dev/inte … shell.html ;P

Ops I'm sorry I just explained this but missed the point:

I put this in my .bashrc:

exec /usr/bin/ipython

Last edited by ismaelvc (2013-01-21 23:20:40)


Laptop: LG LM70 Express                                                  Kernel: 3.14.2-1-ARCH   
CPU: Intel Pentium M processor @1.86GHz                  Hard Drive: 80G
Video: Mobility Radeon X600                                            X Driver: xf86-video-ati
Memory Size: 1.5G + zramswap: 384M + swap: 3G

Offline

Board footer

Powered by FluxBB