Hi all, We need to write new scripts to import bash settings. I opened an issue on Github : https://github.com/fish-shell/fish-shell/issues/257
Feel free to share any suggestions. On 8/1/12, Maxim Gonchar <gma...@gmail.com> wrote: > Hi, > > I remember there was a page with tips for moving from bash to fish on the > official site. > But I can not find it now. > Anyway I recommend to read the fish documentation, because it's well > written > and answers all of your questions. Type 'help' for it. > >> source ~/.bashrc > there is no 'source' command, use '. some_file.fish' instead. But you can > not load bash files anyway. > >> # MacPorts Installer addition on 2010-03-17_at_21:13:03: adding an >> appropriate PATH variable for use with MacPorts. >> export PATH=$PATH:/opt/local/bin:/opt/local/sbin > set -x PATH $PATH /opt/local/bin /opt/local/sbin > set - to set variable > -x - to export it > ' ' - use spaces to separate array elements instead of ':' > set --help #for details > >> # bash-completion >> if [ -f /opt/local/etc/bash_completion ]; then >> . /opt/local/etc/bash_completion >> fi > you can not use bash completions. Fish has it's own and they turned on by > default. > >> export TERM=xterm-256color > set -x TERM xterm-256-color > >> # If running interactively, then: >> if [ "$PS1" ]; then > if status --is-interactive > #some code > end > see documentation for 'if' > >> # enable color support of ls and also add handy aliases >> # if [ "$TERM" != "dumb" ]; then > if test "$TERM" != "dumb" > #some code > end > >> alias ls='ls -FG' >> alias rm='rm -i' >> alias cp='cp -i' >> alias mv='mv -i' > as far as I know aliases should work. > >> #function trash { mv $@ ~/.Trash ; } > function trash > mv $argv ~/.Trash > end > >> PS1="\[\e[0;32m\]\u@monkey:\w\$ \[\e[0m\]" > see the documentation for 'fish_prompt' function and the fish_prompt > function itself 'type fish_prompt' - > it is the function which is called to print the prompt. > You will probably need to check the following functions: funced, funcsave. > > Put your new configuration to the ~/.config/fish/config.fish file. It's > loaded on startup. > >> How can I convert my bash stuff to have it in fish? > I'm not familiar with that converting script. So I can propose only the > manual way. > > Maxim > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Fish-users mailing list > Fish-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/fish-users > -- Regards, Siteshwar ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users