Zum Inhalt springen

Fish: Unterschied zwischen den Versionen

Aus Computech CMS Wiki
Simon Zeberli (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
Simon Zeberli (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
 
Zeile 2: Zeile 2:
Fish als Standart Shell einrichten
Fish als Standart Shell einrichten


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


Einstellungen und Funktionen von internen GIT Repo einfügen
Einstellungen und Funktionen von internen GIT Repo einfügen


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


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


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


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


==Updaten==
==Updaten==
<copylink>cd ~/.config/fish</copylink>
<code>cd ~/.config/fish</code>


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


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


==Fish Alias==
==Fish Alias==
Zeile 42: Zeile 42:
https://hackercodex.com/guide/install-fish-shell-mac-ubuntu/
https://hackercodex.com/guide/install-fish-shell-mac-ubuntu/


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


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


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


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

Aktuelle Version vom 17. Juni 2021, 06:58 Uhr

Einrichten

Fish als Standart Shell einrichten

chsh -s /usr/bin/fish

Einstellungen und Funktionen von internen GIT Repo einfügen

rm -rf ~/.config/fish/

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

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

nano ~/.config/fish/functions/fish_title.fish

Updaten

cd ~/.config/fish

git fetch --all

git reset --hard origin/master

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/

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

sudo apt-get update

sudo apt-get install fish

Set Fish als Standard chsh -s /usr/bin/fish