Giter Site home page Giter Site logo

config-fish's Introduction

Configuration of Fish Shell

Usage

git clone https://github.com/xinii/config-fish.git ~/.config/fish
mv ~/.config/fish/variables ~/.config/fish/fish_variables # option
sudo apt install fish
chsh -s /usr/bin/fish
# relogin

Features

Check PATH environment variable

Command to use

list path

Example of output

[1] /home/username/.local/bin
[2] /home/username/.anyenv/bin
[3] /usr/local/sbin
[4] /usr/local/bin
[5] /usr/sbin
[6] /usr/bin
[7] /sbin
[8] /bin
[9] /usr/games
[10] /usr/local/games
[11] /snap/bin

List status of repositores

Command to use

cd /path/to/repositories
list repo

Example of output

--- /path/to/repositories/repo-1-name ---
ブランチ main
Your branch is up to date with 'origin/main'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
    (use "git restore <file>..." to discard changes in working directory)
            modified:   README.org

no changes added to commit (use "git add" and/or "git commit -a")

--- /path/to/repositories/repo-2-name ---
ブランチ master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

--- /path/to/repositories/repo-3-name ---
ブランチ main
Your branch is up to date with 'origin/main'.

nothing to commit, working tree clean

List PPA

Command to use

list ppa # --lite --simple --cache

Example of output

/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu/ focal main restricted
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu/ focal universe
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu/ focal-updates universe
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu/ focal multiverse
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu/ focal-updates multiverse
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu/ focal-security main restricted
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu/ focal-security universe
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu/ focal-security multiverse
/etc/apt/sources.list.d/docker.list:deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu focal stable

Show details for current path

How to use

Just press Ctrl + j in anywhere.

Example of output

./  ../  .hidden  .hidden-folder/  normal-file  normal-folder/
=== FILE | visible: 1 | hidden: 1 ===
=== PATH | visible: 1 | hidden: 1 ===
--------------------------------------------------

A compact en-ja ja-en dictionary

How to use

dict something
dict なにか

Example of output

--
domain
領地,領土,範囲,変域,統治地域,領域,分野,所有地
domain of definition
定義域
--
magnetic domain
磁区
magnetic domain wall
磁壁
--

Some of Alias

AliasCommand to run
aeval (anyenv init - fish \vert source)
cemacsclient -t
clean_tex(Remove TeX temporary files)
ddu -csh
dadu -hd 1 \vert sort -h
eemacs -nw
emacsd startemacs --daemon
emacsd stop~emacsclient -e ‘(kill-emacs)’~
exeexec $SHELL -l
gstgit status
lls -avhl
ppython
rmdsclean .DS_Store
rmdtfind . -name \"._*\" -size 4k -print0 \vert xargs -0 rm -v
rmelcclean *.elc
ttmux
wd2p(Windows directory path to WSL2 path)

Customized universal environment variables

set -Ux VIRIABLE_NAME value
set -U fish_user_paths /path/to/customized/bin $fish_user_paths

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.