commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
old_contents
stringlengths
0
4.24k
new_contents
stringlengths
1
5.44k
subject
stringlengths
14
778
message
stringlengths
15
9.92k
lang
stringclasses
277 values
license
stringclasses
13 values
repos
stringlengths
5
127k
e7c6691c3d8652fa6519367ca1e96004350d5099
subl.fish
subl.fish
function subl --description 'Open Sublime Text' if test -d "/Applications/Sublime Text.app" "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" $argv else if test -d "/Applications/Sublime Text 2.app" "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" $argv else if test -x "/o...
function subl --description 'Open Sublime Text' if test -d "/Applications/Sublime Text.app" "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" $argv else if test -d "/Applications/Sublime Text 2.app" "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" $argv else if test -d "$H...
Add support for ST and ST3 installations inside `~/Applications` on OS X
Add support for ST and ST3 installations inside `~/Applications` on OS X
fish
mit
scorphus/plugin-sublime,gblmarquez/plugin-sublime,oh-my-fish/plugin-sublime
5e4aae8798af5190294db6269662fe1736bac336
.config/fish/config.fish
.config/fish/config.fish
# # ~/.config/fish/config.fish # Dotfiles # fish_vi_key_bindings # Variables source ~/.config/fish/variables.fish # Termial colors set fish_color_autosuggestion 555\x1eyellow set fish_color_command 005fd7\x1epurple set fish_color_comment red set fish_color_cwd green set fish_color_cwd_root red set fish_color_error r...
# # ~/.config/fish/config.fish # Dotfiles # logo fish_vi_key_bindings # Variables source ~/.config/fish/variables.fish # Termial colors set fish_color_autosuggestion 555\x1eyellow set fish_color_command 005fd7\x1epurple set fish_color_comment red set fish_color_cwd green set fish_color_cwd_root red set fish_color_er...
Print fish logo when fish starts
Print fish logo when fish starts
fish
mit
phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles
3f3deb94d3e2fddc595b180a88201528d9481ba8
.config/fish/functions/remove_from_user_path.fish
.config/fish/functions/remove_from_user_path.fish
function remove_from_user_path --description "Removes the given path from fish_user_paths" set -Ux fish_user_paths (echo $fish_user_paths | sed 's| '$argv[1]'||g') end
Add function to remove a path from fish_user_paths
Add function to remove a path from fish_user_paths
fish
mit
dideler/dotfiles,dideler/dotfiles
d44c9918ca5010eabadedacf356c9b843838362d
fish/.config/fish/functions/check_kernel.fish
fish/.config/fish/functions/check_kernel.fish
function check_kernel --description='Output message if installed and running kernels are different.' set installed (string match --regex '\d\d?.\d\d?.\d\d?' (pacman --query linux)) # linux 4.18.5.arch1-1 set running (string match --regex '\d\d?.\d\d?.\d\d?' (...
function check_kernel --description='Output message if installed and running kernels are different.' # e.g. linux 4.18.5.arch1-1 set installed (string match --regex '\d\d?.\d\d?.\d\d?' (pacman --query linux)) # ...
Update output format for status bar
Update output format for status bar
fish
mit
ammgws/dotfiles,ammgws/dotfiles,ammgws/dotfiles
284ad8b9d20a3ad7084b446e14ec670456a7db6b
HOME/.config/fish/functions/md5_file_verify.fish
HOME/.config/fish/functions/md5_file_verify.fish
function md5_file_verify if test (md5 $argv[1] | cut -f 2 -d "=" | sed 's/ *//') != $argv[2]; echo "md5 NOT VERIFIED"; and return 1; end end
Create simplei md5 check utility
Create simplei md5 check utility
fish
mit
astronomerdamo/dotfiles
5393dcb73cd1740a6b067149a63b7ff914f1736c
config/fish/functions/my_vi_key_bindings.fish
config/fish/functions/my_vi_key_bindings.fish
function my_vi_key_bindings --description "Mikel's vi-like key bindings for fish" if contains -- -h $argv or contains -- --help $argv echo "Sorry but this function doesn't support -h or --help" return 1 end # Start with the standard Fish bindings that are similar to Vi. fish_vi_...
function my_vi_key_bindings --description "Mikel's vi-like key bindings for fish" if contains -- -h $argv or contains -- --help $argv echo "Sorry but this function doesn't support -h or --help" return 1 end # Start with the standard Fish bindings that are similar to Vi. fish_vi_...
Fix switching from insert mode to normal mode.
fish: Fix switching from insert mode to normal mode. For some reason, force-repaint didn't previously work, but now it does.
fish
apache-2.0
mikelward/conf,mikelward/conf
07cef8611583708df4e78ce86f7c0f0abf8b52ae
.config/fish/functions/aliases.fish
.config/fish/functions/aliases.fish
#!/usr/bin/env fish alias rm="trash" alias t="todo.sh -d ~/.config/todo/config" alias bk=bookkeeping alias activate="source ~/.local/venv/bin/activate.fish" alias v="vim -c Files" # Navigation alias ...="cd ../.." alias ....="cd ../../.." alias .....="cd ../../../.." alias wo=workon # VCS alias g="git" alias gx="git...
#!/usr/bin/env fish alias rm="trash" alias t="todo.sh -d ~/.config/todo/config" alias bk=bookkeeping alias activate="source ~/.local/venv/bin/activate.fish" alias v="vim -c Files" # Navigation alias ...="cd ../.." alias ....="cd ../../.." alias .....="cd ../../../.." alias wo=workon # open a command in a new pane ali...
Add alias to open command in same dir but new tmux pane
[fish] Add alias to open command in same dir but new tmux pane
fish
bsd-2-clause
kattrali/dotfiles,kattrali/dotfiles,kattrali/dotfiles
4b2960c832ef2ad47b9e0faa49dd9d7680f89c34
.config/fish/functions/chrome-dl.fish
.config/fish/functions/chrome-dl.fish
function chrome-dl --description "Download Chrome extensions, given their IDs" for extension_id in $argv curl --output "$extension_id.zip" \ --location "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0...
# Based on https://gist.github.com/paulirish/78d6c1406c901be02c2d function chrome-dl --description "Download Chrome extensions, given their IDs" for extension_id in $argv curl --output "$extension_id.zip" \ --location "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&...
Add source for how to download Chrome extensions from CLI
Add source for how to download Chrome extensions from CLI
fish
mit
dideler/dotfiles,dideler/dotfiles
21370688b07bde9efab45175aef2614217175e97
config.fish
config.fish
# Make sure ssh-agent can be reached set -xg SSH_AUTH_SOCK "$XDG_RUNTIME_DIR/ssh-agent.socket" # Use vim for git set -xg VISUAL "vim" # T(he )tmux session alias ttmux "tmux attach-session; or tmux"
# Make sure ssh-agent can be reached set -xg SSH_AUTH_SOCK "$XDG_RUNTIME_DIR/ssh-agent.socket" # Use vim for git set -xg VISUAL "vim" set -xg PATH ~/.local/bin $PATH # T(he )tmux session alias ttmux "tmux attach-session; or tmux"
Add local bins for cabal installed user binaries
Add local bins for cabal installed user binaries
fish
mit
wilfriedvanasten/miscvar,wilfriedvanasten/miscvar,wilfriedvanasten/miscvar
1b3809d812e1a95d3b42ddd42a4923c87df8cde5
functions/__paradox_command_duration.fish
functions/__paradox_command_duration.fish
function __paradox_command_duration --description "Get the current command duration" if begin; set -q CMD_DURATION; and test $CMD_DURATION -ge 500; end # I do it in this somewhat roundabout way to preserve some floating point math set -l x (math "scale=2;$CMD_DURATION / 1000") set -l seconds (math "$x % 6...
function __paradox_command_duration --description "Get the current command duration" if begin; set -q CMD_DURATION; and test $CMD_DURATION -ge 500; end # I do it in this somewhat roundabout way to preserve some floating point math set -l x (math --scale=2 "$CMD_DURATION / 1000") set -l seconds (math "$x %...
Remove emoji from timestamp and update math for 3
Remove emoji from timestamp and update math for 3 Remove the emoji from the timestamp; was causing word-wrap issues due to character width problems Update the math calls to be fish 3 compatible
fish
mit
paradox460/paradox-theme
0bb64fdf5db667718ad5bbb5ad66bec134fd6fad
Functions/check_system.fish
Functions/check_system.fish
function check_system -d 'Display short system name (OSX, Linux, Win, NA)' set -l osname (uname 2>/dev/null); or set -l osname (/usr/bin/uname 2>/dev/null) # fix for lacking MSYS2 path if test "$osname" = Darwin echo OSX else if begin test (echo "$osname" | grep -E MSYS_NT 2>/dev/null) or tes...
function check_system -d 'Display short system name (OSX, Linux, Win, NA)' set -l osname (uname | tr '[:upper:]' '[:lower:]' 2>/dev/null); or set -l osname (fish -c "uname | tr '[:upper:]' '[:lower:]'"); or set -l osname (/usr/bin/uname | tr '[:upper:]' '[:lower:]' 2>/dev/null) # fix for lacking MSYS2 path; 2nd nee...
Improve OS detection, adding Windows Subsystem for Linux
Improve OS detection, adding Windows Subsystem for Linux
fish
mit
eugenesvk/Settings-Fish
a4bcef86620fcde5f718a1a51d152f86122cc931
fish/.config/fish/config.fish
fish/.config/fish/config.fish
set PATH ~/npm/bin $PATH set EDITOR vim set VISUAL vim set fish_greeting "" # Kill all running containers. alias dockerkill='docker kill (docker ps -q)' # Delete all docker images and containers. alias dockernuke='docker rm (docker ps -a -q); docker rmi -f (docker images -q)' # Git alias. alias g="git" alias gs="cow...
set PATH ~/npm/bin $PATH set BROWSER firefox set EDITOR vim set VISUAL vim set fish_greeting "" # Kill all running containers. alias dockerkill='docker kill (docker ps -q)' # Delete all docker images and containers. alias dockernuke='docker rm (docker ps -a -q); docker rmi -f (docker images -q)' # Git alias. alias g...
Set a browser in my terminal
Set a browser in my terminal
fish
unlicense
Olical/dotfiles,Wolfy87/dotfiles,Wolfy87/dotfiles
c3f7b7822e286275f58c9656110a623af8902551
fish/functions/randombase64.fish
fish/functions/randombase64.fish
function randombase64 -d "Generate random base64 string" set -l n $argv[1]; test -z $n; and set n 16 # https://en.wikipedia.org/wiki/Birthday_problem#Probability_table dd if=/dev/urandom bs=1 count=$n ^/dev/null | base64 | tr -d "[/+]" | cut -b -$n end
function randombase64 -d "Generate random base64 string" set -l n $argv[1]; test -z $n; and set n 16 # https://en.wikipedia.org/wiki/Birthday_problem#Probability_table dd if=/dev/urandom bs=1 count=$n 2>/dev/null | base64 | tr -d "[/+]" | cut -b -$n end
Switch to non-deprecated redirection syntax
Switch to non-deprecated redirection syntax
fish
apache-2.0
ithinkihaveacat/dotfiles,ithinkihaveacat/dotfiles,ithinkihaveacat/dotfiles
0b52f2adab44cc4cc560ab1a41ff8a2390c8ed76
__is_a_bundled_executable.fish
__is_a_bundled_executable.fish
function __is_a_bundled_executable if available bundle set -l bindir (command bundle exec ruby -e "puts Gem.bindir") test -f "$bindir/$argv" else return 1 end end
function __is_a_bundled_executable if type -q bundle set -l bindir (command bundle exec ruby -e "puts Gem.bindir") test -f "$bindir/$argv" else return 1 end end
Replace `available` usage with `type -q`
Replace `available` usage with `type -q`
fish
mit
oh-my-fish/plugin-bundler
1db8d10d775562883d489fa548143135f1aae41d
fish/.config/fish/functions/fish_user_key_bindings.fish
fish/.config/fish/functions/fish_user_key_bindings.fish
function fish_user_key_bindings bind --erase \cd bind \e\[A 'history --merge ; up-or-search' end
function fish_user_key_bindings bind \e\[A 'history --merge ; up-or-search' end
Allow Ctrl-d to exit a shell
[fish] Allow Ctrl-d to exit a shell - Haven't been pressing it accidentally of late and it's a convenient way to quit the shell
fish
mit
spinningarrow/.files,spinningarrow/.files
108e2a17db65386657da6d5f9f3f2629a346a0b6
fish/.config/fish/conf.d/env.fish
fish/.config/fish/conf.d/env.fish
# environment variables set -gx GOPATH ~/.go set -gx fish_user_paths $GOPATH/bin set -gx EDITOR nvim set -gx FZF_DEFAULT_COMMAND 'ag --hidden --ignore .git -l -g ""' set -gx FZF_DEFAULT_OPTS '--color=16,fg+:4' set -gx FZF_CTRL_T_COMMAND 'ag --hidden --ignore .git -l -g ""' set -gx FZF_CTRL_R_OPTS '--reverse' set -gx fi...
# environment variables set -gx GOPATH ~/.go set -gx fish_user_paths $GOPATH/bin set -gx EDITOR nvim set -gx FZF_DEFAULT_COMMAND 'ag --hidden --ignore .git -l -g ""' set -gx FZF_DEFAULT_OPTS '--color=16,fg+:4 --ansi' set -gx FZF_CTRL_T_COMMAND 'ag --hidden --ignore .git -l -g ""' set -gx FZF_CTRL_R_OPTS '--reverse' set...
Make fzf use --ansi by default (for colored input & whatnot)
Make fzf use --ansi by default (for colored input & whatnot)
fish
bsd-3-clause
alpinebutterfly/dotfiles,alpinebutterfly/dotfiles,mpcsh/dotfiles
72b3f73b451c46506b564038739c082c1ef095b8
configs/config/fish/config.fish
configs/config/fish/config.fish
set -x PATH $PATH $HOME/.dotfiles/scripts # aliases alias vim 'nvim' alias tmux-reload 'tmux source-file ~/.tmux.conf' alias git 'hub' alias bnode 'babel-node' alias em 'emacs' alias psp 'psc-package' # settings set -x EDITOR nvim set -x TERM xterm-256color set -e fish_greeting set -x LESS '-R' # path set -x PATH /u...
set -x PATH $PATH $HOME/.dotfiles/scripts # aliases alias vim 'nvim' alias tmux-reload 'tmux source-file ~/.tmux.conf' alias git 'hub' alias bnode 'babel-node' alias em 'emacs' alias psp 'psc-package' # settings set -x EDITOR nvim set -x TERM xterm-256color set -e fish_greeting set -x LESS '-R' # path set -x PATH /u...
Add a fish function to test psci
Add a fish function to test psci
fish
mit
noraesae/dotfiles,noraesae/dotfiles,noraesae/dotfiles
2555001c9e2eee06519a7fd5d986f9d6f057b418
config/dotfile/init.fish
config/dotfile/init.fish
function dotfile::append_env if not contains $argv[1] $argv[2] set --append $argv[1] $argv[2] end end function dotfile::prepend_env if not contains $argv[1] $argv[2] set --prepend $argv[1] $argv[2] end end function dotfile::set_env set --export --global $argv[1] $argv[2] end funct...
function dotfile::append_env set --local name $argv[1] set --local values $argv[2] if not set --query $name dotfile::set_env $name $values return end for value in (string split ":" $values) if not contains $value $$name set --append $name $value end ...
Support colon separated environmental variables
Support colon separated environmental variables
fish
mit
charlesbjohnson/dotfiles,charlesbjohnson/dotfiles
d0c866f7c94c44668a606757070e0b850bfb50c6
functions/create-bucket.fish
functions/create-bucket.fish
function create-bucket --argument-names name print-status s3/create-bucket $name aws s3api create-bucket --bucket $name end
function create-bucket --argument-names name print-status s3/create-bucket $name set --local options has region s3/buckets/$name and set -- options $options --create-bucket-configuration LocationConstraint=(get s3/buckets/$name/region) aws s3api create-bucket --bucket $name $options end
Add support for bucket regions
Add support for bucket regions
fish
mit
colstrom/piranha,colstrom/shellops-aws
22d40907f95655e8cc34869cddc9b2b4f4bbc562
stowed/.config/fish/config.fish
stowed/.config/fish/config.fish
set -gx NPM_DIR "$HOME/.npm-data" set -gx NODE_PATH "$NPM_DIR/lib/node_modules:$NODE_PATH" set -gx PATH ~/bin $NPM_DIR/bin $PATH mkdir -p ~/bin $NPM_DIR/bin set -gx fish_greeting "" test -d ~/.linuxbrew && eval (~/.linuxbrew/bin/brew shellenv) test -d /home/linuxbrew/.linuxbrew && eval (/home/linuxbrew/.linuxbrew/bi...
set -gx NPM_DIR "$HOME/.npm-data" set -gx NODE_PATH "$NPM_DIR/lib/node_modules:$NODE_PATH" set -gx PATH ~/bin $NPM_DIR/bin $HOME/.local/bin $PATH mkdir -p ~/bin $NPM_DIR/bin set -gx fish_greeting "" test -d ~/.linuxbrew && eval (~/.linuxbrew/bin/brew shellenv) test -d /home/linuxbrew/.linuxbrew && eval (/home/linuxb...
Add python pip dir to path
Add python pip dir to path
fish
unlicense
Olical/dotfiles
41a844d81ab0e570511ea84f4250871b07f21d59
nix/.config/nixpkgs/setup/fish/interactiveShellInit.fish
nix/.config/nixpkgs/setup/fish/interactiveShellInit.fish
command -sq fluidsynth; and function playmidi fluidsynth -i ~/lib/arachno-soundfont/Arachno\ SoundFont\ -\ Version\ 1.0.sf2 $argv end command -sq kitty; and function icat kitty +kitten icat end command -sq kubectl; and function kcexec argparse -N 2 --name=kcexec 'r/replica=' -- $argv or return ...
command -sq fluidsynth; and function playmidi fluidsynth -i ~/lib/arachno-soundfont/Arachno\ SoundFont\ -\ Version\ 1.0.sf2 $argv end command -sq kitty; and function icat kitty +kitten icat end command -sq kubectl; and function kcexec argparse -N 2 --name=kcexec 'r/replica=' -- $argv or return ...
Set fish_greeting in k8s shells
[nix/fish] Set fish_greeting in k8s shells
fish
bsd-2-clause
lhrkkk/dotfiles,lhrkkk/dotfiles
52416a839f71f0d367c1e9f7b434f3dbcd5867cb
fish/functions/pip_save.fish
fish/functions/pip_save.fish
function pip_save set -l reqs "requirements.txt" pip install $argv[1] set freeze (pip freeze | grep $argv[1]) set tfile (mktemp) cp $reqs $tfile echo $freeze >> $tfile uniq $tfile | sort -o $reqs end
Add cool pip save helper
Add cool pip save helper
fish
mit
justuswilhelm/pufferfish,justuswilhelm/pufferfish
9063a9fe2ae4c4d5368346480b853fc88d4708c9
fish/.config/fish/config.fish
fish/.config/fish/config.fish
set fish_greeting "" set LANG en_GB.UTF-8 set PATH ~/bin $PATH set EDITOR nvim set VISUAL nvim # Kill all running containers. alias dockerkill='docker kill (docker ps -q)' # Delete all docker images and containers. alias dockernuke='docker rm (docker ps -a -q); docker rmi -f (docker images -q)' # Other git aliases a...
set fish_greeting "" set LANG en_GB.UTF-8 set PATH ~/bin ~/npm/bin $PATH set EDITOR nvim set VISUAL nvim # Kill all running containers. alias dockerkill='docker kill (docker ps -q)' # Delete all docker images and containers. alias dockernuke='docker rm (docker ps -a -q); docker rmi -f (docker images -q)' # Other git...
Add npm to the path again
Add npm to the path again
fish
unlicense
Olical/dotfiles,Wolfy87/dotfiles,Wolfy87/dotfiles
4613e1007c2f8116c3fbc6b0152983ef64ad0fc9
fasd/init.fish
fasd/init.fish
# # Maintains a frequently used file and directory list for fast access. # # Avoid config if requirements are not found. if not type -q fasd exit end # # Tweaks # # Change fasd data dir set -x _FASD_DATA "$HOME/.cache/fasd/data" # # Aliases # alias ao 'fasd -a -e atom' # find files/dirs with fasd and open them i...
# # Maintains a frequently used file and directory list for fast access. # # Avoid config if requirements are not found. if not type -q fasd exit end # # Tweaks # # Create fasd data dir if it's not already created mkdir -p "$HOME/.cache/fasd" # Change fasd data dir set -x _FASD_DATA "$HOME/.cache/fasd/data" # # ...
Add command to create folder for fasd during its setup
Add command to create folder for fasd during its setup
fish
unlicense
guerrero/dotfiles
5e52356b74fd101fa779849c971f648cff782c5d
fish/.config/fish/config.fish
fish/.config/fish/config.fish
mkdir -p ~/bin ~/npm/bin ~/.cargo/bin set fish_greeting "" set LANG en_GB.UTF-8 set PATH ~/bin ~/npm/bin ~/.cargo/bin ~/.gem/ruby/2.5.0/bin $PATH set BROWSER chromium set EDITOR nvim set VISUAL nvim # Kill all running containers. alias dockerkill='docker kill (docker ps -q)' # Delete all docker images and containers...
mkdir -p ~/bin ~/npm/bin ~/.cargo/bin ~/.gem/ruby/2.5.0/bin set fish_greeting "" set LANG en_GB.UTF-8 set PATH ~/bin ~/npm/bin ~/.cargo/bin ~/.gem/ruby/2.5.0/bin $PATH set BROWSER chromium set EDITOR nvim set VISUAL nvim # Kill all running containers. alias dockerkill='docker kill (docker ps -q)' # Delete all docker...
Make sure the ruby gem bin dir exists
Make sure the ruby gem bin dir exists
fish
unlicense
Wolfy87/dotfiles,Olical/dotfiles,Wolfy87/dotfiles
6a574eab49b67246967665b5301a7d57ff30b82d
fish/.config/fish/config.fish
fish/.config/fish/config.fish
set PATH ~/bin ~/npm/bin $PATH set EDITOR nvim set VISUAL nvim set fish_greeting "" # Kill all running containers. alias dockerkill='docker kill (docker ps -q)' # Delete all docker images and containers. alias dockernuke='docker rm (docker ps -a -q); docker rmi -f (docker images -q)' # Git alias. alias g="git" # St...
set PATH ~/bin ~/npm/bin $PATH set EDITOR nvim set VISUAL nvim set fish_greeting "" # Kill all running containers. alias dockerkill='docker kill (docker ps -q)' # Delete all docker images and containers. alias dockernuke='docker rm (docker ps -a -q); docker rmi -f (docker images -q)' # Other git aliases are in git c...
Add an alias vimdiff -> nvim -d
Add an alias vimdiff -> nvim -d
fish
unlicense
Olical/dotfiles,Wolfy87/dotfiles,Wolfy87/dotfiles
2f95508daabb1c4d557d25da81d24ab4cb9ffbdf
conf.d/_mason-system-info.fish
conf.d/_mason-system-info.fish
function system-info -d 'Print the system information' free -m | awk 'NR==2{printf "Memory Usage: %s/%sMB (%.2f%)\n", $3,$2,$3*100/$2 }' df -h | awk '$NF=="/"{printf "Disk Usage: %d/%dGB (%s)\n", $3,$2,$5}' top -bn1 | grep load | awk '{printf "CPU Load: %.2f\n", $(NF-2)}' end
function system-info -d 'Print the system information' free -m | awk 'NR==2{printf "Memory Usage: %s/%sMB (%.2f%)\n", $3,$2,$3*100/$2 }' df -h | awk '$NF=="/"{printf "Disk Usage: %d/%dGB (%s)\n", $3,$2,$5}' top -bn1 | grep load | awk '{printf "CPU Load: %.2f\n", $(NF-2)}' end function open-file-info -d 'Print th...
Add `open-file-info` alias to show the number of current open files descriptors
Add `open-file-info` alias to show the number of current open files descriptors
fish
mit
masonwan/fish-config,masonwan/fish-config
520992b61090c21495f31ac9425c2a7ce8d7f1f4
omf/init.fish
omf/init.fish
set fish_greeting '' # PATH set PATH '/usr/local/sbin' $PATH set PATH '/usr/local/bin' $PATH set PATH "$HOME/.cargo/bin" $PATH set PATH "$HOME/bin" $PATH # Environment variables - https://fishshell.com/docs/current/commands.html#set set -xg EDITOR 'nvim' set -xg BUNDLER_EDITOR $EDITOR set -xg MANPAGER 'less -X' # Don...
set fish_greeting '' # PATH set PATH '/usr/local/sbin' $PATH set PATH '/usr/local/bin' $PATH set PATH "$HOME/.cargo/bin" $PATH set PATH "$HOME/bin" $PATH # Environment variables - https://fishshell.com/docs/current/commands.html#set set -xg EDITOR 'nvim' set -xg BUNDLER_EDITOR $EDITOR set -xg MANPAGER 'less -X' # Don...
Set FZF_DEFAULT_COMMAND to use rg.
Set FZF_DEFAULT_COMMAND to use rg.
fish
mit
joshukraine/dotfiles,joshukraine/dotfiles,joshukraine/dotfiles
5d83c68674f039bdbbd5d74cf0dfc10c8aca2772
fish/config.fish
fish/config.fish
# gvm # https://github.com/moovweb/gvm bass [[ -s "$HOME/.gvm/scripts/gvm" ]] bass source "$HOME/.gvm/scripts/gvm" # remove greeting set fish_greeting # Set aliases alias k "kubectl" alias c "clear" alias b "babel-node" alias fi "fisher" alias tc "itermocil" alias brc "brew cask" alias brci "brew cask install" alias ...
# gvm # https://github.com/moovweb/gvm bass [[ -s "$HOME/.gvm/scripts/gvm" ]] bass source "$HOME/.gvm/scripts/gvm" # remove greeting set fish_greeting # Set aliases alias k "kubectl" alias c "clear" alias b "babel-node" alias fi "fisher" alias tc "itermocil" alias brc "brew cask" alias brci "brew cask install" alias ...
Add a couple of git aliases
Add a couple of git aliases
fish
unlicense
mistadikay/dotfiles
74a17bac5d371bd68d56fbb9b39118371c4aa8ab
.config/fish/functions/psource.fish
.config/fish/functions/psource.fish
function psource -d 'Execute POSIX shell script in the current shell context' /bin/sh -c '. "$@"; XDG_CONFIG_HOME="${0%/*/*}/etc" "$0" -c "set -gxL" | sed -e "/^\(HOME\|LC_CTYPE\|PATH\|PWD\|SHLVL\|USER\|XDG_CONFIG_HOME\) /d" -e "s/^/set -gx /" >&3' (status fish-path) $argv 3>| source end
function psource -d 'Execute POSIX shell script in the current shell context' /bin/sh -c '. "$@"; XDG_CONFIG_HOME="${0%/*/*}/etc" "$0" -c "set -gxL" | sed -e "/^HOME /d" -e "/^LC_CTYPE /d" -e "/^PATH /d" -e "/^PWD /d" -e "/^SHLVL /d" -e "/^USER /d" -e "/^XDG_CONFIG_HOME /d" -e "s/^/set -gx /" >&3' (status fish-path) ...
Make sed syntax bsd compatible
Make sed syntax bsd compatible
fish
bsd-2-clause
ntkme/ntkme,ntkme/ntkme
50731b95fa69284f358b5e0c6635ed47c9bdece5
itunes.fish
itunes.fish
function itunes -d "Control iTunes. Use -h or --help for a more detailed description." if [ (count $argv) -gt 0 ] set -l opt $argv[1] switch $opt case launch play pause stop rewind resume quit case mute set opt "set mute to true" case unmute set opt "set mute to false" ...
function itunes -d "Control iTunes. Use -h or --help for a more detailed description." if [ (count $argv) -gt 0 ] set -l opt $argv[1] switch $opt case launch play pause stop rewind resume quit case mute set opt "set mute to true" case unmute set opt "set mute to false" ...
Improve `itune`'s `--help` output with usage info
Improve `itune`'s `--help` output with usage info
fish
mit
scorphus/plugin-osx,oh-my-fish/plugin-osx
c89884e2d0ea68727e7035c328b4d6dac8ec1355
fish/config.fish
fish/config.fish
# Neovim set --local neovim_guis \ /Applications/FVim.app/Contents/MacOS/FVim \ /Applications/goneovim.app/Contents/MacOS/goneovim set --export EDITOR $neovim_guis[(random 1 2)] # XDG set --export XDG_CONFIG_HOME $HOME/.config set --export XDG_DATA_HOME $HOME/.local/share # Nix set --export NIX_PATH nixpkgs=$HOME/....
# Locale set --export LANG en_GB.UTF-8 set --export LC_ALL $LANG # Neovim set --local neovim_guis \ /Applications/FVim.app/Contents/MacOS/FVim \ /Applications/goneovim.app/Contents/MacOS/goneovim set --export EDITOR $neovim_guis[(random 1 2)] # XDG set --export XDG_CONFIG_HOME $HOME/.config set --export XDG_DATA_H...
Set locale to British English
Fish: Set locale to British English With this commands like ls show dates in the correct format (i.e. day before month)
fish
unlicense
tssm/.config,tssm/.config,tssm/.config,tssm/.config
c2103b6d430c86e3d1e93bce9f689ab2361e485f
global_requirements.fish
global_requirements.fish
function __vfext_global_requirements --on-event virtualenv_did_create if test -f $VIRTUALFISH_HOME/global_requirements.txt pip install -r $VIRTUALFISH_HOME/global_requirements.txt end end function __vf_requirements --description "Edit the global requirements file for all virtualenvs" eval $EDITOR $...
function __vfext_global_requirements --on-event virtualenv_did_create if test -f $VIRTUALFISH_HOME/global_requirements.txt pip install -r $VIRTUALFISH_HOME/global_requirements.txt end end function __vf_requirements --description "Edit the global requirements file for all virtualenvs" eval $EDITOR $...
Use wheel for global requirements if it's enabled.
Use wheel for global requirements if it's enabled.
fish
mit
KORKIMERA/virtualfish,mbr/virtualfish,adambrenecki/virtualfish,scorphus/virtualfish,arvids/virtualfish,scorphus/virtualfish,adambrenecki/virtualfish,mbr/virtualfish,arvids/virtualfish,KORKIMERA/virtualfish
24767cef9164af0446a8262df6fd295c56c51004
apps/fish/.config/fish/functions/export.fish
apps/fish/.config/fish/functions/export.fish
# Language settings set -x LC_ALL en_US.UTF-8 set -x LC_CTYPE en_US.UTF-8 # respect local bins set -x PATH "./bin" $PATH # editor set -x EDITOR "nvim" # LESS with colors # from http://blog.0x1fff.com/2009/11/linux-tip-color-enabled-pager-less.html set -x LESS "-RSM~gIsw" # Colorful man pages # from http://pastie.or...
# Language settings set -x LC_ALL en_US.UTF-8 set -x LC_CTYPE en_US.UTF-8 # respect local bins set -x PATH "./bin" $PATH # editor set -x EDITOR "nvim" # LESS with colors # from http://blog.0x1fff.com/2009/11/linux-tip-color-enabled-pager-less.html set -x LESS "-RSM~gIsw" # Colorful man pages # from http://pastie.or...
Remove grep colors. Its is obsolete
Remove grep colors. Its is obsolete
fish
mit
KyleOndy/dotfiles,KyleOndy/.dotfiles,KyleOndy/dotfiles,KyleOndy/dotfiles
add84a8ac6245bc072c8dd0fb0fb3934667306b1
.config/fish/config.fish
.config/fish/config.fish
set --export EDITOR vim set --export PATH /usr/local/bin $PATH set fish_color_command white set fish_color_autosuggestion yellow set fish_pager_color_description yellow set fish_color_param white
set --export EDITOR vim set --export PATH /usr/local/bin $PATH set fish_color_command white set fish_color_autosuggestion yellow set fish_pager_color_description yellow set fish_color_param white status --is-interactive; and . (rbenv init -|psub)
Initialize rbenv when starting a fish shell
Initialize rbenv when starting a fish shell
fish
mit
lenon/dotfiles
b8ccbc313a9067530d2612fd691de4b2ae073d24
config/fish/config.fish
config/fish/config.fish
direnv hook fish | source opam config env | source set brew_rbenv "/usr/local/var/rbenv/shims" set -gx EDITOR vim set -gx GIT_EDITOR vim set -gx RBENV_ROOT /usr/local/var/rbenv set -gx PYENV_ROOT /usr/local/var/pyenv set -gx GOPATH /usr/local/var/go set -gx NVM_DIR /usr/local/var/nvm set -gx DOCKER_USER rajatvig se...
direnv hook fish | source opam config env | source thefuck --alias | source set brew_rbenv "/usr/local/var/rbenv/shims" set -gx EDITOR vim set -gx GIT_EDITOR vim set -gx RBENV_ROOT /usr/local/var/rbenv set -gx PYENV_ROOT /usr/local/var/pyenv set -gx GOPATH /usr/local/var/go set -gx NVM_DIR /usr/local/var/nvm set -gx...
Add alias for the thefuck
Add alias for the thefuck
fish
mit
rajatvig/dotfiles,rajatvig/dotfiles
ac6ecb8d7cbe9783dcc364b6349fe7bde0bad0f3
fish/config.fish
fish/config.fish
# gvm # https://github.com/moovweb/gvm bass [[ -s "$HOME/.gvm/scripts/gvm" ]] bass source "$HOME/.gvm/scripts/gvm" # remove greeting set fish_greeting # Set aliases alias k "kubectl" alias c "clear" alias b "babel-node" alias fi "fisher" alias tc "itermocil" alias brc "brew cask" alias brci "brew cask install" alias ...
# gvm # https://github.com/moovweb/gvm bass [[ -s "$HOME/.gvm/scripts/gvm" ]] bass source "$HOME/.gvm/scripts/gvm" # remove greeting set fish_greeting # Set aliases alias k "kubectl" alias c "clear" alias b "babel-node" alias fi "fisher" alias tc "itermocil" alias brc "brew cask" alias brci "brew cask install" alias ...
Add local executables to PATH
Add local executables to PATH
fish
unlicense
mistadikay/dotfiles
0bd2f6d7cd8ddca9d5bda669457938fc8be64ca2
fish_prompt.fish
fish_prompt.fish
function fish_prompt --description 'Write out the prompt' set exit_code $status # Just calculate this once, to save a few cycles when displaying the prompt if not set -q __fish_prompt_hostname set -g __fish_prompt_hostname (hostname|cut -d . -f 1) end set -l suffix switch (whoami) case root toor set suff...
Add prompt function for fish shell
Add prompt function for fish shell Prompt is green if last command exit code was 0; red othewrwise Prompt displays branch name if in a git repository
fish
unlicense
hughjdavey/nixtools
d3bd3f2ce5ff4d6e74327a7c237086e1e41fb637
fish/common.fish
fish/common.fish
. ~/.config/fish/aliases.fish . ~/.config/fish/abbr.fish eval (python -m virtualfish compat_aliases) set -x PATH /usr/local/bin $PATH set -x EDITOR vim # GIT PROMPT CONFIG set -g __fish_git_prompt_show_informative_status 1 set -g __fish_git_prompt_char_dirtystate "+" set -g __fish_git_prompt_char_untrackedfiles "." ...
. ~/.config/fish/aliases.fish . ~/.config/fish/abbr.fish eval (python -m virtualfish compat_aliases) eval (hub alias -s) set -x PATH /usr/local/bin $PATH set -x EDITOR vim # GIT PROMPT CONFIG set -g __fish_git_prompt_show_informative_status 1 set -g __fish_git_prompt_char_dirtystate "+" set -g __fish_git_prompt_char...
Add hub alias to fish config
Add hub alias to fish config
fish
mit
whwright/dotfiles,whwright/dotfiles,whwright/dotfiles,wright8191/dotfiles
14e0aada391f0c80003bb679c4ecc9f75eaa13e7
fish_prompt.fish
fish_prompt.fish
# name: GitStatus # Find latest version from: https://github.com/godfat/fish_prompt-gitstatus function _git_branch_name echo (command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||') end function _git_status_symbol set -l git_status (git status --porcelain ^/dev/null) if test -n "$git_status" #...
# name: GitStatus # Find latest version from: https://github.com/godfat/fish_prompt-gitstatus function _git_branch_name echo (command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||') end function _git_status_symbol set -l git_status (git status --porcelain ^/dev/null) if test -n "$git_status" #...
Fix where it shows extra a space
themes/gitstatus: Fix where it shows extra a space For example, if $HOME is not a git repository, it should show: ~> But previously it incorrectly showed: ~ > This commit makes it aware of such case, inserting the space accordingly instead of always adding a space.
fish
mit
oh-my-fish/theme-gitstatus
1d7f4bff682a9c81018384563071d14b39ba6ee2
fish/config.fish
fish/config.fish
# Set path set -x PATH $PATH /Users/sahil/Documents/dev/android/adt/sdk/platform-tools /Users/sahil/Documents/dev/android/adt/sdk/tools /usr/local/heroku/bin /usr/local/bin /usr/local/sbin $HOME/bin # Initialise rbenv set PATH $HOME/.rbenv/bin $PATH set PATH $HOME/.rbenv/shims $PATH rbenv rehash >/dev/null ^&1 # Incl...
# Set path set -x PATH $PATH /Users/sahil/Documents/dev/android/adt/sdk/platform-tools /Users/sahil/Documents/dev/android/adt/sdk/tools /usr/local/heroku/bin /usr/local/bin /usr/local/sbin $HOME/bin # Initialise rbenv set PATH $HOME/.rbenv/bin $PATH set PATH $HOME/.rbenv/shims $PATH rbenv rehash >/dev/null ^&1 # Incl...
Use colors in grep (dunno how it was working previously)
Use colors in grep (dunno how it was working previously)
fish
mit
spinningarrow/.files,spinningarrow/.files
28382460c814245fd62ffd0bdebfc0fb3a6a51a6
key_bindings.fish
key_bindings.fish
bind \cg '__ghq_crtl_g' if bind -M insert >/dev/null ^/dev/null bind -M insert \cg '__ghq_crtl_g' end
bind \cg '__ghq_crtl_g' if bind -M insert >/dev/null 2>/dev/null bind -M insert \cg '__ghq_crtl_g' end
Use "2>" to redirect stderr instead of the deprecated "^"
Use "2>" to redirect stderr instead of the deprecated "^" See this GH issue for more information: https://github.com/fish-shell/fish-shell/issues/4394
fish
mit
decors/fish-ghq
353d7c0b008c7f1180a16b0f8aa582f5867c8ed7
fish/config.fish
fish/config.fish
set PATH /usr/local/sbin $PATH # Perl set -x PERL_MM_OPT "INSTALL_BASE=$HOME/perl5" eval (perl -I$HOME/perl5/lib/perl5 -Mlocal::lib) # Android tools set PATH ~/Library/Android/sdk/platform-tools $PATH # Add directory with "subl" command to lunch Sublime Text set PATH /Applications/Sublime\ Text.app/Contents/SharedSu...
set PATH /usr/local/sbin $PATH # Perl set -x PERL_MM_OPT "INSTALL_BASE=$HOME/perl5" eval (perl -I$HOME/perl5/lib/perl5 -Mlocal::lib) # Android tools set PATH ~/Library/Android/sdk/platform-tools $PATH # Add directory with "subl" command to lunch Sublime Text set PATH /Applications/Sublime\ Text.app/Contents/SharedSu...
Remove unnecessary trailing slash from a PATH item
Remove unnecessary trailing slash from a PATH item
fish
mit
gentlecat/dotfiles,gentlecat/dotfiles,gentlecat/dotfiles
daa5d4867ec448ba4a70937cfa04e53342efdc54
.config/fish/functions/gscp.fish
.config/fish/functions/gscp.fish
function gscp -d "Create patch for head and scp it" git show HEAD -U999999 > /tmp/head.patch scp /tmp/patch "$argv":/tmp/head.patch end
Add fish function to scp commits
Add fish function to scp commits I often need to scp a commit from one machine to another. This helper should streamline that process.
fish
mit
JDevlieghere/dotfiles,JDevlieghere/dotfiles,Gres/dotfiles,Gres/dotfiles,JDevlieghere/dotfiles,Gres/dotfiles
6cccec2257186b0b01e30487f8c6c739aa64fc4b
conf.d/rbenv.fish
conf.d/rbenv.fish
set -l rbenv_root (rbenv root) set -U fish_user_paths $fish_user_paths $rbenv_root/shims set -xg RBENV_SHELL fish command mkdir -p $rbenv_root/{shims,versions} command rbenv rehash 2>/dev/null
set -l rbenv_root (rbenv root) set -x PATH $rbenv_root/shims $PATH set -x RBENV_SHELL fish command mkdir -p $rbenv_root/{shims,versions} command rbenv rehash 2>/dev/null
Fix setting of environment variables
conf: Fix setting of environment variables
fish
mit
daenney/fisherman-rbenv
423e4bfcb0fb293aa24c74139cd299547c7bd2f2
fish/.config/fish/functions/fish_title.fish
fish/.config/fish/functions/fish_title.fish
function fish_title # $argv is always the last command, but fish_title is called before and after # the command executes, so this conditional uses just the pwd if test $_ = "fish" set title (prompt_pwd) else set title (prompt_pwd) $argv end test -n "$TMUX"; and tmux rename-window "$title" echo $ti...
Set fish terminal title and tmux window name
Set fish terminal title and tmux window name
fish
agpl-3.0
andschwa/dotfiles,andschwa/dotfiles,andschwa/dotfiles
05cdc7ee4e01c1011906fc345b94a418fdd6dbac
fish/config.fish
fish/config.fish
# Atom set -gx EDITOR 'atom -wd' set -gx ATOM_REPOS_HOME /Projects/2014/ryansobol # chruby source /usr/local/share/chruby/chruby.fish source /usr/local/share/chruby/auto.fish # virtualfish source ~/.virtualfish/virtual.fish source ~/.virtualfish/projects.fish
# Atom set -gx EDITOR 'atom -w' set -gx ATOM_REPOS_HOME /Projects/2014/ryansobol # chruby source /usr/local/share/chruby/chruby.fish source /usr/local/share/chruby/auto.fish # virtualfish source ~/.virtualfish/virtual.fish source ~/.virtualfish/projects.fish
Remove debug flag from the default EDITOR
Remove debug flag from the default EDITOR
fish
mit
ryansobol/config,ryansobol/config
b5213eb82e30526d43e8713735a3ebb37cab5ef9
fish/config.fish
fish/config.fish
alias dir="ls -l" # https://github.com/fish-shell/fish-shell/blob/master/share/functions/__fish_git_prompt.fish set -g __fish_git_prompt_showupstream "auto" set -g __fish_git_prompt_showstashstate "1" set -g __fish_git_prompt_showdirtystate "1"
function dir ls -l $argv end # https://github.com/fish-shell/fish-shell/blob/master/share/functions/__fish_git_prompt.fish set -g __fish_git_prompt_showupstream "auto" set -g __fish_git_prompt_showstashstate "1" set -g __fish_git_prompt_showdirtystate "1"
Switch "dir" from alias to function
Switch "dir" from alias to function
fish
apache-2.0
ithinkihaveacat/dotfiles,ithinkihaveacat/dotfiles,ithinkihaveacat/dotfiles
47e30dc926c6986c150afbf79f8ce6e07eaa2053
fish_prompt.fish
fish_prompt.fish
# name: Gianu function _git_branch_name echo (command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||') end function _is_git_dirty echo (command git status -s --ignore-submodules=dirty ^/dev/null) end function fish_prompt set -l cyan (set_color cyan) set -l yellow (set_color -o yellow) set -l re...
# name: Gianu function _git_branch_name echo (command git symbolic-ref HEAD 2> /dev/null | sed -e 's|^refs/heads/||') end function _is_git_dirty echo (command git status -s --ignore-submodules=dirty 2> /dev/null) end function fish_prompt set -l cyan (set_color cyan) set -l yellow (set_color -o yellow) set -...
Make stderr redirection compatible with Fish 3.0.
Make stderr redirection compatible with Fish 3.0.
fish
mit
oh-my-fish/theme-gianu
e719add99e8096964e4e4d6c12d911ff49fc6a9a
fish/functions/fish_prompt.fish
fish/functions/fish_prompt.fish
function fish_prompt --description 'Compose fish prompt' set -l last_status $status set -l status_string '' if test $status -ne 0 set status_string (set_color red --bold) '(' $last_status ') ' (set_color normal) end set -l virtualenv_string '' if set -q VIRTUAL_ENV set virtual...
function fish_prompt --description 'Compose fish prompt' set -l status_string if test $status -ne 0 set status_string (set_color red) '(!) ' (set_color normal) end set -l virtualenv_string '' if set -q VIRTUAL_ENV set virtualenv_string ' ' (set_color brown) '(' (basename "$VIRTUAL_...
Reformat none zero exit status
fish: Reformat none zero exit status
fish
mit
sebastianmarkow/dotfiles
f688479af2d680a3131ff34acff5a8609abdf75e
functions/mfa-enabled.fish
functions/mfa-enabled.fish
function mfa-enabled --argument user trace (status --current-filename) $argv if empty "$user" usage mfa-enabled '<user>' return (false) end contains $user (users-with-mfa) set enabled $status if test $enabled -eq 0 print --tag=mfa-enabled --pass $argv else ...
Add function to check if a user has MFA enabled
Add function to check if a user has MFA enabled
fish
mit
colstrom/piranha,colstrom/shellops-aws
56ef3979d238428b40776121ab5f58593f9e70c7
fish_greeting.fish
fish_greeting.fish
function fish_greeting -d "what's up, fish?" set_color $fish_color_autosuggestion[1] uname -npsr uptime set_color normal end
function fish_greeting -d "what's up, fish?" set_color $fish_color_autosuggestion uname -npsr uptime set_color normal end
Fix fish greeting when autosuggest is bold.
Fix fish greeting when autosuggest is bold. See also #39
fish
mit
oh-my-fish/theme-bobthefish
a704bd16a6c9b218a87fcc1a73e8ba02051aaf00
functions/grs.fish
functions/grs.fish
function grs --description="git reset" set -l arguments set -l cmd "command git diff --cached --name-only" if test (count $argv) -gt 0 set arguments (gish find -c $cmd $argv) if test -z $arguments set_color red echo "No matches found" set_color normal return 0 end end c...
Add a git reset wrapper
Add a git reset wrapper
fish
mit
RobertAudi/gish,RobertAudi/gish
aa9e28afc6823ed06b2eb978b13ab44ac3bbf324
.config/fish/functions/update-all.fish
.config/fish/functions/update-all.fish
function update-all -d "Update macOS software, Homebrew brews & casks, gems, packages (apms, npms), repos" # macOS software updates update-os # Homebrew brews updates update-brews # Homebrew cask updates update-casks # NPM updates update-npms # Gem updates update-gems # APM updates update-apms ...
function update-all -d "Update macOS software, Homebrew brews & casks, gems, packages (apms, npms), repos" # Ask for the administrator password upfront sudo -v # macOS software updates update-os # Homebrew brews updates update-brews # Homebrew cask updates update-casks # NPM updates update-npms # ...
Update fish configs and functions.
Update fish configs and functions.
fish
mit
FluxAugur/mac-os-dotfiles,FluxAugur/mac-os-dotfiles,FluxAugur/mac-os-dotfiles
a60eeeaf973e292e73bddf54aa39e02866bc904d
.github/scripts/bump-version.fish
.github/scripts/bump-version.fish
#! /usr/bin/env fish # Load utility functions set utilsFilePath (dirname (status -f))"/utils.fish" source "$utilsFilePath" set newVersion "$argv[1]" if test -z "$newVersion" set scriptName (basename (status -f)) error "Missing new version value." warn "Usage: " warn " ./$scriptName [newVersion]" ...
Add script for bumping project version
Add script for bumping project version
fish
mit
nozzlegear/ShopifySharp,clement911/ShopifySharp
1d46cf0339624942ddc9e1d44b20725d2f98aa7e
_python.fish
_python.fish
# Use python2 if found, otherwise fallback to python. function _python if which python2 python2 $argv else python $argv end end
# Use python2 if found, otherwise fallback to python. function _python if available python2 python2 $argv else python $argv end end
Use `available` to test if python2 is available
Use `available` to test if python2 is available
fish
mit
ricobl/plugin-python,oh-my-fish/plugin-python
600c20472f9086f5f4fbd1c1cf10ef7b59e9c7bc
fish_right_prompt.fish
fish_right_prompt.fish
# Display git branch and dirty bit and current time on the right function _git_branch_name echo (command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||') end function _is_git_dirty echo (command git status -s --ignore-submodules=dirty ^/dev/null) end function fish_right_prompt set -l cyan (set_co...
# Display git branch and dirty bit and current time on the right function _git_branch_name echo (command git symbolic-ref HEAD 2> /dev/null | sed -e 's|^refs/heads/||') end function _is_git_dirty echo (command git status -s --ignore-submodules=dirty 2> /dev/null) end function fish_right_prompt set -l cyan (set...
Make stderr redirection compatible with Fish 3.0.
Make stderr redirection compatible with Fish 3.0.
fish
mit
oh-my-fish/theme-cor
175fcd68e59de85351e1993c7cd3d2fb07ad0277
stowed/.config/fish/functions/sync.fish
stowed/.config/fish/functions/sync.fish
function sync # Early sudo because it's needed later. sudo echo "Updating everything!" yay cd ~/.config/nvim git pull --rebase --autostash ./sync.sh cd - end
function sync # Early sudo because it's needed later. sudo echo "Updating everything!" topgrade --disable git_repos containers vim cd ~/.config/nvim git pull --rebase --autostash ./sync.sh cd - end
Use topgrade to update everything
Use topgrade to update everything
fish
unlicense
Olical/dotfiles
39c4869e8bdc20075dc04e2a4505634689c1ba3c
fish/functions/fish_prompt.fish
fish/functions/fish_prompt.fish
function fish_prompt set stat $status if test $stat -ne 0 printf "%s[%s]%s" (set_color red) "$stat" (set_color normal) end set_color yellow printf '%s' (whoami) set_color normal printf '@' set_color magenta printf '%s' (hostname|cut -d . -f 1) set_color normal printf ' ' set_c...
Add fish prompt to source control.
Add fish prompt to source control.
fish
mit
brycepg/dotfiles,brycepg/dotfiles
9239040fbbe8ef4c01d7f90d5634d7a1e63c259c
fish/config.fish
fish/config.fish
# fzf and fzf.fish if command --query fzf # fzf.fish fzf_configure_bindings --directory=\cf --git_log=\cl --git_status=\cs set --global fzf_fd_opts --follow --hidden --exclude=Documents --exclude=Library --exclude=.git # fzf set --export FZF_DEFAULT_COMMAND "fd --type f --color always $fzf_fd_opts" set --e...
# fzf and fzf.fish if command --query fzf # fzf.fish fzf_configure_bindings --directory=\cf --git_log=\cl --git_status=\cs set --global fzf_fd_opts --follow --hidden --exclude=Documents --exclude=Library --exclude=.git # fzf set --export FZF_DEFAULT_COMMAND "fd --type f --color always $fzf_fd_opts" set --e...
Change fzf marker to bold checkmark
Change fzf marker to bold checkmark
fish
mit
ryansobol/config,ryansobol/config
0bc312889bdaa27e49173854359ad588b706ecf0
fish/.config/fish/functions/videograb.fish
fish/.config/fish/functions/videograb.fish
function videograb --description="Records video of screen selection in sway" # TODO: stop recording when recv SIGINT set --local record true function record_stop_handler --on-signal INT set --global record false end set TMPDIR (mktemp --directory) set CROP_COORDS (slop) set FOCUSED_MONITOR (swaymsg ...
function videograb --description="Records video of screen selection in sway" # TODO: stop recording when recv SIGINT set --local record true function record_stop_handler --on-signal INT set --global record false end set TMPDIR (mktemp --directory) set CROP_COORDS (slop) set FOCUSED_MONITOR (swaymsg ...
Fix output directory for recording
Fix output directory for recording
fish
mit
ammgws/dotfiles,ammgws/dotfiles,ammgws/dotfiles
bffecc013bc6b1f9006f1807bd3b5f8215da464c
functions/fold_string.fish
functions/fold_string.fish
function fold_string set -l fold_replace $argv[1] set -l fold_length $argv[2] if [ (string length $argv[3]) -le $fold_length ] echo $argv[3] else set -l prefix_length (math $fold_length - (string length $fold_replace)) set -l prefix (string sub -l $prefix_length $argv[3]) echo -n $prefix ech...
Add a fold string utility
Add a fold string utility
fish
mit
wilfriedvanasten/miscvar,wilfriedvanasten/miscvar,wilfriedvanasten/miscvar
b0207527607276b70e8eb45bef37750fd43ab195
lib/sudo.fish
lib/sudo.fish
function sudoer -d 'Check if user is admin' # channels are only moderated if they have a file in sudoers.d if test -f etc/sudoers.d/$CHAN # check global moderator list grep -Fxq $NICK etc/sudoers # then per chan list or grep -Fxq $NICK etc/sudoers.d/$CHAN or begin ...
function sudoer -d 'Check if user is admin' # check global moderator list grep -Fxq $NICK etc/sudoers # then per chan list or grep -Fxq $NICK etc/sudoers.d/$CHAN ^/dev/null or begin echo "Aquaman says he doesn't like you." false end end
Make all chans moderated, as acess is cross-chan
Make all chans moderated, as acess is cross-chan
fish
unlicense
scott-linder/irsh,scott-linder/irsh,scott-linder/irsh
7b6253fd03377cf8e5adc9d03d88586a7e38c14d
config/fish/config.fish
config/fish/config.fish
set -x COLOR_THEME dark set -x EDITOR vim set -x GOPATH $HOME/Projects/go set -x LANG en_US.UTF-8 set -x LC_ALL en_US.UTF-8 set fish_greeting set fish_key_bindings fish_vi_key_bindings set -x PATH $HOME/.cargo/bin $GOPATH/bin $HOME/.rbenv/bin $PATH rbenv init - | source set -x PATH .git/safe/../../bin $HOME/.bin $PATH...
set -x COLOR_THEME light set -x EDITOR vim set -x GOPATH $HOME/Projects/go set -x LANG en_US.UTF-8 set -x LC_ALL en_US.UTF-8 set fish_greeting set fish_key_bindings fish_vi_key_bindings set -x PATH $HOME/.cargo/bin $GOPATH/bin $HOME/.rbenv/bin /usr/local/sbin $PATH rbenv init - | source set -x PATH .git/safe/../../bin...
Add sbin path and newrelic alias
Add sbin path and newrelic alias
fish
mit
wangyuhere/dotfiles
51d4a6bde373f95bdad7666126b5faa8c7465ca1
.config/fish/functions/aliases.fish
.config/fish/functions/aliases.fish
#!/usr/bin/env fish alias rm="trash" alias t="todo.sh -d ~/.config/todo/config" alias bk=bookkeeping alias activate="source ~/.local/venv/bin/activate.fish" # Navigation alias ...="cd ../.." alias ....="cd ../../.." alias .....="cd ../../../.." alias wo=workon # VCS alias g="git" alias gx="gitx" alias gp="git push" ...
#!/usr/bin/env fish alias rm="trash" alias t="todo.sh -d ~/.config/todo/config" alias bk=bookkeeping alias activate="source ~/.local/venv/bin/activate.fish" # Navigation alias ...="cd ../.." alias ....="cd ../../.." alias .....="cd ../../../.." alias wo=workon # VCS alias g="git" alias gx="gitx" alias gp="git push" ...
Add shortcut to local copy of the RPL
[alias] Add shortcut to local copy of the RPL
fish
bsd-2-clause
kattrali/dotfiles,kattrali/dotfiles,kattrali/dotfiles
dc57e7e8b7e531b0c65b1f29183b66c5abd5c642
functions/gap.fish
functions/gap.fish
function gap --description="git add patch" set -l arguments set -l cmd "command git diff --name-only" if test (count $argv) -gt 0 set arguments (gish find -c $cmd $argv) if test -z $arguments set_color red echo "No matches found" set_color normal return 0 end end comman...
Add a fish function to add a patch
Add a fish function to add a patch
fish
mit
RobertAudi/gish,RobertAudi/gish
46d7e9618292e557bd15a7b94b6e56ef179ee699
functions/gcm.fish
functions/gcm.fish
function gcm --description="git commit with message" if test (count (command git status --porcelain | command grep "^[^ ?]")) -eq 0 set_color yellow echo "Nothing to commit..." set_color normal return 1 end set -l arguments set -l cmd "command git diff --cached --name-only" if test (count $...
Add a `git commit -m` wrapper
Add a `git commit -m` wrapper
fish
mit
RobertAudi/gish,RobertAudi/gish
af1f95bde61eb9553d26ca6ee3adf8e95ca8e35b
config/fish/env.fish
config/fish/env.fish
append-to-path ~/projects/git-toolbelt set -gx WORKON_HOME ~/.virtualenvs set -gx PYTHONPATH ~/.local/bin append-to-path ~/.local/bin append-to-path /Applications/Postgres.app/Contents/Versions/9.5/bin
append-to-path ~/projects/git-toolbelt set -gx WORKON_HOME ~/.virtualenvs set -gx PYTHONPATH ~/.local/bin append-to-path ~/.local/bin append-to-path /Applications/Postgres.app/Contents/Versions/9.6/bin
Update postgres bin for 9.6
Update postgres bin for 9.6
fish
bsd-3-clause
jonathanchu/dotfiles,jonathanchu/dotfiles,jonathanchu/dotfiles
4657f211e19b2fca51ee5b79137872d12067d8e0
spec/ta.spec.fish
spec/ta.spec.fish
import plugins/fish-spec import plugins/ta function describe_ta -d "ta: to-done task manager" function before_all end function after_all end # function it_does_something # end end spec.run $argv
import plugins/fish-spec import plugins/ta function describe_ta -d "ta: to-done task manager" function before_all end function after_all end function it_does_something ta -h expect $status --to-equal 0 end end spec.run $argv
Add test stub for ta plugin.
Add test stub for ta plugin.
fish
mit
oh-my-fish/plugin-ta
b02fe2df1ac123c7d6483b9c42d4c9afac2bb5c1
themes/robbyrussell/fish_prompt.fish
themes/robbyrussell/fish_prompt.fish
# name: RobbyRussel function _git_branch_name echo (command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||') end function _is_git_dirty echo (command git status -s --ignore-submodules=dirty ^/dev/null) end function fish_prompt set -l last_status $status set -l cyan (set_color -o cyan) set -l ye...
# name: RobbyRussel # # You can override some default options in your config.fish: # set -g theme_disable_untracked_files_dirty yes function _git_branch_name echo (command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||') end function _is_git_dirty if [ "$theme_disable_untracked_files_dirty" = 'yes'...
Add option to not show untracked files as dirty in git status
Add option to not show untracked files as dirty in git status
fish
mit
ovstetun/oh-my-fish
1508fdbee256125dcfb162edd601482c8cb5ff16
bashhub/shell/deps/fish/functions/__bh_check_bashhub_installation.fish
bashhub/shell/deps/fish/functions/__bh_check_bashhub_installation.fish
# # __bh_check_bashhub_installation.fish # Should only be sourced once following installation. # # Small function to check our Bashhub installation. function __bh_check_bashhub_installation set -l ret 0 set -l config_path "$BH_HOME_DIRECTORY/config" if [ -n "$FISH_VERSION" ] && [ -n "$__bh_enable_subshells...
# # __bh_check_bashhub_installation.fish # Should only be sourced once following installation. # # Small function to check our Bashhub installation. function __bh_check_bashhub_installation set -l ret 0 set -l config_path "$BH_HOME_DIRECTORY/config" if [ -n "$FISH_VERSION" ] && [ -n "$__bh_enable_subshells...
Test if config file is missing
Test if config file is missing
fish
apache-2.0
rcaloras/bashhub-client,rcaloras/bashhub-client
9ec5b07fb949697bffed254c2e4700abc72f5009
stowed/.config/fish/functions/bws.fish
stowed/.config/fish/functions/bws.fish
set SESSION_FILE ~/.bws-session function bws if test -e $SESSION_FILE set -x BW_SESSION (cat $SESSION_FILE) end if ! bw status | grep unlocked > /dev/null set -x BW_SESSION (bw unlock --raw) if test $status -ne 0 echo "bw unlock failed" return $status else echo $BW_SESSION > $S...
Add a session mangement script for my password manager
Add a session mangement script for my password manager
fish
unlicense
Olical/dotfiles
78af529d79bb019bbd2d23c1174b9720001111a6
fish/functions/fish_prompt.fish
fish/functions/fish_prompt.fish
function fish_prompt # Start ohmyfish-batman theme default prompt test $status -ne 0; and set -l colors 600 900 c00 or set -l colors 333 666 aaa set -l pwd (prompt_pwd) set -l base (basename "$pwd") set -l expr "s|~|"(fst)"^^"(off)"|g; \ s|/|"(snd)"/"(off)"|g; \ s|"$ba...
function fish_prompt # Start ohmyfish-batman theme default prompt test $status -ne 0; and set --local colors 600 900 c00 or set --local colors 333 666 aaa set --local pwd (prompt_pwd) set --local base (basename "$pwd") set --local expr "s|~|"(fst)"^^"(off)"|g; \ s|/|"(snd)"/"(off...
Use long options, move helper functions from fish_greeting
Use long options, move helper functions from fish_greeting
fish
mit
ammgws/dotfiles,ammgws/dotfiles,ammgws/dotfiles
3f626ea65832b3570d3894e0bfde2b435cd88429
.config/fish/functions/fish_title.fish
.config/fish/functions/fish_title.fish
function fish_title set -l process $_ set -l god "" set -l on_project "" set -l title "" if [ (whoami) = "root" -o $_ = "sudo" ] set god "⚡ " end if set -q FISH_TITLE set title $FISH_TITLE else if [ $_ = "fish" ] set title (prompt_pwd) else if test (git rev-parse --is-inside-work-tree ^/dev/nul...
function fish_title set -l process $_ set -l god "" set -l on_project "" set -l title "" if [ (whoami) = "root" -o $process = "sudo" ] set god "⚡ " end if set -q FISH_TITLE set title $FISH_TITLE else if [ $process = "fish" ] set title (prompt_pwd) else if test (git rev-parse --is-inside-work-tr...
Use $process instead of $_ to make it easier to read
Use $process instead of $_ to make it easier to read
fish
mit
stefanmaric/dotfiles,stefanmaric/dotfiles
9cc8d48ebe9d4bf1ee0134f8906c17a13076b2a0
fish/config.fish
fish/config.fish
set -x TERM screen-256color set -x EDITOR nano set PATH $HOME/.rbenv/shims $PATH rbenv rehash >/dev/null ^&1 set PATH /usr/local/share/npm/bin $PATH alias p project set fish_greeting
set -x TERM screen-256color set -x EDITOR nano set -x PATH $HOME/.rbenv/shims /usr/local/share/npm/bin /usr/local/bin /usr/local/sbin /usr/bin /usr/sbin /bin /sbin rbenv rehash >/dev/null ^&1 alias p project set fish_greeting
Configure fish to export explicit PATH
Configure fish to export explicit PATH
fish
mit
andrewgarner/dotfiles,andrewgarner/config
a035b3134cdc28bfc15949a5c756790d87fe57aa
.config/fish/functions/terminateNS.fish
.config/fish/functions/terminateNS.fish
function terminateNS --argument-names ns --description "Delete a stuck k8s terminating namespace" set NAMESPACE $ns kubectl proxy & kubectl get namespace $NAMESPACE -o json |jq '.spec = {"finalizers":[]}' >temp.json curl -k -H "Content-Type: application/json" -X PUT --data-binary @temp.json 127.0.0.1:80...
Add fish function to terminate a stuck terminating k8s namespace
Add fish function to terminate a stuck terminating k8s namespace
fish
mit
brentbrownfield/dotfiles
c7aebf2e9f53237b573b476f04c48dac31a95c6b
functions/expand-word.fish
functions/expand-word.fish
function expand-word -d 'Define a word expansion' set -l help "Define a word expansion. Usage expand-word -p PATTERN -e EXPANSION expand-word -c CONDITION -e EXPANSION Options -c, --condition Function whose return value determines when the expansion should be run -e, --expander Function or string to expand...
function expand-word -d 'Define a word expansion' set -l help "Define a word expansion. Usage expand-word -p PATTERN -e EXPANSION expand-word -c CONDITION -e EXPANSION Options -c, --condition Function whose return value determines when the expansion should be run -e, --expander Function or string to expand...
Remove tricksy test code that slipped in somehow...
Remove tricksy test code that slipped in somehow...
fish
mit
oh-my-fish/plugin-expand
d4a15f72592230aa1a400425e6156f1329c823a8
config/fish/config.fish
config/fish/config.fish
set PATH ~/bin $PATH # http://www.martinklepsch.org/posts/git-prompt-for-fish-shell.html set __fish_git_prompt_showdirtystate 'yes' set __fish_git_prompt_char_dirtystate '⚡' ### Prompt function fish_prompt set_color red echo -n "❯" set_color yellow echo -n "❯" set_color green echo -n "❯ " end function f...
set PATH (brew --prefix coreutils)/libexec/gnubin $PATH set PATH ~/bin $PATH set PATH $PATH ~/.cask/bin # http://www.martinklepsch.org/posts/git-prompt-for-fish-shell.html set __fish_git_prompt_showdirtystate 'yes' set __fish_git_prompt_char_dirtystate '⚡' ### Prompt function fish_prompt set_color red echo -n "❯...
Bring over PATH changes to fish
Bring over PATH changes to fish
fish
mit
drmohundro/dotfiles
2b644885b0492bc53bea0f142dd98f951a844729
cd-gitroot.fish
cd-gitroot.fish
function __cdgitroot_usage echo 'Usage: cd-gitroot [PATH]' echo 'Jump to git repository\'s root directory.' echo 'If PATH is specified, it\'s recognized as relative path' echo 'from repository\'s root directory. And jump to it.' end
function __cdgitroot_usage echo 'Usage: cd-gitroot [PATH]' echo 'Jump to git repository\'s root directory.' echo 'If PATH is specified, it\'s recognized as relative path' echo 'from repository\'s root directory. And jump to it.' end function cd-gitroot -d 'Jump to git repo\'s root' if not command g...
Add error check to detect in-work-tree
Add error check to detect in-work-tree
fish
unlicense
tasuten/cd-gitroot-fish
5a8d0452d2c1b79e46c82df372f4e727dc2e321a
cd-gitroot.fish
cd-gitroot.fish
function __cdgitroot_usage echo 'Usage: cd-gitroot [PATH]' echo 'Jump to git repository\'s root directory.' echo 'If PATH is specified, it\'s recognized as relative path' echo 'from repository\'s root directory. And jump to it.' end function cd-gitroot -d 'Jump to git repo\'s root' if not command g...
function __cdgitroot_usage echo 'Usage: cd-gitroot [PATH]' echo 'Jump to git repository\'s root directory.' echo 'If PATH is specified, it\'s recognized as relative path' echo 'from repository\'s root directory. And jump to it.' end function cd-gitroot -d 'Jump to git repo\'s root' if not command g...
Add error bundle in completion function
Add error bundle in completion function
fish
unlicense
tasuten/cd-gitroot-fish
07ab59fe019fb2289fa51accf06535349e17ebb0
functions/__fuzzy_package_json_script.fish
functions/__fuzzy_package_json_script.fish
function __fuzzy_package_json_script if test -e "package.json" jq '.scripts | keys[]' package.json | tr -d '"' | __fuzzy_find | read tempvar if [ $tempvar ] commandline -i $tempvar end end end
Add fuzzy package json script
Add fuzzy package json script
fish
mit
rcoedo/fuzzy-fish
cbf365cdf9a8d00412718a15ad05bf507f56dee6
config/fish/config.fish
config/fish/config.fish
# set editor set -xg EDITOR vim # set no greeting set fish_greeting # Abbreviations abbr -a c clear # Git abbr -a ga git add abbr -a gap git add --patch abbr -a gc git commit -v abbr -a gco git checkout abbr -a gd git diff abbr -a gf git fetch abbr -a gl git l abbr -a gll git ll abbr -a gpl git pull abbr -a gp git p...
# set no greeting set fish_greeting # Abbreviations abbr -a c clear # Git abbr -a ga git add abbr -a gap git add --patch abbr -a gc git commit -v abbr -a gco git checkout abbr -a gd git diff abbr -a gf git fetch abbr -a gl git l abbr -a gll git ll abbr -a gpl git pull abbr -a gp git push abbr -a gpo git push origin a...
Fix bottom of command promt error
Fix bottom of command promt error
fish
mit
jstumbaugh/dotfiles,jstumbaugh/dotfiles,jstumbaugh/dotfiles
4209c8b66eec39dd31d7f3491da9f3e0e840fbe6
.config/fish/functions/bwPassword.fish
.config/fish/functions/bwPassword.fish
function bwPassword --description "Lookup password in bitwarden based on username and search term" set -l options (fish_opt -s h -l help) set options $options (fish_opt --short s --long search --required-val) set options $options (fish_opt --short u --long username --required-val) argparse $option...
Add initial fish function for retrieving password frm bitwarden
Add initial fish function for retrieving password frm bitwarden
fish
mit
brentbrownfield/dotfiles
3ceb40fdcf5578b1e7d205a557210f3a4ef8196e
config/fish/config.fish
config/fish/config.fish
fish_vi_key_bindings for word in "$HOME/"{bin,.local/bin,go/bin,node_modules/.bin,.gem/ruby/*/bin} if not contains $word $PATH set PATH $word $PATH end end set -x GOPATH "$HOME/go" set fish_complete_path "$HOME/git/github.fish-pip-completion" $fish_complete_path switch (uname) case Linux ...
fish_vi_key_bindings for word in "$HOME/"{bin,.local/bin,go/bin,node_modules/.bin,.gem/ruby/*/bin} if not contains $word $PATH set PATH $word $PATH end end set -x GOROOT "$HOME/go" set fish_complete_path "$HOME/git/github.fish-pip-completion" $fish_complete_path switch (uname) case Linux ...
Use home copy of golang
feat: Use home copy of golang
fish
mit
e4r7hbug/dotfiles,e4r7hbug/dotfiles
1a4867dc9685e94c15d0ad6cb018369467bf0cc1
config/fish/config.fish
config/fish/config.fish
if not status --is-interactive exit 0 end set -l config_home "$XDG_CONFIG_HOME" set -l data_home "$XDG_DATA_HOME" # install fisher if not type fisher >/dev/null 2>&1 curl -Lo "$config_home/fish/functions/fisher.fish" --create-dirs git.io/fisher cat "$config_home/fish/fishfile" | fisher install end # vim ...
if not status --is-interactive exit 0 end set -l config_home "$XDG_CONFIG_HOME" set -l data_home "$XDG_DATA_HOME" # install fisher if not type fisher >/dev/null 2>&1 curl -Lo "$config_home/fish/functions/fisher.fish" --create-dirs git.io/fisher cat "$config_home/fish/fishfile" | fisher install end # vim ...
Fix fish interactive shell on macOS
Fix fish interactive shell on macOS
fish
mit
Rypac/dotfiles,Rypac/dotfiles,Rypac/dotfiles
be830f542aee39fafed075a05358f54d5632dd34
.config/fish/config.fish
.config/fish/config.fish
# pyenv fish set -gx PYENV_ROOT "$HOME/.pyenv" set -x PATH $PATH "$PYENV_ROOT/bin" status --is-interactive; and . (pyenv init - | psub) # emacs alias alias e="emacs -nw" # peco function peco_select_history if set -q $argv history | peco | read line; commandline $line else history | peco --quer...
# pyenv fish set -gx PYENV_ROOT "$HOME/.pyenv" set -x PATH $PATH "$PYENV_ROOT/bin" status --is-interactive; and . (pyenv init - | psub) # emacs alias alias e="emacs -nw" # peco function peco_select_history if set -q $argv history | peco | read line; commandline $line else history | peco --quer...
Fix gacp function with test command
Fix gacp function with test command
fish
mit
kyon-bll/.dotfiles
9da685208b134daa683aa17c9ddbac51197e421c
config/fish/config.fish
config/fish/config.fish
## # onnimonni preferred aliases and functions ## ## # Get current conf file directory # This needs to resolve symlinks from rcm ## function fish_config_dir switch (uname) case Darwin # OS-X echo ( dirname ( readlink (status --current-filename) ) ) case '*' echo ( dirname ( readlink -f (...
## # onnimonni preferred aliases and functions ## ## # Get current conf file directory # This needs to resolve symlinks from rcm ## function fish_config_dir switch (uname) case Darwin # OS-X echo ( dirname ( readlink (status --current-filename) ) ) case '*' echo ( dirname ( readlink -f (...
Fix some PATH and allow using .secrets.fish file
Fix some PATH and allow using .secrets.fish file
fish
unlicense
onnimonni/dotfiles
9ff329a5d1d20bb3247afb49fec1fe8243049e72
envirt.fish
envirt.fish
# Virtual Environment #Initialise Python, Ruby, Perl and Java environment if installed if command -v pyenv > /dev/null; status --is-interactive; and . (pyenv init -|psub); end if command -v pyenv-virtualenv-init > /dev/null; status --is-interactive; and . (pyenv virtualenv-init -|psub); end if command -v rbenv > /d...
# Virtual Environment #Initialise Python, Ruby, Perl and Java environment if installed if command -v pyenv > /dev/null; status --is-interactive; and source (pyenv init -|psub); end if command -v pyenv-virtualenv-init > /dev/null; status --is-interactive; and source (pyenv virtualenv-init -|psub); end if command -v ...
Replace . with source to avoid an error
Replace . with source to avoid an error
fish
mit
eugenesvk/Settings-Fish
bea5e9d37770811804b9c750539582a15db08045
source/05_job_teaser.fish
source/05_job_teaser.fish
#!/usr/bin/env fish # mysql set -g fish_user_paths "/usr/local/opt/mysql@5.6/bin" $fish_user_paths
#!/usr/bin/env fish # mysql set -g fish_user_paths "/usr/local/opt/mysql@5.6/bin" $fish_user_paths # helm set -g fish_user_paths "/usr/local/opt/helm@2/bin" $fish_user_paths
Add helm path for jobteaser/fish
Add helm path for jobteaser/fish
fish
mit
ejoubaud/dotfiles,ejoubaud/dotfiles
0b5a2f46806b4f5387f3bb1549de93dea840f579
config/fish/functions/pewpew.fish
config/fish/functions/pewpew.fish
function pewpew for env in {2,3,alpha} for task in {wheel,install} pew in $env pip $task -r ~/.requirements.txt end end end
function pewpew for env in {2,3,beta} for task in {wheel,install} pew in $env pip $task -r ~/.requirements.txt end end end
Update to Python beta environment
feat: Update to Python beta environment
fish
mit
e4r7hbug/dotfiles,e4r7hbug/dotfiles
2f74effd924d976a74684f2f9b2c57057d96d1cc
fish_prompt.fish
fish_prompt.fish
# name: nai # Display the following bits on the left: # * Current directory name # * Git branch and dirty state (if inside a git repo) function _git_branch_name echo (command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||') end function _git_dirty echo (command git status -s --ignore-submodules=dirty...
# name: nai # Display the following bits on the left: # * Current directory name # * Git branch and dirty state (if inside a git repo) function _git_branch_name echo (command git symbolic-ref HEAD 2> /dev/null | sed -e 's|^refs/heads/||') end function _git_dirty echo (command git status -s --ignore-submodules=dir...
Make stderr redirection compatible with Fish 3.0.
Make stderr redirection compatible with Fish 3.0.
fish
mit
oh-my-fish/theme-nai
4e25ac372b1819ca60076f7e53701623f90a2891
functions/tab.xfce4_terminal.fish
functions/tab.xfce4_terminal.fish
function tab.xfce4_terminal -a cdto xfce4-terminal --tab --working-directory "$cdto" end
function tab.xfce4_terminal -a cdto cmd xfce4-terminal --tab --working-directory "$cdto" -e "fish -c '$cmd; exec fish'" end
Include cmd execution for xfce4-terminal
Include cmd execution for xfce4-terminal
fish
mit
oh-my-fish/plugin-tab
0b226df62379ea6b858df5c392367786e2e98896
docgen.fish
docgen.fish
for file in (ls ./src/components/ | grep -v 'reactUtil' | grep -v 'todo' | grep -v "BaseDialog" | grep -v "Util") echo "Generate $name" set name (echo $file | cut -d '.' -f1 ) node ./scripts/react-docgen.js ./src/components/$file > docs/$name.json end
rm ./docs/*.json for file in (ls ./src/components/ | grep -v 'reactUtil' | grep -v 'todo' | grep -v "BaseDialog" | grep -v "Util") echo "Generate $name" set name (echo $file | cut -d '.' -f1 ) node ./scripts/react-docgen.js ./src/components/$file > docs/$name.json end
Clean "docs" directory before generating
Clean "docs" directory before generating
fish
apache-2.0
OnsenUI/react-onsenui,OnsenUI/react-onsenui
eea1bdb22f189017c416c631866ac9055a4fbeb0
functions/__z_complete.fish
functions/__z_complete.fish
function __z_complete -d "add completions" set -l __z_marks (awk ' BEGIN { FS="|"} /1/ {print $1} ' < $Z_DATA) complete -c $Z_CMD -a "$__z_marks" -f complete -c $ZO_CMD -a "$__z_marks" -f end
function __z_complete -d "add completions" set -l __z_marks (string replace -r '\|.*' '' <$Z_DATA | string escape) complete -c $Z_CMD -a "$__z_marks" -f complete -c $ZO_CMD -a "$__z_marks" -f end
Add support for paths with single/double quotes
Add support for paths with single/double quotes
fish
mit
fisherman/z
537960f750d82aaa88e0f82ab739afb525e9c7d9
functions/gityaw.fish
functions/gityaw.fish
function gityaw -d "Replace Git HTTPS remote by SSH" if not git status >/dev/null ^&1 echo "This doesn't look to be a git repository" return 1 end if not set remote (command git remote show) echo "No remote available" return 1 end set https (command git remote get-url $remote) if echo $ht...
function gityaw -d "Replace Git HTTPS remote by SSH" if not git status >/dev/null ^&1 echo "This doesn't look to be a git repository" return 1 end if test (count $argv) -gt 0 set remotes $argv else if not set remotes (command git remote show) echo "No remote available" return 1 ...
Allow processing of multiple remotes, can specify them as arguments too
Allow processing of multiple remotes, can specify them as arguments too
fish
mit
oh-my-fish/plugin-gityaw
c01d24e81954762c4ae08f7153254efa594fc915
.config/fish/aliases.fish
.config/fish/aliases.fish
# Shortcuts alias reload! "source ~/.config/fish/config.fish" alias ... "cd ../.." alias dl "cd ~/Downloads" alias dt "cd ~/Desktop" alias c "cd ~/code" alias storm="open -a (mdfind -name 'kMDItemFSName==\"*.app\"' -onlyin /Applications/ | grep 'WebStorm.')" alias pubkey="pbcopy < ~/.ssh/id_ed25519.pub | echo '=> Publi...
# Apps… but better alias ls lsd # Shortcuts alias reload! "source ~/.config/fish/config.fish" alias ... "cd ../.." alias dl "cd ~/Downloads" alias dt "cd ~/Desktop" alias c "cd ~/code" alias storm="open -a (mdfind -name 'kMDItemFSName==\"*.app\"' -onlyin /Applications/ | grep 'WebStorm.')" alias pubkey="pbcopy < ~/.ss...
Use `lsd` instead of `ls`
:sparkles: Use `lsd` instead of `ls`
fish
mit
nickwaelkens/dotfiles,nickwaelkens/dotfiles
1be24c1598df96b7ed8649db94f585b7af977db1
.config/fish/config.fish
.config/fish/config.fish
# pyenv fish set -gx PYENV_ROOT "$HOME/.pyenv" set -x PATH $PATH "$PYENV_ROOT/bin" status --is-interactive; and . (pyenv init - | psub) # emacs alias alias e="emacs -nw" # peco function peco_select_history if set -q $argv history | peco | read line; commandline $line else history | peco --quer...
# pyenv fish set -gx PYENV_ROOT "$HOME/.pyenv" set -x PATH $PATH "$PYENV_ROOT/bin" status --is-interactive; and . (pyenv init - | psub) # emacs alias alias e="emacs -nw" # peco function peco_select_history if set -q $argv history | peco | read line; commandline $line else history | peco --quer...
Fix gacp function with test command
Fix gacp function with test command
fish
mit
kyon-bll/.dotfiles
0ca221f9b9eca9657ae091c8d63cf0aafd72ef13
functions/create-subnet.fish
functions/create-subnet.fish
function create-subnet --argument vpc name trace (status --current-filename) $argv if empty "$vpc" "$name" usage create-subnet '<vpc-id>' '<name>' return (false) end set --local subnet vpcs/$vpc/subnets/$name set --local zone (get $subnet/availability-zone) set --local cidr (ge...
Add function to create subnets
Add function to create subnets
fish
mit
colstrom/piranha,colstrom/shellops-aws
da8ddd4432e12ff044c3b53dfc182d0639742a4d
functions/peco_select_ghq_repository.fish
functions/peco_select_ghq_repository.fish
function peco_select_ghq_repository set -l query (commandline) if test -n $query set peco_flags --query "$query" end ghq list | peco $peco_flags | read line if [ $line ] ghq root | read dir cd $dir/$line commandline -f repaint end end
function peco_select_ghq_repository set -l query (commandline) if test -n $query set peco_flags --query "$query" end ghq list | peco $peco_flags | read line if [ $line ] ghq look $line commandline -f repaint end end
Modify cd to ghq look
Modify cd to ghq look
fish
mit
yoshiori/fish-peco_select_ghq_repository
8ad413e9c5dab587e799292a3bbe095be2f6cdee
fish/.config/fish/functions/n,.fish
fish/.config/fish/functions/n,.fish
#!/usr/bin/env fish function n, if ! test -x /usr/local/bin/jq echo "jq not installed" return 2 end if ! test -x /usr/local/bin/fzy echo "fzy not installed" return 2 end argparse -n 'n,' 'n' -- $argv set cmd (cat package.json | jq .scripts | awk 'NR>2 {print last} {last=$0}' | fzy) if...
Add fish function to fuzzy run npm scripts
Add fish function to fuzzy run npm scripts Pretty neat.
fish
mit
bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles