Zum Inhalt springen

Fish: Unterschied zwischen den Versionen

Aus Computech CMS Wiki
Lukas (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
Simon Zeberli (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
==Einrichten==
==Einrichten==
Fish als Standart Shell einrichten
Fish als Standart Shell einrichten
  chsh -s /usr/bin/fish
<copylink>chsh -s /usr/bin/fish</copylink>
Einstellungen und Funktionen von internen GIT Repo einfügen
Einstellungen und Funktionen von internen GIT Repo einfügen
rm -rf ~/.config/fish/
<copylink>rm -rf ~/.config/fish/</copylink>
Intern:
Intern:
git clone git@git.zeberliedv.ch:modules/shell/fish.git ~/.config/fish
<copylink>git clone git@git.zeberliedv.ch:modules/shell/fish.git ~/.config/fish</copylink>
Extern:
Extern:
git clone http://git.zeberliedv.ch/modules/shell/fish.git ~/.config/fish
<copylink>git clone http://git.zeberliedv.ch/modules/shell/fish.git ~/.config/fish</copylink>


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


==Updaten==
==Updaten==
cd ~/.config/fish
<copylink>cd ~/.config/fish</copylink>
git fetch --all
 
git reset --hard origin/master  
<copylink>git fetch --all</copylink>
 
<copylink>git reset --hard origin/master<copylink>
==Fish Alias==
==Fish Alias==
<syntaxhighlight line='line' lang="bash">
<syntaxhighlight line='line' lang="bash">
Zeile 34: Zeile 36:
https://hackercodex.com/guide/install-fish-shell-mac-ubuntu/
https://hackercodex.com/guide/install-fish-shell-mac-ubuntu/


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


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

Version vom 15. April 2020, 12:00 Uhr

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>