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 |
|---|---|---|---|---|---|---|---|---|---|
49bb5572c70114ebb7b53ce06d50cfeea8e8a934 | fish/init/ruby.fish | fish/init/ruby.fish |
rvm use default > /dev/null
|
if not functions --query rvm
curl --create-dirs -o ~/.config/fish/functions/rvm.fish https://raw.github.com/lunks/fish-nuggets/master/functions/rvm.fish
end
rvm use default > /dev/null
| Check for existence of rvm function and install if not | Check for existence of rvm function and install if not
| fish | mit | lee-dohm/environment,lee-dohm/environment,lee-dohm/environment |
be76846c8996e6fc71647f0d592894d144dc6195 | themes/simotek/fish_greeting.fish | themes/simotek/fish_greeting.fish | # urdh prompt theme, by Simon Sigurdhsson <http://github.com/urdh/>
function fish_greeting --description 'Print the shell greeting'
set -l c_n (set_color normal)
set -l c_w (set_color cyan)
set -l location (printf "%sWelcome to %s%s%s" $c_n $c_w (hostname) $c_n)
set -l system (printf "%sRunning %s%s%s ... | # urdh prompt theme, by Simon Sigurdhsson <http://github.com/urdh/>
function fish_greeting --description 'Print the shell greeting'
set -l c_n (set_color af0087)
set -l c_w (set_color green)
set -l location (printf "%sWelcome to %s%s%s" $c_n $c_w (hostname) $c_n)
set -l system (printf "%sRunning %s%s%s... | Update the greeting to have colors that better match the rest of the theme | Update the greeting to have colors that better match the rest of the theme
| fish | mit | simotek/tackle,simotek/tackle |
91c3a4dfff78b77a13689535194ca4c09426cfd3 | functions/vpc-create-subnet.fish | functions/vpc-create-subnet.fish | function vpc-create-subnet --argument vpc cidr availability_zone
trace (status --current-filename) $argv
if empty "$vpc" "$cidr"
usage vpc-create-subnet '<vpc>' '<cidr>' '[availability-zone]'
return (false)
end
aws ec2 create-subnet --vpc-id $vpc --cidr-block $cidr --availability-zone ... | Add function to create a subnet in a VPC | Add function to create a subnet in a VPC
| fish | mit | colstrom/piranha,colstrom/shellops-aws | |
08811f3f8ed55843df320125f201b2542a8c3920 | functions/__fisher_path_update.fish | functions/__fisher_path_update.fish | function __fisher_path_update -a path
pushd $path
set -l branch
if not set branch (sed "s|.*/||" < .git/HEAD)
return 1
end
if test "$branch" != master
git stash --quiet ^ /dev/null
git checkout master --quiet ^ /dev/null
end
if not git pull --rebase origin master ... | function __fisher_path_update -a path
pushd $path
set -l branch
if not set branch (sed "s|.*/||" < .git/HEAD)
return 1
end
git stash --quiet ^ /dev/null
git checkout master --quiet ^ /dev/null
if not git pull --rebase origin master --quiet
git rebase --abort --quiet
... | Fix regression causing update to fail in some plugins. | Fix regression causing update to fail in some plugins.
| fish | mit | fisherman/fisherman |
6d0904313052beac1e9c919b9208be9598aa6be8 | 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 $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... | Disable nvm and rvm for now | Disable nvm and rvm for now
They're both pretty slow and I don't need them at the moment.
Thankfully.
| fish | unlicense | Olical/dotfiles,Wolfy87/dotfiles,Wolfy87/dotfiles |
d4dbf1c828dd07ad07936d2e214f55e4839e2bfe | fish/cdf.fish | fish/cdf.fish | function cdf --description="If on OSX, `cd` to the directory the front Finder window is open to."
set --local target (osascript -e 'tell application "Finder" to if (count of Finder windows) > 0 then get POSIX path of (target of front Finder window as text)')
if test -n target
echo "Changing directory to: $target"
... | function cdf --description="If on OSX, `cd` to the directory the front Finder window is open to."
# first we check if we're on OSX
if not test (uname -s) = "Darwin"
echo "We are not on OSX." >&2
return 3
end
set --local target (osascript -e 'tell application "Finder" to if (count of Finder windows) > 0 then get... | Add a check for operating system. | Add a check for operating system.
As this function is being added to my dotfiles repository, a check was
added to avoid awkward errors if unintentionally used on another system.
| fish | mit | deoxys314/deoxys314_dotfiles |
4ec4525e472d42d4151334db0c0a0e1d8b8913a3 | home/.config/fish/functions/git_cleanup.fish | home/.config/fish/functions/git_cleanup.fish | function git_cleanup
for branch in (git branch -vv | grep ' gone' | cut -d' ' -f1-3 | sed -e 's/^[ \t]*//')
if user_prompt "Remove deleted branch $branch?"
git branch -D $branch
end
end
end
| function git_cleanup
for branch in (git branch -vv | grep ' gone' | cut -d' ' -f1-3 | sed -e 's/^[[:space:]]*//')
if user_prompt "Remove deleted branch $branch?"
git branch -D $branch
end
end
end
| Use POSIX space char class instead | Bugfix: Use POSIX space char class instead
The \t got greedy on accident and proabbly has to do with escaping so
switching to good ol char classes instead
| fish | mit | martinisoft/dotfiles |
cf2a119092d2fee85810f9247c867d814d28ebf0 | 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.4/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.5/bin
| Upgrade Postgres version to 9.5 | Upgrade Postgres version to 9.5
| fish | bsd-3-clause | jonathanchu/dotfiles,jonathanchu/dotfiles,jonathanchu/dotfiles |
49f9e1edebc00bd692537b1f209e41c3c0520f8c | fish/.config/fish/functions/fish_prompt.fish | fish/.config/fish/functions/fish_prompt.fish | function fish_prompt --description 'Write out the prompt'
# Set custom color variables
set -l username_color fdd8aa
set -l prompt_color 8cd6ff
set -l last_status $status
# PWD
set_color $fish_color_cwd
echo -n (pwd | sed -e "s|$HOME|~|")
set_color normal
__fish_git_prompt
echo
if not test $las... | function fish_prompt --description 'Write out the prompt'
# Set custom color variables
set -l username_color fdd8aa
set -l prompt_color 8cd6ff
set -l last_status $status
# PWD
set_color $fish_color_cwd
echo -n (pwd | sed -e "s|$HOME|~|")
set_color normal
__fish_git_prompt
set jobs_count (jobs | wc -l | xa... | Add number of suspended jobs to prompt | [fish] Add number of suspended jobs to prompt
- Also re-indented to follow my typical indentation style
| fish | mit | spinningarrow/.files,spinningarrow/.files |
db8b3a2d47e865fc49ccdb3e0f4d194a97f74722 | config/fish/config.fish | config/fish/config.fish | # Path to Oh My Fish install.
set -gx OMF_PATH "$HOME/.local/share/omf"
# Customize Oh My Fish configuration path.
#set -gx OMF_CONFIG "$HOME/.config/omf"
# Load oh-my-fish configuration.
source $OMF_PATH/init.fish
fish_vi_mode
set PATH \
"$HOME/bin" \
"$HOME/.local/bin" \
"$HOME/Library/Python/2.7/bin"... | # Path to Oh My Fish install.
set -gx OMF_PATH "$HOME/.local/share/omf"
# Customize Oh My Fish configuration path.
#set -gx OMF_CONFIG "$HOME/.config/omf"
# Load oh-my-fish configuration.
source $OMF_PATH/init.fish
fish_vi_mode
for word in "$HOME/"{bin,.local/bin,Library/Python/2.7/bin,go/bin}
if not contains $... | Add to $PATH only if missing in fish | fix: Add to $PATH only if missing in fish
| fish | mit | e4r7hbug/dotfiles,e4r7hbug/dotfiles |
4858eb0ff4a376478d1edb50bfd00c63f7e0a85b | fish/.config/fish/config.fish | fish/.config/fish/config.fish | # Disable fish greeting
set fish_greeting ""
# Aliases
alias vim="nvim"
# Set environment variables
#set -x NVIM_TUI_ENABLE_TRUE_COLOR 1
| # Disable fish greeting
set fish_greeting ""
# Aliases
#alias vim="nvim"
# Set environment variables
#set -x NVIM_TUI_ENABLE_TRUE_COLOR 1
| Remove neovim alias while vimrc issues are being fixed | Remove neovim alias while vimrc issues are being fixed
| fish | mit | kvchen/dotfiles,kvchen/dotfiles,kvchen/dotfiles,kvchen/.dotfiles |
91339e960953e76151e2a3922b8b8935da645466 | apps/fish/.config/fish/functions/aliases.fish | apps/fish/.config/fish/functions/aliases.fish | # List only directories
alias lsd='ls -l | grep "^d"'
alias tree 'tree --dirsfirst -ChFQ'
function tree1; tree -L 1 $argv; end
function tree2; tree -L 2 $argv; end
function tree3; tree -L 3 $argv; end
function tree4; tree -L 4 $argv; end
function tree5; tree -L 5 $argv; end
function tree6; tree -L 6 $argv; end
alias ... | # List only directories
alias lsd='ls -l | grep "^d"'
alias tree 'tree --dirsfirst -ChFQ'
function tree1; tree -L 1 $argv; end
function tree2; tree -L 2 $argv; end
function tree3; tree -L 3 $argv; end
function tree4; tree -L 4 $argv; end
function tree5; tree -L 5 $argv; end
function tree6; tree -L 6 $argv; end
alias ... | Remove duplicate function for treea | Remove duplicate function for treea
| fish | mit | KyleOndy/dotfiles,KyleOndy/.dotfiles,KyleOndy/dotfiles,KyleOndy/dotfiles |
0786a8488a43ffaa3b5f540aa23bca937a6a2e04 | functions/__gabbr_expand.fish | functions/__gabbr_expand.fish | function __gabbr_expand
# expand abbreviations
if test 0 = (count (commandline -poc))
for abbr in $fish_user_abbreviations
echo $abbr | read word phrase
if test "$word" = (commandline -t)
commandline -t $phrase
end
end
end
# expand gl... | function __gabbr_expand
# expand abbreviations
if test 0 = (count (commandline -poc))
for abbr in $fish_user_abbreviations
echo $abbr | read word phrase
if test "$word" = (commandline -t)
commandline -t $phrase
end
end
end
# expand gl... | Fix __gabbr_expad: add -- to string match | Fix __gabbr_expad: add -- to string match
| fish | mit | ryotako/fish-global-abbreviation |
261ecdffc9790a5325d452fb4ee8687521bb17d3 | test/fry-rubies_test.fish | test/fry-rubies_test.fish | . helper.fish
function subject
fry-rubies | col
end
it 'contains system'; begin
if contains '*32m system' (subject)
pass
else
fail
end
end
it 'contains rubies'; begin
if contains '30mBm dummy-1' (subject)
pass
else
fail
end
end
it 'highlights current'; begin
stub fry-current dummy-1... | . helper.fish
function subject
fry-rubies
end
it 'contains system'; begin
function result
echo -n '*'
set_color green
echo -n ' system'
end
if contains (result) (subject)
pass
else
fail
end
end
it 'contains rubies'; begin
function result
set_color normal
echo -n ' dummy-1'... | Make test unaware of color codes | Make test unaware of color codes
| fish | mit | terlar/fry |
1d4a402da234119420c7a6f569613cd8d4c4a0e5 | config/fish/config.fish | config/fish/config.fish | # Turn off the default greeting
set fish_greeting
# Specify my preferred path dirs here (in reverse order) and ensure they get
# re-placed at the front of the current $PATH.
#
# Include Postgres.app here, before asdf inits, so asdf's shims end up first
# of all (allowing Postgres.app to be seen by asdf as the "system"... | # Turn off the default greeting
set fish_greeting
fish_add_path /opt/homebrew/bin
direnv hook fish | source
source /opt/homebrew/opt/asdf/asdf.fish
source ~/.secrets.fish
set --export EDITOR "code"
# Required for postgres to build, see https://github.com/smashedtoatoms/asdf-postgres/issues/52
set --export HOMEBRE... | Remove hack for inserting paths | Remove hack for inserting paths
| fish | mit | timriley/dotfiles,timriley/dotfiles |
48916eb5a9d591f8513d0dc2f74d6b70baee6bb9 | fish/functions/fish_right_prompt.fish | fish/functions/fish_right_prompt.fish | function fish_right_prompt
set -l last_status $status
set -l duration (__fish_prompt_timing)
switch $last_status
case 0
set last_status ''
case '*'
set last_status (set_color red) ' (' $last_status ')' (set_color normal)
end
echo -s -n $duration $last_status... | function fish_right_prompt
set -l last_status $status
set -l duration (__fish_prompt_timing)
switch $last_status
case 0
set last_status ''
case '*'
set last_status (set_color red) '(' $last_status ') ' (set_color normal)
end
echo -s -n $last_status $duration... | Switch duration & status code (prompt) | fish: Switch duration & status code (prompt)
| fish | mit | sebastianmarkow/dotfiles |
79fd3e72f55d7a89eefff53a5ce294fefb39a43d | .config/fish/functions/sshnewkey.fish | .config/fish/functions/sshnewkey.fish | # Generates a new private RSA SSH key at ~/.ssh/id_rsa with an optional comment.
# Comment defaults to USER@hostname.
function sshnewkey --argument-names comment
if test -z $comment
set comment "$USER@"(hostname)
end
set -l keyfile ~/.ssh/id_rsa
ssh-keygen \
-t rsa \
-C $commen... | function sshnewkey \
--description 'Generates a new private SSH key at ~/.ssh/id_ed25519 with an optional comment. Comment defaults to USER@hostname'
--argument-names comment
if test -z $comment
set comment "$USER@"(hostname)
end
set -l keyfile ~/.ssh/id_ed25519
ssh-keygen \
-... | Switch SSH key generation to use ed25519 | Switch SSH key generation to use ed25519 | fish | mit | phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles |
2a3531269e0f8536814dca7a4d4307c0d4478d1d | config/fish/aliases.fish | config/fish/aliases.fish | set LS_COLORS dxfxcxdxbxegedabagacad
alias ls 'command ls -FG'
alias l ls
alias ll 'ls -la'
alias rm 'rm -i'
alias mv 'mv -i'
alias mkdir 'mkdir -p'
alias du 'du -kh'
alias df 'df -kh'
# Colorized cat (will guess file type based on contents)
alias ccat 'pygmentize -g'
alias pm 'python manage.py'
alias pmm 'python ma... | set LS_COLORS dxfxcxdxbxegedabagacad
alias ls 'command ls -FG'
alias l ls
alias ll 'ls -la'
alias rm 'rm -i'
alias mv 'mv -i'
alias mkdir 'mkdir -p'
alias du 'du -kh'
alias df 'df -kh'
# Colorized cat (will guess file type based on contents)
alias ccat 'pygmentize -g'
# alias pm 'python manage.py'
alias pmm 'python ... | Comment out my python pm alias | Comment out my python pm alias
| fish | bsd-3-clause | jonathanchu/dotfiles,jonathanchu/dotfiles,jonathanchu/dotfiles |
f713aa38d0ce331076de905e8560f19184d8666b | fiddle.fish | fiddle.fish | # Open config in vim
function vcf
vim ~/.config/fish/config.fish
end
# Open config in atom
function acf
atom ~/.config/fish
end
# Reload config
function recon
source ~/.config/fish/config.fish
end
# Open config in atom
function ccf
code ~/.config/fish
end
# Pull latest config from github
function cpull
... | # Open config in vim
function vcf
vim ~/.config/fish/config.fish
end
function conf
cd ~/.config/fish
end
# Open config in atom
function acf
atom ~/.config/fish
end
# Reload config
function recon
source ~/.config/fish/config.fish
end
# Open config in atom
function ccf
code ~/.config/fish
end
# Pull late... | Add `conf` shortcut to get to the config folder | Add `conf` shortcut to get to the config folder
| fish | mit | moskyb/fish-config |
f484b9fb3b01f77b5a377fd2ed10432a61cfd5ec | fish/fish_prompt.fish | fish/fish_prompt.fish | function fish_prompt
echo
set_color -b 333 d91161
echo -n $USER
set_color -b 333 666
echo -n "@"
set_color cyan
echo -n (hostname)
set_color 666
echo -n ":"
set_color green
echo -n $PWD
set_color white
echo -n ""
set_color -b normal normal
echo " "
echo -n '» '
end
| function fish_prompt
echo
set_color -b 222 d91161
echo -n $USER
set_color 666
echo -n "@"
set_color cyan
echo -n (hostname)
set_color 666
echo -n ":"
set_color green
echo -n $PWD
set_color -b normal 444
echo -n " "
echo -n -s (date +%H:%M) " "
set_color -b normal 222
echo -n -s... | Make the default prompt include date and time | Make the default prompt include date and time
| fish | mit | RamonGebben/devstar,RamonGebben/devstar,RamonGebben/devstar,RamonGebben/devstar |
b0b9a3703ddfb0ce357ca09233e5f02caccf03ef | contrib/completion/fish/docker-compose.fish | contrib/completion/fish/docker-compose.fish | # Tab completion for docker-compose (https://github.com/docker/compose).
# Version: 1.9.0
complete -e -c docker-compose
for line in (docker-compose --help | \
string match -r '^\s+\w+\s+[^\n]+' | \
string trim)
set -l doc (string split -m 1 ' ' -- $line)
complete -c docker-compose -n '__... | Add fish completion to contrib. | Add fish completion to contrib.
Signed-off-by: Bheesham Persaud <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@bheesham.com>
| fish | apache-2.0 | vdemeester/compose,swoopla/compose,funkyfuture/docker-compose,michael-k/docker-compose,shin-/compose,funkyfuture/docker-compose,schmunk42/compose,vdemeester/compose,hoogenm/compose,thaJeztah/compose,schmunk42/compose,jrabbit/compose,sdurrheimer/compose,swoopla/compose,dnephin/compose,dnephin/compose,shin-/compose,hooge... | |
e7ddbaff6726e2b4f1bf82b148da19ce3b0b6931 | conf.d/_mason-alias.fish | conf.d/_mason-alias.fish | alias f 'find -L . -name'
alias p 'ps -ef'
alias pf 'ps -ef | grep'
alias disk-space 'df -h'
alias ipinfo 'curl ipinfo.io'
function find-string -d 'Find string in all files under current directory. http://explainshell.com/explain?cmd=grep+-rnw+.+-H+-e+%24argv '
grep -rni * -e $argv
end
function does-exist
return ... | alias f 'find -L . -name'
alias p 'ps -ef'
alias pf 'ps -ef | grep'
alias disk-space 'df -h'
alias ipinfo 'curl ipinfo.io'
function find-string -d 'Find string in all files under current directory. http://explainshell.com/explain?cmd=grep+-rnw+.+-H+-e+%24argv '
grep -rni * -e $argv
end
function does-exist
return ... | Use case-insentive search for `less` | Use case-insentive search for `less`
| fish | mit | masonwan/fish-config,masonwan/fish-config |
a9a193c611f424869d8f9d2d613c94c91ce358fd | _python.fish | _python.fish | # Use python2 if found, otherwise fallback to python.
function _python
if available python2
python2 $argv
else
python $argv
end
end
| # Use python2 if found, otherwise fallback to python.
function _python
if type -q python2
python2 $argv
else
python $argv
end
end
| Replace `available` usage with `type -q` | Replace `available` usage with `type -q`
| fish | mit | oh-my-fish/plugin-python |
0d0b49d16bdfcd03e3911aeba36201635dd27e26 | .config/fish/functions/🕸__npm.fish | .config/fish/functions/🕸__npm.fish | # Installs and updates npm modules.
function 🕸__npm
echo "🕸 NPM"
echo
set -l global_packages fast-cli n ralio
echo "Updating NPM"
npm install npm@latest -g
npm install --global $global_packages
npm doctor
end
| # Installs and updates npm modules.
# https://docs.npmjs.com/cli
function 🕸__npm
echo "🕸 NPM"
echo
set -l global_packages fast-cli n ralio
set -l installed_packages (npm list -g --depth=0)
# Example output:
# /usr/local/lib
# ├── fast-cli@0.2.1
# ├── n@2.1.7
# ├── npm@4.5.0
... | Use update instead of reinstalling packages | [npm] Use update instead of reinstalling packages
| fish | mit | phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles |
b2ef6f42fd08915520454070a8b35d547ec1fca4 | fish/functions/ll.fish | fish/functions/ll.fish |
function ll $argv
exa \
--long \
--colour=auto \
--all \
--group-directories-first \
--sort name \
--group \
--time modified \
--no-filesize \
$argv
end
| Add a function to view the contents of a directory using the exa command | Add a function to view the contents of a directory using the exa command
| fish | mit | nitul1991/dotfiles,nitul1991/dotfiles | |
5d7fe02e5932d8ae47c7d137e47835a0b36cdf62 | dotfish/env.fish | dotfish/env.fish | # LANG
# http://curiousabt.blog27.fc2.com/blog-entry-65.html
set -x LANG ja_JP.UTF-8
set -x LESSCHARSET utf-8
# Editor
set -x EDITOR nvim
# Path
set -U fish_user_paths $HOME/.asdf/shims
set -U fish_user_paths $HOME/dotfiles/bin
set -U fish_user_paths $HOME/.bin
set -U fish_user_paths $HOME/.local/bin
set -U fish_user... | # LANG
# http://curiousabt.blog27.fc2.com/blog-entry-65.html
set -x LANG ja_JP.UTF-8
set -x LESSCHARSET utf-8
# Editor
set -x EDITOR nvim
# Path
set -x PATH /usr/local/bin $PATH
set -x PATH $HOME/.asdf/shims $PATH
set -x PATH $HOME/dotfiles/bin $PATH
set -x PATH $HOME/.bin $PATH
set -x PATH $HOME/.local/bin $PATH
set... | Add path for arm mac | Add path for arm mac
| fish | mit | ukoasis/dotfiles |
54602c94f1fcd80be0e4aae1c047f9e39ce73e07 | fish/config.fish | fish/config.fish | # Set path
set -x PATH /usr/local/share/npm/bin /usr/local/share/python /usr/local/bin /usr/local/sbin $HOME/bin $PATH
# Initialise rbenv
set PATH $HOME/.rbenv/bin $PATH
set PATH $HOME/.rbenv/shims $PATH
rbenv rehash >/dev/null ^&1
# Include aliases
. $HOME/.files/aliases
# Set default pager and options for less
# (... | # Set path
set -x PATH /usr/local/share/npm/bin /usr/local/bin /usr/local/sbin $HOME/bin $PATH
# Initialise rbenv
set PATH $HOME/.rbenv/bin $PATH
set PATH $HOME/.rbenv/shims $PATH
rbenv rehash >/dev/null ^&1
# Include aliases
. $HOME/.files/aliases
# Set default pager and options for less
# (copied from zsh, makes i... | Remove /usr/local/share/python from PATH since homebrew no longer needs it | Remove /usr/local/share/python from PATH since homebrew no longer
needs it
"Warning: /usr/local/share/python is not needed in PATH.
Formerly homebrew put Python scripts you installed via `pip` or `pip3`
(or `easy_install`) into that directory above but now it can be removed
from your PATH variable.
Python scripts will... | fish | mit | spinningarrow/.files,spinningarrow/.files |
a8b6946143800436cda90cc96fa50faba7f22473 | config/fish/config.fish | config/fish/config.fish | # Turn off the default greeting
set fish_greeting
# Add Postgres.app tools to path, but before asdf inits, so asdf's shims end up first
set -gx PATH /Applications/Postgres.app/Contents/Versions/latest/bin $PATH
status --is-interactive; and source /usr/local/opt/asdf/asdf.fish
set __fish_git_prompt_showdirtystate 'ye... | # Turn off the default greeting
set fish_greeting
# Add Postgres.app's bin to path, but before asdf inits, so asdf's shims end up first
set PATH /Applications/Postgres.app/Contents/Versions/latest/bin $PATH
status --is-interactive; and source /usr/local/opt/asdf/asdf.fish
set __fish_git_prompt_showdirtystate 'yes'
s... | Fix PATH handling for asdf/postgres | Fix PATH handling for asdf/postgres
| fish | mit | timriley/dotfiles,timriley/dotfiles |
908671b432320fa6c50e8b2ea08c1f10d447eea2 | oiw.fish | oiw.fish | function oiw --description 'Find a folder in your workspace and cd into it'
set where ~
set level 1
set query "/workspace*$argv"
set res (find -L $where -mindepth $level -maxdepth (math $level+1) -type d -iwholename "*$query*" -print)
set shortest (echo $res | sed -e 's/\s\+/\n/g'| awk '{ print length(... | function oiw --description 'Find a folder in your workspace and cd into it'
set where ~
set level 1
set query "/workspace*$argv"
set res (find -L $where -mindepth $level -maxdepth (math $level+2) -type d -iwholename "*$query*" -print)
set shortest (echo $res | sed -e 's/\s\+/\n/g'| awk '{ print le... | Change OIWs maxdepth to 3 | Change OIWs maxdepth to 3
| fish | mit | MoritzKn/fish-functions |
da106dc1d07eee00ec5bbfb6eab650fc59de7e39 | fish_prompt.fish | fish_prompt.fish | function fish_prompt
set -l tomita_vi_mode "$TOMITA_VI"
echo
set_color $fish_color_cwd
printf '%s' (prompt_pwd)
set_color normal
printf '%s ' (__fish_git_prompt)
if test -z (string match -ri '^no|false|0$' $TOMITA_VI)
printf '['
switch $fish_bind_mode
case default
set_color --bold... | function fish_prompt
set -l tomita_vi_mode "$TOMITA_VI"
echo
set_color $fish_color_cwd
printf '%s' (prompt_pwd)
set_color normal
printf '%s ' (__fish_git_prompt)
if test -z (string match -ri '^no|false|0$' $tomita_vi_mode)
printf '['
switch $fish_bind_mode
case default
set_color --b... | Hide VI indicator with env var | Hide VI indicator with env var
| fish | mit | daveyarwood/tomita |
92b9973c86941e305fab0291fd84a03eacbfbf45 | config/fish/config.fish | config/fish/config.fish | fish_vi_key_bindings
set fish_user_paths "$HOME/"{.local/bin,.local/go/bin,go/bin,node_modules/.bin,.gem/ruby/*/bin}
set -x GOPATH "$HOME/go"
set -x GOROOT "$HOME/.local/go"
set -x GPG_TTY (tty)
set fish_complete_path "$HOME/git/github.fish-pip-completion" $fish_complete_path
switch (uname)
case Linux
s... | fish_vi_key_bindings
set fish_user_paths "$HOME/"{.local/bin,.local/go/bin,go/bin,node_modules/.bin,.gem/ruby/*/bin}
set -x GPG_TTY (tty)
set fish_complete_path "$HOME/git/github.fish-pip-completion" $fish_complete_path
switch (uname)
case Linux
source /usr/share/autojump/autojump.fish
case Darwin
... | Use default Go environment variables | fix: Use default Go environment variables
| fish | mit | e4r7hbug/dotfiles,e4r7hbug/dotfiles |
f6751c5afe2a502bf2585bc74fdf96bd350d9dbf | fish/functions/rvm.fish | fish/functions/rvm.fish | function rvm --description='Ruby enVironment Manager'
# run RVM and capture the resulting environment
set --local env_file (mktemp -t rvm.fish.XXXXXXXXXX)
bash -c 'source ~/.rvm/scripts/rvm; rvm "$@"; status=$?; env > "$0"; exit $status' $env_file $argv
# apply rvm_* and *PATH variables from the captured envir... | Add RVM fish config file | Add RVM fish config file
| fish | mit | barrettclark/dotfiles,barrettclark/dotfiles | |
46f3cf2f421138b385451ef549121b45e69b0407 | fish/config.fish | fish/config.fish | # A workaround for Fish re-reading config for non-interactive execution:
# https://git.io/yj4KoA
if not status --is-interactive
exit
end
# fundle
fundle plugin 'edc/bass'
fundle plugin 'brgmnn/fish-docker-compose'
fundle init
# rbenv
if which rbenv > /dev/null
source (rbenv init -|psub)
end
# pyenv
if which pyen... | # A workaround for Fish re-reading config for non-interactive execution:
# https://git.io/yj4KoA
if not status --is-interactive
exit
end
# fundle
fundle plugin 'edc/bass'
fundle plugin 'brgmnn/fish-docker-compose'
fundle init
# rbenv
if which rbenv > /dev/null
source (rbenv init -|psub)
end
# pyenv
if which pyen... | Add ImageMagick and personal scripts to PATH | Add ImageMagick and personal scripts to PATH
| fish | mit | toddmazierski/dotfiles,toddmazierski/dotfiles |
bd08f12e7f0a7f0b352df8f3e1bce8f210066f1c | scripts/kdb.fish | scripts/kdb.fish | function __fish_kdb_no_subcommand -d 'Check if the current commandline buffer does not contain a subcommand'
set subcommands (__fish_kdb_print_subcommands)
for input in (commandline -opc)
if contains -- $input $subcommands
return 1
end
end
return 0
end
function __fish_kdb_pr... | # -- Functions -----------------------------------------------------------------------------------------------------------------------------
function __fish_kdb_no_subcommand -d 'Check if the current commandline buffer does not contain a subcommand'
set subcommands (__fish_kdb_print_subcommands)
for input in (... | Use comments to structure file | Completions: Use comments to structure file
| fish | bsd-3-clause | ElektraInitiative/libelektra,e1528532/libelektra,petermax2/libelektra,ElektraInitiative/libelektra,petermax2/libelektra,e1528532/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,e1528532/libelektra,BernhardDenner/libelektra,mpranj/libelektra,mpranj/libelektra,BernhardDenner/libelektra,ElektraInitiative... |
c244d3441696d6f9ce6e5602edb786d79991d855 | .config/fish/env.fish | .config/fish/env.fish | set -x PATH (brew --prefix coreutils)/libexec/gnubin $PATH
### RBENV
set -x RBENV_ROOT (brew --prefix rbenv)
set -x PATH $RBENV_ROOT/bin $PATH
set -x PATH $RBENV_ROOT/shims $PATH
set -x GEM_HOME (brew --prefix)/opt/gems
set -x GEM_PATH (brew --prefix)/opt/gems
### NVM
source ~/.config/fish/nvm-wrapper/nvm.fish
| ## Note: Replaced calls to brew --prefix with actual values since
## it is slow (~ 200 ms)
set -x PATH /usr/local/opt/libexec/gnubin $PATH
### RBENV
set -x RBENV_ROOT /usr/local/opt/rbenv
set -x PATH $RBENV_ROOT/bin $PATH
set -x PATH $RBENV_ROOT/shims $PATH
set -x GEM_HOME /usr/local/opt/gems
set -x GEM_PATH /usr/loc... | Replace brew --prefix with values; time ~200ms->20ms | Replace brew --prefix with values; time ~200ms->20ms
| fish | epl-1.0 | jakubholynet/dotfiles,jakubholynet/dotfiles |
a6a5cf8cde9e13dd408ddeec58fb34681ae5ce9d | fish/.config/fish/config.fish | fish/.config/fish/config.fish | #!/usr/bin/env fish
# PATH
if test -d /usr/local/sbin
set PATH /usr/local/sbin $PATH
end
if test -x /usr/local/bin/cargo
set PATH ~/.cargo/bin $PATH
end
if test -x /usr/local/bin/yarn
set PATH ~/.yarn/bin ~/.config/yarn/global/node_modules/.bin $PATH
end
if test -z "$NVIM_LISTEN_ADDRESS"
set EDITOR nvim --... | #!/usr/bin/env fish
# PATH
if test -d /usr/local/sbin
set PATH /usr/local/sbin $PATH
end
if test -x /usr/local/bin/cargo
set PATH ~/.cargo/bin $PATH
end
if test -x /usr/local/bin/yarn
set PATH ~/.yarn/bin ~/.config/yarn/global/node_modules/.bin $PATH
end
# Neovim settings
if test -z "$NVIM_LISTEN_ADDRESS"
... | Set MANPAGER as neovim inside a neovim instance | Set MANPAGER as neovim inside a neovim instance
| fish | mit | bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles |
2a8da400c3ca624e60d743af3bde0fa6abe7b731 | fish/scripts/backup-recording.fish | fish/scripts/backup-recording.fish | #!/usr/bin/fish
set UNIFI_API_KEY get-from-unifi-video-user-account-page
set UNIFI_SERVER_ADDR https://<hostname or IP>:<port>
# shared storage between two containers on my server, it's OK
set SAMBA_USER username
set SAMBA_PASS password
set SAMBA_ADDR //192.168.0.4/Users
set SAMBA_DIR path/to/share
set json_file $ar... | #!/usr/bin/fish
set UNIFI_API_KEY get-from-unifi-video-user-account-page
set UNIFI_SERVER_ADDR https://<hostname or IP>:<port>
set BACKUP_DIR /path/to/backups
set json_file $argv
set camera_name (cat $json_file | jq --raw-output .'meta | .cameraName')
set start_time (date --date=@(math (cat $json_file | jq '.startTim... | Make script more generic, & move files instead of copy. | Make script more generic, & move files instead of copy.
| fish | mit | ammgws/dotfiles,ammgws/dotfiles,ammgws/dotfiles |
752306c1340bd0ed2ec713ab8aaf447f2bc3ad8f | functions/apply-policy.fish | functions/apply-policy.fish | function apply-policy --argument-names type target policy
print-status iam/apply-policy "$type $target $policy"
aws iam put-$type-policy --$type-name $target --policy-name $policy --policy-document file://iam/$type-policy/$target/$policy.json
end
| Add function to apply a policy to a user or group | Add function to apply a policy to a user or group
| fish | mit | colstrom/piranha,colstrom/shellops-aws | |
8b487bbec871bf4bca29bf98f3f534fb51cc6ab1 | functions/store-secret.fish | functions/store-secret.fish | function store-secret --argument key
trace (status --current-filename) $argv
set value (rest $argv)
if empty "$key" "$value"
usage store-secret '<key>' '<value>'
return 23
end
set trusted (get config/trusted)
if empty trusted
print --failure "No trusted recipients def... | Add function to store secret data | Add function to store secret data
| fish | mit | colstrom/piranha,colstrom/shellops-aws | |
5a1cdb1f6c7ee0c2026828eed7ec1e986e29d7b9 | fish/.config/fish/aliases.fish | 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 /Applications/WebStorm.app"
alias pubkey="more ~/.ssh/id_rsa.pub | pbcopy | echo '=> Public key copied to pasteboard.'"
| # 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="more ~/.ssh/id_rsa.pub | pbcopy | echo '=> Publ... | Use projects in EAP WebStorm versions using `storm` | Use projects in EAP WebStorm versions using `storm`
| fish | mit | nickwaelkens/dotfiles,nickwaelkens/dotfiles |
fe293e6350387c1a5bf634b1efaddece885e1e8f | functions/bass.fish | functions/bass.fish | function bass
set -l bash_args $argv
set -l bass_debug
if test "$bash_args[1]_" = '-d_'
set bass_debug true
set -e bash_args[1]
end
set -l script_file (mktemp)
if command -v python3 >/dev/null 2>&1
command python3 (dirname (status -f))/__bass.py $bash_args 3>$script_file
else
command pyth... | function bass
set -l bash_args $argv
set -l bass_debug
if test "$bash_args[1]_" = '-d_'
set bass_debug true
set -e bash_args[1]
end
set -l script_file (mktemp)
if command -v python3 >/dev/null 2>&1
command python3 -sS (dirname (status -f))/__bass.py $bash_args 3>$script_file
else
command ... | Improve startup speed by running Python with `-sS` | Improve startup speed by running Python with `-sS`
This patch improves startup speed by disabling Python's `site` module:
```
-s Don't add user site directory to sys.path.
-S Disable the import of the module site and the site-dependent
manipulations of sys.path that it entails.
```
Benchmarked with... | fish | mit | edc/bass,edc/bass |
abca0edb8df186667c49e8970a43392e8f775a85 | functions/psg.fish | functions/psg.fish | function psg -d "Details on a given process with table headers retained (ps aux | grep $argv); use [a]rgv to avoid showing grep command"
ps axu | grep '[C]OMMAND\|'$argv # show detailed table of processes matching description; [] avoids catching COMMAND in self, you'd still have to enclose relevant $ar... | function psg -d "Details on a given process with table headers retained (ps aux | grep $argv); use [a]rgv to avoid showing grep command or add grep -v grep"
if test -z $argv # no arguments
ps axu | grep -v grep | grep '[C]OMMAND\|'
else if test (string length "$argv") -eq 1 # argument of 1 character lengt... | Complete process list function to exclude itself in results | Complete process list function to exclude itself in results
| fish | mit | eugenesvk/Settings-Fish |
b55438f30395b2155e8e5d952b2d665531141519 | fish/functions/fish_prompt.fish | fish/functions/fish_prompt.fish | function git_status
if git rev-parse --is-inside-work-tree 1> /dev/null 2>& 1
if not git diff --quiet
set_color red
echo -n "✘ "
set_color normal
end
if not git diff --quiet --cached
set_color yellow
echo -n "✷ "
set_col... | function git_status
if git rev-parse --is-inside-work-tree 1> /dev/null 2>& 1
if not git diff --quiet
set_color red
echo -n "✘"
set_color normal
end
if not git diff --quiet --cached
set_color yellow
echo -n "✔︎"
set_colo... | Make fish prompt more compact, show unstaged files | Make fish prompt more compact, show unstaged files
| fish | mit | justuswilhelm/pufferfish,justuswilhelm/pufferfish |
05228dfaf184c84a7820dd3a5e294a5dfbca5196 | fish/functions/fish_prompt.fish | fish/functions/fish_prompt.fish | function fish_prompt
set -l yellow (set_color yellow)
set -l blue (set_color blue)
set -l normal (set_color normal)
set branch (git branch 2>/dev/null | grep \* | sed 's/\*//g' | sed 's/ //g')
if set -q branch
echo $yellow(prompt_pwd) [$blue$branch$yellow] ">> "
else
echo $yell... | function fish_prompt
set -l yellow (set_color yellow)
set -l blue (set_color blue)
set -l normal (set_color normal)
set branch (git branch 2>/dev/null | grep \* | sed 's/\*//g' | sed 's/ //g')
echo "$blue┏╸$yellow"(prompt_pwd)
if test -n "$branch";
echo "$blue┣╸$yellow<$blue$branch$ye... | Add UnicodeBox Format To Fish Prompt | Add UnicodeBox Format To Fish Prompt
| fish | mit | BradLyman/ubuntu-setup,BradLyman/ubuntu-setup,BradLyman/ubuntu-setup,BradLyman/ubuntu-setup |
54b57876589f1a11a00151366db32cf858a9050a | fish/config.fish | fish/config.fish | # rbenv
set PATH $HOME/.rbenv/bin $PATH
set PATH $HOME/.rbenv/shims $PATH
status --is-interactive; and source (rbenv init -|psub)
# base16 shell
if status --is-interactive
eval sh $HOME/code/dotfiles/base16-builder-ruby/templates/shell/scripts/base16-onedark.sh
end
| # rbenv
status --is-interactive; and source (rbenv init -|psub)
# base16 shell
if status --is-interactive
eval sh $HOME/code/dotfiles/base16-builder-ruby/templates/shell/scripts/base16-onedark.sh
end
| Remove old rbenv loading setup | Remove old rbenv loading setup
| fish | mit | fresham/dotfiles |
888ba2256c064b9a9dc70be029fac2a6d3ac2fad | fish/.config/fish/config.fish | fish/.config/fish/config.fish | # Initializes sharship prompt
if command -v starship > /dev/null
starship init fish | source
end
# Initializes asdf
if test -f ~/.asdf/asdf.fish > /dev/null
source ~/.asdf/asdf.fish
end
# Abbreviations
abbr --add be bundle exec
abbr --add dc docker-compose
abbr --add g git
abbr --add gd git diff
abbr --add gd... | # Initializes sharship prompt
if command -v starship > /dev/null
starship init fish | source
end
# Initializes asdf
if test -f ~/.asdf/asdf.fish > /dev/null
source ~/.asdf/asdf.fish
end
# Abbreviations
abbr --add ... cd ../..
abbr --add .... cd ../../..
abbr --add ..... cd ../../../..
abbr --add / cd /
abbr -... | Add aliases for mkdir -p, .., ..., ...., / | Add aliases for mkdir -p, .., ..., ...., /
| fish | mit | nTraum/dotfiles,nTraum/dotfiles |
538c396dfda73602d935b7e4cd3dcb6e3912a96e | functions/revoke-access-key.fish | functions/revoke-access-key.fish | function revoke-access-key --argument user key
if empty "$user" "$key"
usage revoke-access-key '<user>' '<key>'
return (false)
end
aws iam delete-access-key --user-name "$user" --access-key-id "$key"
end
| Add function to revoke a user's access key | Add function to revoke a user's access key
| fish | mit | colstrom/piranha,colstrom/shellops-aws | |
9b491309ae3f1f63eb018d36cf1cf5be457548f8 | .config/fish/functions/take.fish | .config/fish/functions/take.fish | function take --description 'Creates a directory and takes you inside'
mkdir -p $argv[1]
cd $argv[1]
end
| function take --description 'Creates a directory and takes you inside'
mkdir -p $argv[1]
cd $argv[1]
end
| Use 4 spaces for padding | Use 4 spaces for padding
| fish | mit | stefanmaric/dotfiles,stefanmaric/dotfiles |
cb4a7135b91aace4a47c0ae47b809ac51a8fb862 | osx/config/fish/aliases.fish | osx/config/fish/aliases.fish | function ll
ls -al
end
function gll
git log --graph --date=short --pretty=format:'%Cgreen%h %Cblue%cd (%cr) %Cred%an%C(yellow)%d%Creset: %s'
end
function glll
git log --graph --stat --date=short --pretty=format:'%Cgreen%h %Cblue%cd (%cr) %Cred%an%C(yellow)%d%Creset: %s'
end
function goops
git add -A
... | function ll
ls -al
end
function gll
git log --graph --date=short --pretty=format:'%Cgreen%h %Cblue%cd (%cr) %Cred%an%C(yellow)%d%Creset: %s'
end
function glll
git log --graph --stat --date=short --pretty=format:'%Cgreen%h %Cblue%cd (%cr) %Cred%an%C(yellow)%d%Creset: %s'
end
function goops
git add -A
... | Add conversion shortcuts for Reason | Add conversion shortcuts for Reason
| fish | mit | maxdeviant/dotfiles |
ac9ab76b4402a8a6cfe8b626c0e712d4e3e11d35 | config/fish/core/01-variables.fish | config/fish/core/01-variables.fish | # development environment
set -gx EDITOR (type -p nvim)
set -gx VIRTUAL_ENV_DISABLE_PROMPT 1
# GPG stuff
set -gx GPG_TTY (tty)
# pager stuff
set -gx PAGER bat
# PATH stuff
set PATH $PATH \
$DOTFILES/bin \
~/.nodejs/{node,yarn}/bin \
./node_modules/.bin
# macOS specific vars
if test (uname) = 'Darwin'
set PA... | # development environment
set -gx EDITOR (type -p nvim)
set -gx VIRTUAL_ENV_DISABLE_PROMPT 1
# GPG stuff
set -gx GPG_TTY (tty)
# pager stuff
set -gx PAGER less
# PATH stuff
set PATH $PATH \
$DOTFILES/bin \
~/.nodejs/{node,yarn}/bin \
./node_modules/.bin
# macOS specific vars
if test (uname) = 'Darwin'
set P... | Fix issue with bat set as PAGER variable | Fix issue with bat set as PAGER variable
| fish | mit | codemonkey800/dotfiles,codemonkey800/dotfiles,codemonkey800/dotfiles,codemonkey800/dotfiles |
c3c37362b7b1bab1c3b2947a8fffbc88ca3ae368 | fish/init/ruby.fish | fish/init/ruby.fish |
if [ -d ~/.rbenv ]
set --export PATH ~/.rbenv/shims $PATH
rbenv rehash > /dev/null ^&1
function rbenv_shell
set --local vers $argv[1]
switch "$vers"
case '--complete'
echo '--unset'
echo 'system'
exec rbenv-versions --bare
return
case '-... | if [ -d ~/.rbenv ]
set --export PATH ~/.rbenv/shims $PATH
rbenv rehash > /dev/null ^&1
function rbenv_shell
set --local vers $argv[1]
switch "$vers"
case '--complete'
echo '--unset'
echo 'system'
exec rbenv-versions --bare
return
case '--... | Remove broken bundle exec shim | Remove broken bundle exec shim
| fish | mit | lee-dohm/environment,lee-dohm/environment,lee-dohm/environment |
08c23178b2453866313d115c35494a629217c6fd | functions/_fish_shell_version.fish | functions/_fish_shell_version.fish | function _fish_shell_version
printf "%s\n" (fish -v 2>| sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/' | sed -e 's:\.::g')
end | Add a function to get the fish version as a number | Add a function to get the fish version as a number
| fish | mit | simotek/tackle,simotek/tackle | |
4e2d2f629f1438eccda875e096978bb0b62d4d37 | 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'
set -x EMACS_TRUE_COLO... | 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'
set -x EMACS_TRUE_COLO... | Use psc-package for psci instead of pulp | Use psc-package for psci instead of pulp
| fish | mit | noraesae/dotfiles,noraesae/dotfiles,noraesae/dotfiles |
0fca777f1d1cfe73a6d7a79dd897e28e0f9b43c1 | git-pair.fish | git-pair.fish | #!/usr/bin/env fish
# for i in (expr (count $argv) - 1)
# echo $argv[$i]
# end
if [ $argv = 'add' ]
# vim pairs.yaml
echo Nickname:
read nickname
echo Name:
read name
echo Email:
read email
echo "- nickname: $nickname" >> pairs.yaml
echo " name: $name" >> pairs.yaml
echo " email: $email" >> pairs.yaml
... | #!/usr/bin/env fish
set pairs_config_path ./.git-pairables.yaml
if [ $argv[1] = 'add' ]
echo Nickname:
read nickname
echo Name:
read name
echo Email:
read email
echo "- nickname: $nickname" >> $pairs_config_path
echo " name: $name" >> $pairs_config_path
echo " email: $email" >> $pairs_config_path
exit 0
... | Add top level command for setting pairs | Add top level command for setting pairs
| fish | mit | spinningarrow/git-pair |
4e1a548d8fef1d2ad362625247e88df1f9be42f4 | functions/generate-password.fish | functions/generate-password.fish | function generate-password
set --local length (aws iam get-account-password-policy | jq --raw-output .PasswordPolicy.MinimumPasswordLength)
set --local requirements (password-requirements)
set --local password
while test -z "$password"
set password (env LC_CTYPE=C tr -c -d (echo $requirements |... | Add function to generate password based on requirements | Add function to generate password based on requirements
| fish | mit | colstrom/shellops-aws,colstrom/piranha | |
9cb02aad04114d81c3b2305e97c113ae346ba237 | init.fish | init.fish | # Skip if $cgitc_initialized is set
if not set -q cgitc_initialized
printf 'Initializing \e[33mcgitc\e[0m ... '
for line in (cat (dirname (status -f))/abbreviations)
# 1. Strip out comments
# 2. Squeeze repeating spaces
# 3. Strip trailing whitespaces
set line (echo "$line" | cut -d '#' -f 1 | tr... | # Skip if cgitc_revision is up to date
set -l current_revision (git -C (dirname (status -f)) rev-parse HEAD)
if [ $cgitc_revision != $current_revision ]
printf 'Initializing \e[33mcgitc\e[0m ... '
for line in (cat (dirname (status -f))/abbreviations)
# 1. Strip out comments
# 2. Squeeze repeating spaces
... | Enable updates for plugin managers | Enable updates for plugin managers
Resolves #9.
| fish | mit | simnalamburt/pkg-cgitc |
16c77cd97cd4857bd433d868a03904f628edac17 | fish/env.fish | fish/env.fish | fortune sadserver_tweets | cowsay
set -gx EDITOR /usr/local/bin/vim
set -gx BUNDLER_EDITOR $EDITOR
set -gx TERM "screen-256color"
# Manpage settings {{{
set -gx MANPAGER "less -X"
# }}}
# Todo.sh settings {{{
set -gx TODOTXT_DEFAULT_ACTION ls
# }}}
set -gx COPYFILE_DISABLE true
# PATH {{{
append-to-path ~/bin
appen... | fortune sadserver_tweets | cowsay
set -gx EDITOR /usr/local/bin/vim
set -gx BUNDLER_EDITOR $EDITOR
set -gx TERM "screen-256color"
# Manpage settings {{{
set -gx MANPAGER "less -X"
# }}}
# Todo.sh settings {{{
set -gx TODOTXT_DEFAULT_ACTION ls
# }}}
set -gx COPYFILE_DISABLE true
# PATH {{{
append-to-path ~/bin
appen... | Add homebrew item to path | Add homebrew item to path
| fish | mit | barrettclark/dotfiles,barrettclark/dotfiles |
d4566908e1f107baed662e43ce66b47313fd784b | config.fish | config.fish | # Set path
set -x PATH /usr/local/share/npm/bin /usr/local/share/python /usr/local/bin /usr/local/sbin $HOME/bin $PATH
# Initialise rbenv
set PATH $HOME/.rbenv/bin $PATH
set PATH $HOME/.rbenv/shims $PATH
rbenv rehash >/dev/null ^&1
# Include aliases
. $HOME/dotfiles/aliases
# Set colors
set fish_color_command 89adf... | # Set path
set -x PATH /usr/local/share/npm/bin /usr/local/share/python /usr/local/bin /usr/local/sbin $HOME/bin $PATH
# Initialise rbenv
set PATH $HOME/.rbenv/bin $PATH
set PATH $HOME/.rbenv/shims $PATH
rbenv rehash >/dev/null ^&1
# Include aliases
. $HOME/dotfiles/aliases
# Set default pager and options for less
#... | Change pager and set less options | Change pager and set less options
| fish | mit | spinningarrow/.files,spinningarrow/.files |
ce1cf9c03220d04b384d335cae3f20ad0e01c956 | share/fry/functions/fry-install.fish | share/fry/functions/fry-install.fish | function fry-install --description 'Install rubies (requires ruby-build)'
if not test (which ruby-build)
echo 'fatal: This feature requires ruby-build'
return 1
end
if test (count $argv) -eq 0
echo 'usage: fry install <ruby>'
echo
echo 'Available rubies:'
ruby-build --definitions
retu... | function fry-install --description 'Install rubies (requires ruby-build)'
if not test (which ruby-build)
echo 'fatal: This feature requires ruby-build'
return 1
end
if test (count $argv) -eq 0
echo 'usage: fry install <ruby>'
echo
echo 'Available rubies:'
ruby-build --definitions
retu... | Use contains instead of switch | Use contains instead of switch
TIL about the -- argument to commands
| fish | mit | terlar/fry |
becf4d8fddf004a5121ed9fafbbbba3242583228 | fish/.config/fish/functions/increase-tmp.fish | fish/.config/fish/functions/increase-tmp.fish | function increase-tmp
set_color --bold brmagenta
echo "Running command: sudo mount -o remount,size=7G,noatime /tmp"
set_color normal
echo "Current size: "
df --human-readable --output='size,target' --block-size=M | grep /tmp
sudo mount -o remount,size=7G,noatime /tmp
echo "New size: "
df --human-readabl... | Add before/after sizes to script | Add before/after sizes to script
| fish | mit | ammgws/dotfiles,ammgws/dotfiles,ammgws/dotfiles | |
a074662e0caae143348db8b5708334750330df11 | fish/.config/fish/config.fish | fish/.config/fish/config.fish | #!/usr/bin/env fish
# PATH
if test -d /usr/local/sbin
set PATH /usr/local/sbin $PATH
end
if test -x /usr/local/bin/cargo
set PATH ~/.cargo/bin $PATH
end
if test -x /usr/local/bin/yarn
set PATH ~/.yarn/bin ~/.config/yarn/global/node_modules/.bin $PATH
end
set EDITOR nvim
set VISUAL nvim
if test -n "$NVIM_LIS... | #!/usr/bin/env fish
# PATH
if test -d /usr/local/sbin
set PATH /usr/local/sbin $PATH
end
if test -x /usr/local/bin/cargo
set PATH ~/.cargo/bin $PATH
end
if test -x /usr/local/bin/yarn
set PATH ~/.yarn/bin ~/.config/yarn/global/node_modules/.bin $PATH
end
if test -z "$NVIM_LISTEN_ADDRESS"
set EDITOR nvim
... | Fix EDITOR variable inside neovim session | Fix EDITOR variable inside neovim session
There's an order of operations problem with setting the EDITOR and
VISUAL environment variables inside fish configuration. The correct
configuration is setup in nvr.vim after plugin, but the fish
configuration, which does not properly split and wait for edits,
overrides it. Ad... | fish | mit | bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles |
7cf05753b9d47a21f8b9e09389b0cce9c329e758 | fish/init/editor.fish | fish/init/editor.fish |
if [ (uname -s) = 'Darwin' -a -f '/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl' ]
set --global --export EDITOR 'subl -w'
else
set --global --export EDITOR vim
end
|
if [ (uname -s) = 'Darwin' -a -f '/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl' ]
set --global --export EDITOR 'subl --wait'
else
set --global --export EDITOR vim
end
| Use full parameter name for clarity | Use full parameter name for clarity
| fish | mit | lee-dohm/environment,lee-dohm/environment,lee-dohm/environment |
9daf928e424feff9c5f266ca6a0fb52be337eb85 | dot.config/fish/config.fish | dot.config/fish/config.fish | # Language
set -gx LANGUAGE en_US.UTF-8
set -gx LANG $LANGUAGE
set -gx LC_ALL $LANGUAGE
set -gx LC_CTYPE $LANGUAGE
# Editor
set -gx EDITOR vim
set -gx CVSEDITOR $EDITOR
set -gx SVN_EDITOR $EDITOR
set -gx GIT_EDITOR $EDITOR
# Pager
set -gx PAGER less
# XDG
set -gx XDG_CACHE_HOME $HOME/.cache
set -gx XDG_CONFIG_HOME $... | # Language
set -gx LANGUAGE en_US.UTF-8
set -gx LANG $LANGUAGE
set -gx LC_ALL $LANGUAGE
set -gx LC_CTYPE $LANGUAGE
# Editor
set -gx EDITOR vim
set -gx CVSEDITOR $EDITOR
set -gx SVN_EDITOR $EDITOR
set -gx GIT_EDITOR $EDITOR
# Pager
set -gx PAGER less
# XDG
set -gx XDG_CACHE_HOME $HOME/.cache
set -gx XDG_CONFIG_HOME $... | Set tmux-friendly version of fzf | Set tmux-friendly version of fzf
| fish | mit | ojiry/dotfiles |
9264bbe459e81efe97eb19740591d36ef2c25354 | fish/functions/pd.fish | fish/functions/pd.fish | function pd --description 'Change to a project directory'
set -l paths $HOME/Projects/{2014,2013,2014}
cd (find $paths -type d -maxdepth 2 | ack -i $argv[1] | ack -v Pods --max-count=1)
end
| function pd --description 'Change to a project directory'
set -l paths $HOME/Projects/{2014,2013,2012}
cd (find $paths -type d -maxdepth 2 | ack -i $argv[1] | ack -v Pods --max-count=1)
end
| Add 2012 to searching project directories | Add 2012 to searching project directories
| fish | mit | ryansobol/config,ryansobol/config |
21ffce6a71568089eae9fd2edda375dca5aaebcb | functions/list-users-in-group.fish | functions/list-users-in-group.fish | function list-users-in-group --argument-names group
print-status iam/list-users-in-group $group
test -f iam/group/$group.list
and cat iam/group/$group.list
end
| Add function to list users in a group | Add function to list users in a group
| fish | mit | colstrom/shellops-aws,colstrom/piranha | |
58885da1c0cdb61159304d6ed4ca1627b1d1ff83 | config.fish | config.fish | # Here is the configuration for the fish shell
source ~/deoxys314_dotfiles/fish/aliases.fish
source ~/deoxys314_dotfiles/fish/functions.fish
# important environmental variables
# set -g -x TERM screen-256color-bce
| # Here is the configuration for the fish shell
source ~/deoxys314_dotfiles/fish/aliases.fish
source ~/deoxys314_dotfiles/fish/functions.fish
set PATH $PATH ~/bin
# important environmental variables
# set -g -x TERM screen-256color-bce
| Add ~/bin to PATH to install personal executables. | Add ~/bin to PATH to install personal executables.
| fish | mit | deoxys314/deoxys314_dotfiles |
c2c54c655fdda476d11969b80c33a964341d2f3f | config.fish | config.fish | # Path to your oh-my-fish.
set fish_path $HOME/.oh-my-fish
# Theme
set fish_theme bobthefish
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-fish/plugins/*)
# Custom plugins may be added to ~/.oh-my-fish/custom/plugins/
# Example format: set fish_plugins autojump bundler
set fish_plugins rvm... | # Path to your oh-my-fish.
set fish_path $HOME/.oh-my-fish
# Theme
set fish_theme bobthefish
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-fish/plugins/*)
# Custom plugins may be added to ~/.oh-my-fish/custom/plugins/
# Example format: set fish_plugins autojump bundler
set fish_plugins rvm... | Remove uname on fish start | Remove uname on fish start
| fish | mit | J3RN/dotfiles |
f19958fe3b1c5575b5ed4f4d8328a08d8277c486 | functions/__z_add.fish | functions/__z_add.fish | function __z_add -d "Add PATH to .z file"
set -l path (dirname (status -f))
for i in $Z_EXCLUDE
if contains -- $PWD $i
return 0 #Path excluded
end
end
set -l tmpfile (mktemp $Z_DATA.XXXXXX)
if test -f $tmpfile
awk -v path="$PWD" -v now=(date +%s) -F "|" -f $path/zadd.awk $Z_DATA ^ ... | function __z_add -d "Add PATH to .z file"
set -l path (dirname (status -f))
for i in $Z_EXCLUDE
if contains -- $PWD $i
return 0 #Path excluded
end
end
set -l tmpfile (mktemp $Z_DATA.XXXXXX)
if test -f $tmpfile
awk -v path="$PWD" -v now=(date +%s) -F "|" -f $path/zadd.awk $Z_DATA ^ ... | Update completions for `zo` on dir change | Update completions for `zo` on dir change
| fish | mit | fisherman/z |
5a4009a3f894b0d057150a9f2ebfdb8a8a49057a | fish/functions/shift_scheme.fish | fish/functions/shift_scheme.fish | function shift_scheme
set fish_color_autosuggestion 3a3a3a brblack
set fish_color_cancel -r
set fish_color_command ffbf00
set fish_color_comment 7f7f7f
# These colors are not used in the prompt
set fish_color_cwd normal
set fish_color_cwd_root normal
set fish_color_end --bold ff7f00
set fish_color_err... | Implement a function to set a Shift-like color scheme | Implement a function to set a Shift-like color scheme
| fish | mit | wilfriedvanasten/miscvar,wilfriedvanasten/miscvar,wilfriedvanasten/miscvar | |
8b4fb370f8ac815a9b418c7b4b3465258e975d21 | fish/config.fish | 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"
set -xg PATH ~/.local/bin $PATH
# 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
if not tmux has -t "default" 2>&1 > /dev/null
tmux new -d -s "default"
end
if test -z "$TMUX"
set default_is_attached (string... | Make starting/attaching tmux default behaviour | Make starting/attaching tmux default behaviour
If tmux is already started and attached, the
session will be left alone and fish will
start normally
| fish | mit | wilfriedvanasten/miscvar,wilfriedvanasten/miscvar,wilfriedvanasten/miscvar |
7b9f923679146cbc6a04969e48eea3c049b9f58f | fish/config.fish | fish/config.fish | set normal (set_color normal)
set magenta (set_color magenta)
set yellow (set_color yellow)
set green (set_color green)
set red (set_color red)
set gray (set_color -o black)
# Interactive/login shells {{{
set fish_plugins brew rvm
# rvm default
if status --is-login
source ~/.config/fish/env.fish
end
# }}}
abbr -... | set normal (set_color normal)
set magenta (set_color magenta)
set yellow (set_color yellow)
set green (set_color green)
set red (set_color red)
set gray (set_color -o black)
# Interactive/login shells {{{
set fish_plugins brew rvm
# rvm default
if status --is-login
source ~/.config/fish/env.fish
# Load TCS file... | Load environment file (if exists) | Load environment file (if exists)
Load a global environment file for TCS environment variables, but only
if it exists.
| fish | mit | barrettclark/dotfiles,barrettclark/dotfiles |
c86fc3cba6b96e9ee6f812a68a82bc67ddc50a5d | .config/fish/functions/show_archive.fish | .config/fish/functions/show_archive.fish | function show_archive --description "List contents of compressed files"
for file in $argv
if test -f $file
echo -s "Listing: " (set_color --bold blue) $file (set_color normal)
switch $file
case *.tar
tar -tf $file
case *.tar.bz2 *.tbz2
bunzip2 -c $file | tar -tf - -... | function show_archive --description "List contents of compressed files"
for file in $argv
if test -f $file
echo -s "Listing: " (set_color --bold blue) $file (set_color normal)
switch $file
case *.tar
tar -tf $file
case *.tar.bz2 *.tbz2
bunzip2 -c $file | tar -tf - -... | Remove some incorrect case statements, that extract instead of list | Remove some incorrect case statements, that extract instead of list
| fish | mit | aawc/dotfiles,aawc/dotfiles |
6eecbf2e365a8f812d4ca0bd6fbb96c560ed4724 | fish/functions/fish_prompt.fish | fish/functions/fish_prompt.fish | function fish_prompt --description 'Write out the prompt'
set -l last_status $status
# User
set_color $fish_color_user
echo -n (whoami)
set_color normal
echo -n ' in '
# PWD
set_color $fish_color_cwd
# echo -n (prompt_pwd)
echo -n (pwd | sed -e "s|$HOME|~|")
set_color normal
# __terlar_git_pr... | function fish_prompt --description 'Write out the prompt'
set -l last_status $status
# User
set_color $fish_color_quote
echo -n (whoami)
set_color normal
echo -n ' in '
# PWD
set_color $fish_color_cwd
# echo -n (prompt_pwd)
echo -n (pwd | sed -e "s|$HOME|~|")
set_color normal
# __terlar_git_p... | Update fish prompt colors to prevent set_color errors | [fish] Update fish prompt colors to prevent set_color errors
- Need to check this on OS X and see why the error doesn't happen there
- use standard colors if possible
| fish | mit | spinningarrow/.files,spinningarrow/.files |
d675688a350682c84763bf3521cfd40ab6f20935 | init.fish | init.fish | function init -a path --on-event init_proxy
if set -q proxy_host
__proxy.set "http://$proxy_host"
end
end
| if set -q proxy_host
__proxy.set "http://$proxy_host"
end
| Initialize immediately, rather than waiting for an event. | Initialize immediately, rather than waiting for an event.
| fish | mit | oh-my-fish/plugin-proxy |
3624b71cf611e5863bf94182eca77054093edf7b | fish/.config/fish/functions/fish_prompt.fish | fish/.config/fish/functions/fish_prompt.fish | function fish_prompt
if test -e "$NVIM_LISTEN_ADDRESS"
echo "» "
else
echo "\$ "
end
end
| function fish_prompt
if test -e "$NVIM_LISTEN_ADDRESS"
echo (basename (pwd))"» "
else
echo (basename (pwd))"\$ "
end
end
| Add tail of path to fish prompt | Add tail of path to fish prompt
This mimics my bash prompt.
| fish | mit | bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles |
bf0356d2574bdc50a809246ec444b21abbbf1ab0 | functions/weather.fetch.fish | functions/weather.fetch.fish | function weather.fetch -d "Fetches data from a URL backed by a cache"
set md5 (echo $argv[1] | md5sum | cut -d " " -f 1)
if not find /tmp/$md5.url -mmin +30 ^ /dev/null
curl -s $argv[1] > /tmp/$md5.url
or return 1
end
cat /tmp/$md5.url
end
| function weather.fetch -d "Fetches data from a URL backed by a cache"
set md5 (__md5 "$argv")
if test (count $argv) -gt 1
for param in $argv[2..-1]
set flags $flags --data-urlencode $param
end
end
if not find /tmp/$md5.url -mmin +$weather_cache_age > /dev/null ^ /dev/null
curl -Gs $flags $ar... | Add GET parameters and more md5 providers | Add GET parameters and more md5 providers
| fish | mit | oh-my-fish/plugin-weather |
170911a3b5ba6ed1fb9566c7ba720bfcfeae8a7d | 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 .git/safe/../../bin $HOME/.bin $GOPATH/bin $HOME/.rbenv/bin $PATH
rbenv init - | source
alias b="bundle"
alias be="bundl... | 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... | Update path, add bin before shim/bin | Update path, add bin before shim/bin
| fish | mit | wangyuhere/dotfiles |
77bbc19295b3b1a8237a9c8763b3fa0613370440 | home/.config/fish/config.fish | home/.config/fish/config.fish | # fisher
set fisher_home ~/.local/share/fisherman
set fisher_config ~/.config/fisherman
# ENV
set -x EDITOR "/usr/local/bin/nvim"
set -x GOPATH "$HOME/go"
set -x GOROOT "/usr/local/opt/go/libexec"
set -x COMPOSER_HOME "$HOME/.composer"
#set -x RBENV_ROOT "/usr/local/var/rbenv"
#set -x PYENV_ROOT "/usr/local/... | # fisher
set fisher_home ~/.local/share/fisherman
set fisher_config ~/.config/fisherman
# ENV
set -x EDITOR "/usr/local/bin/nvim"
set -x GOPATH "$HOME/go"
set -x GOROOT "/usr/local/opt/go/libexec"
set -x COMPOSER_HOME "$HOME/.composer"
#set -x RBENV_ROOT "/usr/local/var/rbenv"
#set -x PYENV_ROOT "/usr/local/... | Change vim dev font, Add google cloud-sdk | Change vim dev font, Add google cloud-sdk
| fish | mit | dfdgsdfg/dotfiles |
1a2eb4b6a1463aed931825d20327b141e22a0fca | 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'
set -x EMACS_TRUE_COLO... | 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'
set -x EMACS_TRUE_COLO... | Use Node.js 8 by default | Use Node.js 8 by default
| fish | mit | noraesae/dotfiles,noraesae/dotfiles,noraesae/dotfiles |
e0357a6da839075a0eeebb4dc76bf44be3ca3237 | share/fry/functions/fry-find.fish | share/fry/functions/fry-find.fish | function fry-find --description 'Find ruby by name'
set -l name $argv[1]
set -l rubyless_name (echo $name | sed 's/^ruby-//')
for i in (fry-ls | sed '1!G;h;$!d')
switch $i
case "$name*" "$rubyless_name*" "ruby-$name*"
echo $i
return
end
end
return 1
end
| function fry-find --description 'Find ruby by name'
set -l name $argv[1]
set -l rubyless_name (echo $name | sed 's/^ruby-//')
for i in (fry-ls | sort -r -n)
switch $i
case "$name*" "$rubyless_name*" "ruby-$name*"
echo $i
return
end
end
return 1
end
| Sort instead of reversing ls | Sort instead of reversing ls
| fish | mit | terlar/fry |
4ee91a9892f7312c383f7a068bef231a5c6ccaa7 | apps/fish/.config/fish/config.fish | apps/fish/.config/fish/config.fish | set -x PATH ~/.local/bin $PATH
alias vim nvim
alias vi nvim
alias ghc 'stack exec -- ghc'
alias ghci 'stack exec -- ghci'
alias treea 'tree -a -I .git'
alias :q exit
# source local config
. ~/.config/fish/config.fish.local
| set -x PATH ~/.local/bin $PATH
set -x PATH ~/.gem/ruby $PATH
alias vim nvim
alias vi nvim
alias ghc 'stack exec -- ghc'
alias ghci 'stack exec -- ghci'
alias treea 'tree -a -I .git'
alias :q exit
# source local config
. ~/.config/fish/config.fish.local
| Add ruby gems to my path | Add ruby gems to my path
| fish | mit | KyleOndy/dotfiles,KyleOndy/dotfiles,KyleOndy/.dotfiles,KyleOndy/dotfiles |
df4456fd852a5475ab70d8d86d6a0d31f111bbbb | .config/fish/config.fish | .config/fish/config.fish | set -g -x fish_greeting ''
# Depending on systems, locale can be en_US.UTF8 or en_US.UTF-8
set -x LANG (locale -a | grep -i "en_US.*utf")
set -e LC_CTYPE
set -x CLICOLOR true
if type -p brew > /dev/null ^&1
set PATH (brew --prefix coreutils)"/libexec/gnubin" $PATH
set -x MANPATH (brew --prefix coreutils)"/li... | set -g -x fish_greeting ''
# Depending on systems, locale can be en_US.UTF8 or en_US.UTF-8
set -x LANG (locale -a | grep -i "en_US.*utf")
set -e LC_CTYPE
set -x CLICOLOR true
if test -f ~/brew/bin/brew
set PATH $HOME/brew/bin $PATH
set PATH (brew --prefix coreutils)"/libexec/gnubin" $PATH
set -x MANPATH ... | Add brew path when it does exist. | Add brew path when it does exist.
| fish | mit | nicdumz/dotfiles |
3ef4a95b6cab5c4efd83d7c9cb12eb8119ec4754 | conf.d/_mason-alias.fish | conf.d/_mason-alias.fish | alias pingtest 'ping google.com'
alias f 'find -L . -name'
alias p 'ps -ef'
alias pf 'ps -ef | grep'
alias disk-space 'df -h'
alias ipinfo 'curl ipinfo.io/ip'
function download-config
pushd ~/repos/server-setup/
git pull
popd
update-config
end
function update-config
. ~/.config/fish/config.fish
end
function f... | alias pingtest 'ping google.com'
alias f 'find -L . -name'
alias p 'ps -ef'
alias pf 'ps -ef | grep'
alias disk-space 'df -h'
alias ipinfo 'curl ipinfo.io/ip'
function download-config
pushd ~/repos/server-setup/
git pull
popd
update-config
end
function update-config
. ~/.config/fish/config.fish
end
function f... | Add 'v' command to view file with color | Add 'v' command to view file with color
| fish | mit | masonwan/fish-config,masonwan/fish-config |
f7c5f42cdde35b392b8374d04041febabd4bfeba | static/common/.config/fish/functions/fish_prompt.fish | static/common/.config/fish/functions/fish_prompt.fish | function fish_prompt
set -l current_k8s_context (kubectl config current-context)
set -l gcp_project (cat ~/.config/gcloud/active_config)
# set -l gcp_project (cat ~/.config/gcloud/configurations/config_(cat ~/.config/gcloud/active_config) | grep project | cut -f 3 -d " ")
set -x envs
if contains... | function fish_prompt
set -l current_k8s_context (kubectl config current-context)
set -l gcp_project (cat ~/.config/gcloud/active_config)
# set -l gcp_project (cat ~/.config/gcloud/configurations/config_(cat ~/.config/gcloud/active_config) | grep project | cut -f 3 -d " ")
set -x envs
if contains... | Update prompt to make them minimize | Fish: Update prompt to make them minimize
| fish | mit | at-ishikawa/dotfiles,at-ishikawa/dotfiles |
581f124bcc78487f76814fe9eddbe59ff57ee1dd | 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 --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... | 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")
function fst; set_color --bold fa0; end
function snd; set_color --bold 36f; end... | Move helper functions from fish_greeting | Move helper functions from fish_greeting
| fish | mit | ammgws/dotfiles,ammgws/dotfiles,ammgws/dotfiles |
604da4eeffb2dfc0839c48c8191b2286f6f7b09b | _git_rev_name.fish | _git_rev_name.fish | function _git_rev_name --description "print a representation of the currently checked-out revision"
set _rev_name (git symbolic-ref -q HEAD ^/dev/null)
if echo "$_rev_name" | grep -q -E 'refs/(heads|tags)/*'
set _rev_name (echo "$_rev_name" | sed -n "s/refs\/\(heads\|tags\)\/\(.*\)/\2/p")
else
set _rev_name (gi... | function _git_rev_name --description "print a representation of the currently checked-out revision"
set _rev_name (timeout --preserve_status 0.1s git symbolic-ref -q HEAD ^/dev/null)
if echo "$_rev_name" | grep -q -E 'refs/(heads|tags)/*'
set _rev_name (echo "$_rev_name" | sed -n "s/refs\/\(heads\|tags\)\/\(.*\)/\... | Add timeout to git commands | Add timeout to git commands
| fish | mit | merlinthered/fish-functions |
ede6c53cf756198a88d09f66c9bbbeaad72dcb98 | tag-fish/config/fish/functions/ssh-bastion.fish | tag-fish/config/fish/functions/ssh-bastion.fish | function ssh-bastion
ssh (env AWS_PROFILE=$argv AWS_REGION=eu-west-1 ~/src/bitbucket.org/theasi/infra-deploy-aws/scripts/get-bastion-ip.sh);
end
| Add function to ssh into an account's bastion | fish: Add function to ssh into an account's bastion
| fish | isc | zblz/dotfiles,zblz/dotfiles,zblz/dotfiles | |
3cf4039bd4c1fe07f3dac4d03cd24a82bba3c354 | dot.config/fish/config.fish | dot.config/fish/config.fish | set -gx LANGUAGE en_US.UTF-8
set -gx LANG $LANGUAGE
set -gx LC_ALL $LANGUAGE
set -gx LC_CTYPE $LANGUAGE
set -gx PATH $HOME/bin $PATH $GOPATH/bin
set -gx EDITOR vim
set -gx PAGER less
set -gx GOPATH $HOME/work
set -gx PATH $PATH $GOPATH/bin
set -gx FZF_DEFAULT_OPTS --reverse
set -gx XDG_CONFIG_HOME $HOME/.config
alias ... | set -gx LANGUAGE en_US.UTF-8
set -gx LANG $LANGUAGE
set -gx LC_ALL $LANGUAGE
set -gx LC_CTYPE $LANGUAGE
set -gx PATH $HOME/bin $PATH $GOPATH/bin
set -gx EDITOR vim
set -gx PAGER less
set -gx GOPATH $HOME/work
set -gx PATH $PATH $GOPATH/bin
set -gx FZF_DEFAULT_OPTS --reverse
set -gx XDG_CONFIG_HOME $HOME/.config
set -U... | Use new keybindings of fzf plugin | Use new keybindings of fzf plugin
| fish | mit | ojiry/dotfiles |
523834eace6d9b82cba2cc6d396ff4a004d97e4a | functions/color_test.fish | functions/color_test.fish | function color_test -d "Prints colors in there color for test purpose"
printf "%sblack\t %s bold\t %sbright\t %sbrbold%s\n" (set_color black) (set_color -o black) (set_color normal)
printf "%sred\t %s bold\t %sbright\t %sbrbold%s\n" (set_color red) (set_color -o red) (set_color brred) (set_color -o brred) (set_... | Add a command to print out all terminal palette colors for testing | Add a command to print out all terminal palette colors for testing
| fish | mit | simotek/tackle,simotek/tackle | |
20da2d335cb04c057a9581efaddf84dd4e1906c2 | functions/lookup.fish | functions/lookup.fish | function lookup --argument-names resource
set --local key
set --local value
switch (count $argv)
case 2
set key Name
set value $argv[2]
case 3
set key $argv[2]
set value $argv[3]
case '*'
print-status usage 'lookup <resourc... | Add function to look up a resource by tag | Add function to look up a resource by tag
| fish | mit | colstrom/shellops-aws,colstrom/piranha | |
2623f688f2773603c2ac15e1b71c49ce438eb077 | scripts/quitcd/quitcd.fish | scripts/quitcd/quitcd.fish | export NNN_TMPFILE="/tmp/nnn"
function n --description 'support nnn quit and change directory'
nnn $argv
if test -e $NNN_TMPFILE
. $NNN_TMPFILE
rm $NNN_TMPFILE
end
end
| export NNN_TMPFILE="/tmp/nnn"
function n --description 'support nnn quit and change directory'
nnn $argv
if test -e $NNN_TMPFILE
source $NNN_TMPFILE
rm $NNN_TMPFILE
end
end
| Replace single dot with source for fish shell | Replace single dot with source for fish shell
Single dot has been deprecated and can cause issues with users on newer version: https://github.com/fish-shell/fish-shell/issues/310 | fish | bsd-2-clause | jarun/nnn,jarun/nnn,jarun/nnn,jarun/nnn,jarun/noice,jarun/noice |
ce99499db35e4d75cf02e9027d4d5e2bce40a53e | 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)]
# Nix
set NIX_LINK $HOME/.nix-profile
set --export NIX_PATH nixpkgs=$HOME/.nix-defexpr/channels/nixpkgs
set --export SSL_CERT_FILE $NIX_LIN... | # 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)]
# Nix
set NIX_LINK $HOME/.nix-profile
set --export NIX_PATH nixpkgs=$HOM... | 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 | taecilla/.config,taecilla/.config,taecilla/.config,taecilla/.config |
1359ad95af6ad74e068e481c6462df78d17664d3 | fish/conf.d/_homebrew.fish | fish/conf.d/_homebrew.fish | test -e /opt/homebrew/bin/brew && eval (/opt/homebrew/bin/brew shellenv)
| test -e /opt/homebrew/bin/brew && eval (/opt/homebrew/bin/brew shellenv)
test -e /usr/local/bin/brew && eval (/usr/local/bin/brew shellenv)
| Support Homebrew on non-Apple Silicon | Support Homebrew on non-Apple Silicon
| fish | mit | ryansobol/config,ryansobol/config |
4376e78672aad1a7fcc444cd161f62d0a70481d3 | config/config.symlink/fish/functions/fish_prompt.fish | config/config.symlink/fish/functions/fish_prompt.fish | function fish_prompt
test $SSH_TTY
and printf (set_color red)$USER(set_color brwhite)'@'(set_color yellow)(prompt_hostname)' '
test "$USER" = 'root'
and echo (set_color red)"#"
# Main
echo -n (set_color cyan)(prompt_pwd) (set_color red)'❯'(set_color yellow)'❯'(set_color green)'❯ '
end
| function fish_prompt
test $SSH_TTY
and printf (set_color red)$USER(set_color brwhite)'@'(set_color yellow)(prompt_hostname)' '
test "$USER" = 'root'
and echo (set_color red)"#"
# Main
echo -n (set_color cyan)(prompt_pwd)(__fish_vcs_prompt) (set_color red)'❯'(set_color yellow)'❯'(set_color green)'❯... | Update prompt to show vcs info | Update prompt to show vcs info
| fish | mit | bryanmikaelian/dotfiles,bryanmikaelian/dotfiles |
1b4f946b75b7f0d0c5a5311e13a7144ea91890b4 | config/fish/functions/fish_prompt.fish | config/fish/functions/fish_prompt.fish | function _prompt_dir_component
_prompt_wrap_text (abbreviated-working-directory) brblue
end
function _prompt_err_component --argument-names {error_code}
if [ $error_code -ne 0 ]
_prompt_wrap_text $error_code brred
end
end
function _prompt_git_component
if git rev-parse --git-dir >/dev/null ^&1
set --l... | function _prompt_dir_component
_prompt_wrap_text (abbreviated-working-directory) brblue
end
function _prompt_err_component --argument-names {error_code}
if [ $error_code -ne 0 ]
_prompt_wrap_text $error_code brred
end
end
function _prompt_git_component
if git rev-parse --git-dir >/dev/null ^&1
set --l... | Use easier way to check if variable is set | Use easier way to check if variable is set
| fish | mit | lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles |
d084250ee3cd6b3f35b9c3d2ad645d77af2094db | fish/.config/fish/functions/upgrade-aur.fish | fish/.config/fish/functions/upgrade-aur.fish | function upgrade-aur
set_color --bold brmagenta
echo "Running command: pikaur --sync --refresh --sysupgrade --devel"
set_color normal
command pikaur --sync --refresh --sysupgrade --devel
end
| function upgrade-aur
set_color --bold brmagenta
echo "Running command: pikaur --sync --refresh --sysupgrade --devel"
set_color normal
command pikaur --sync --refresh --sysupgrade --devel --needed
end
| Add cli option to skip non-new packages | Add cli option to skip non-new packages
| fish | mit | ammgws/dotfiles,ammgws/dotfiles,ammgws/dotfiles |
05a2c8c0ed850b07b0cc8ab50d81faf6512e5027 | fish/common.fish | fish/common.fish | . ~/.config/fish/aliases.fish
. ~/.config/fish/abbr.fish
set fish_greeting ""
eval (python -m virtualfish compat_aliases)
eval (thefuck --alias | tr '\n' ';')
if type hub > /dev/null
eval (hub alias -s)
else
echo "WARNING: hub not installed"
end
set -x PATH /usr/local/bin $PATH
set -x EDITOR vim
# GIT PROMPT ... | . ~/.config/fish/aliases.fish
. ~/.config/fish/abbr.fish
set -x PATH /usr/local/bin $PATH
set -x PATH ~/.local/bin $PATH
set fish_greeting ""
eval (python -m virtualfish compat_aliases)
eval (thefuck --alias | tr '\n' ';')
if type hub > /dev/null
eval (hub alias -s)
else
echo "WARNING: hub not installed"
end
... | Update path statements in fish config | Update path statements in fish config
| fish | mit | whwright/dotfiles,whwright/dotfiles,whwright/dotfiles,wright8191/dotfiles |
3060badcfe7a1caa994273a33c981872ee59729a | fish/.config/fish/functions/move_all_workspaces.fish | fish/.config/fish/functions/move_all_workspaces.fish | function move_all_workspaces --description="Move all workspaces to the currently focused output."
set current_output (swaymsg -t get_outputs | jq '.[] | select(.focused==true) | .name')
for ws in (swaymsg --raw --type get_workspaces | jq --raw-output '.[].name')
swaymsg [workspace="$ws"] move workspace to outpu... | function move_all_workspaces --description="Move all workspaces to the currently focused output."
function print_help
echo "Usage: move_all_workspaces [options]"
echo "Options:"
echo (set_color green)"--from"(set_color $fish_color_normal)": Specify output name from which workspaces are to be moved (default... | Allow from output to be specified, also fix case when output is empty | Allow from output to be specified, also fix case when output is empty
| fish | mit | ammgws/dotfiles,ammgws/dotfiles,ammgws/dotfiles |
461c4f4d51f93f3c5b577c9d5d790745b34ab0e2 | powerline/bindings/fish/powerline.fish | powerline/bindings/fish/powerline.fish | function powerline
if test -z "$POWERLINE_COMMAND"
if which powerline-client >/dev/null
set -g -x POWERLINE_COMMAND powerline-client
else
set -g -x POWERLINE_COMMAND powerline
end
end
function --on-variable POWERLINE_COMMAND _powerline_update
eval "
function fish_prompt
$POWERLINE_COMMAND shell le... | function powerline
if test -z "$POWERLINE_COMMAND"
if which powerline-client >/dev/null
set -g -x POWERLINE_COMMAND powerline-client
else
set -g -x POWERLINE_COMMAND powerline
end
end
function --on-variable POWERLINE_COMMAND _powerline_update
set -l addargs "--last_exit_code=\$status --last_pipe_status... | Add support for number of jobs to fish bindings | Add support for number of jobs to fish bindings
| fish | mit | xxxhycl2010/powerline,bartvm/powerline,prvnkumar/powerline,wfscheper/powerline,prvnkumar/powerline,blindFS/powerline,lukw00/powerline,S0lll0s/powerline,QuLogic/powerline,kenrachynski/powerline,darac/powerline,s0undt3ch/powerline,Liangjianghao/powerline,areteix/powerline,wfscheper/powerline,darac/powerline,russellb/powe... |
093d925dbec5c61a77c4a94df1b838aab536aac8 | functions/expand:revert.fish | functions/expand:revert.fish | function expand:revert
# Replace the entire buffer with the original contents before any expansion was performed.
commandline -r $__expand_last_string
end
| function expand:revert
# Since we can't conditionally switch key bind modes, we need to pass through command completion requests again even
# though we are already in expand mode.
if not set -q __expand_replacements[1]
commandline -f backward-delete-char
return
end
# Replace the entire buffer with th... | Fix backspace in completions as well | Fix backspace in completions as well
| fish | mit | oh-my-fish/plugin-expand |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.