Separated fish configs for each distro family and updated docs.
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
# Shaun's `fish` Dotfiles
|
# Shaun's `fish` Dotfiles
|
||||||
|
|
||||||
## Location
|
## Location
|
||||||
|
### Config Directory
|
||||||
The configuration files need to be present at this location, `~/.config/fish`. So, we can use the following command to softlink/symlink,
|
The configuration files need to be present at this location, `~/.config/fish`. So, we can use the following command to softlink/symlink,
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -8,7 +9,14 @@ ln -s <location of cloned dotfiles fish directory> ~/.config/fish
|
|||||||
# e.g.
|
# e.g.
|
||||||
# ln -s ~/dotfiles/fish ~/.config/fish
|
# ln -s ~/dotfiles/fish ~/.config/fish
|
||||||
```
|
```
|
||||||
Ensure the file is adjusted (or a copy is made instead) which uncomments lines for the corresponding linux distro.
|
### Config File
|
||||||
|
The paths for certain distributions of Linux can be different. Two files are provided here, for RedHat and Debian family distro's, so we must ensure the correct file is linked.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ln -s ~/.config/fish/config.fish.debian ~/.config/fish/config.fish
|
||||||
|
# or ...
|
||||||
|
ln -s ~/.config/fish/config.fish.redhat ~/.config/fish/config.fish
|
||||||
|
```
|
||||||
|
|
||||||
## Install Powerline Font
|
## Install Powerline Font
|
||||||
This font is expected within our configuration so we should install it.
|
This font is expected within our configuration so we should install it.
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
# For Debian-based Distro
|
|
||||||
#set fish_function_path $fish_function_path /usr/share/powerline/bindings/fish
|
|
||||||
#source /usr/share/powerline/bindings/fish/powerline-setup.fish
|
|
||||||
#powerline-setup
|
|
||||||
|
|
||||||
# For RedHat-based Distro
|
|
||||||
set fish_function_path $fish_function_path /usr/share/powerline/bindings/fish
|
|
||||||
source /usr/share/powerline/fish/powerline-setup.fish
|
|
||||||
powerline-setup
|
|
||||||
4
fish/config.fish.debian
Normal file
4
fish/config.fish.debian
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# For Debian-based Distro
|
||||||
|
set fish_function_path $fish_function_path /usr/share/powerline/bindings/fish
|
||||||
|
source /usr/share/powerline/bindings/fish/powerline-setup.fish
|
||||||
|
powerline-setup
|
||||||
4
fish/config.fish.redhat
Normal file
4
fish/config.fish.redhat
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# For RedHat-based Distro
|
||||||
|
set fish_function_path $fish_function_path /usr/share/powerline/bindings/fish
|
||||||
|
source /usr/share/powerline/fish/powerline-setup.fish
|
||||||
|
powerline-setup
|
||||||
Reference in New Issue
Block a user