Zum Inhalt springen

Fish

Aus Computech CMS Wiki

Einrichten

Fish als Standart Shell einrichten

<copylink>chsh -s /usr/bin/fish</copylink>

Einstellungen und Funktionen von internen GIT Repo einfügen

<copylink>rm -rf ~/.config/fish/</copylink>

Intern: <copylink>git clone git@git.zeberliedv.ch:modules/shell/fish.git ~/.config/fish</copylink>

Extern: <copylink>git clone http://git.zeberliedv.ch/modules/shell/fish.git ~/.config/fish</copylink>

<copylink>nano ~/.config/fish/functions/fish_title.fish</copylink>

Updaten

<copylink>cd ~/.config/fish</copylink>

<copylink>git fetch --all</copylink>

<copylink>git reset --hard origin/master</copylink>

Fish Alias

allgemeine Alias ********************************
aliases -> Die Datei alieases.fish anpassen
ls -> "ls -all"

Drupal Spezifisch *******************************
d8 -> change Directory  to D8 Folder
d8 arg -> "d8 dev8" change Directory to D8 Drupal Root  Folder
d7 -> change Directory  to D7 Folder
d7 arg -> "d7 dev" change Directory to D7 Drupal Root  Folder
www -> change Directory to www Folder

FISH ********************************************
fish_update -> Fish einstellungen werden von Git wiederherstellen / updaten

Installation

https://hackercodex.com/guide/install-fish-shell-mac-ubuntu/

<copylink>sudo apt-add-repository ppa:fish-shell/release-2</copylink>

<copylink>sudo apt-get update</copylink>

<copylink>sudo apt-get install fish</copylink>

Set Fish als Standard <copylink>chsh -s /usr/bin/fish</copylink>