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 |
|---|---|---|---|---|---|---|---|---|---|
5bb569962111281fe1704a861dbef93c59619384 | fish/functions/fish_right_prompt.fish | fish/functions/fish_right_prompt.fish | function fish_right_prompt
echo -n -s (set_color $fish_color_autosuggestion) (date +"%Y-%m-%d %I:%M:%S%P") (set_color reset)
end
| function fish_right_prompt
echo -n -s (set_color $fish_color_autosuggestion) (date +"%Y-%m-%d %I:%M:%S%p") (set_color reset)
end
| Fix am/pm in right prompt on macos | Fix am/pm in right prompt on macos
| fish | mit | aphistic/dotfiles,aphistic/dotfiles |
ef9b53be874cbed4609570e6bd19e5795e434453 | fish/work.fish | fish/work.fish | set -x PATH /apollo/env/SDETools/bin $PATH
function bb
brazil-build
end
function bbap
bb
brazil-build apollo-pkg
end
function bbc
brazil-build clean
end
function bbg
brazil-build gdb
end
function bbt
brazil-build test
end
function bbs
brazil-build server
end
function bba
bbc
bb
bbt
end
functi... | set -x PATH /apollo/env/SDETools/bin $PATH
function bb
brazil-build
end
function bbap
bb
brazil-build apollo-pkg
end
function bbc
brazil-build clean
end
function bbg
brazil-build gdb
end
function bbt
brazil-build test
end
function bbs
brazil-build server
end
function bba
bbc
bb
bbt
end
functi... | Add alias for brazil ws --sync --md | Add alias for brazil ws --sync --md
| fish | unlicense | bjadamson/dotfiles,bjadamson/dotfiles |
5e2dd74defef17abd781d9bc3d7561b8ef6d83a9 | fish/functions/getsxg.fish | fish/functions/getsxg.fish | function getsxg -w curl -d "Attempt to retrieve SXG for URL"
curl -sS --output - -H 'accept: application/signed-exchange;v=b3' -H 'amp-cache-transform: google;v="1"' $argv
end
| function getsxg -w curl -d "Attempt to retrieve SXG for URL"
curl -sS --output - -H 'accept: application/signed-exchange;v=b3' -H 'amp-cache-transform: google;v="1..100"' $argv
end
| Make work with more versions | Make work with more versions
| fish | apache-2.0 | ithinkihaveacat/dotfiles,ithinkihaveacat/dotfiles,ithinkihaveacat/dotfiles |
ec1727108a73e350957fbbbca837dcd4da042f77 | fish/.config/fish/functions/fish_prompt.fish | fish/.config/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")
function fst; set_color --bold fa0; end
function snd; set_color --bold 36f; end... | 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... | Add out-of-date kernel warning to prompt | Add out-of-date kernel warning to prompt
| fish | mit | ammgws/dotfiles,ammgws/dotfiles,ammgws/dotfiles |
c5bda99aef6c054090c71220ffec6979ef8945e5 | completions/gh.fish | completions/gh.fish | if not set --query GH_BASE_DIR
set GH_BASE_DIR $HOME/src
end
function __gh_user_completion
ls $GH_BASE_DIR/github.com
end
function __gh_repo_completion
set --local cmd (commandline --tokenize --cut-at-cursor)
set --local user $cmd[2]
ls $GH_BASE_DIR/github.com/$user
end
complete --command gh --short h --lo... | if not set --query GH_BASE_DIR
set GH_BASE_DIR $HOME
end
function __gh_user_completion
ls $GH_BASE_DIR/github.com
end
function __gh_repo_completion
set --local cmd (commandline --tokenize --cut-at-cursor)
set --local user $cmd[2]
ls $GH_BASE_DIR/github.com/$user
end
complete --command gh --short h --long h... | Fix default GH_BASE_DIR value for completions | Fix default GH_BASE_DIR value for completions
We have to potentially set GH_BASE_DIR in the completions file because
completions can be executed before the gh script, so we'll need to know
where to search for repos.
| fish | mit | dideler/fish-cd-git |
699b94b4a79a2c519eeb92a1867698ee099f3ba6 | fish/functions/fbcode_cd.fish | fish/functions/fbcode_cd.fish | # this is super clowny but it coerces new tmux panes that are in fbcode to use the
# nicer symlinked path rather than the real path on disk
function fbcode_cd --on-variable PWD
switch (pwd)
case "/data/users/vmagro/fbsource/fbcode*"
set -l path (string replace "/data/users/vmagro/fbsource/fbcode" "$HOME/fbcode"... | # this is super clowny but it coerces new tmux panes that are in fbcode to use the
# nicer symlinked path rather than the real path on disk
function fbcode_cd --on-variable PWD
switch (pwd)
case "/data/users/vmagro/fbsource/fbcode*"
set -l path (string replace "/data/users/vmagro/fbsource/fbcode" "$HOME/fbcode"... | Work for generic directories under ~ | Work for generic directories under ~
| fish | mit | vmagro/dotfiles,vmagro/dotfiles |
5c5557343af8427ad4ce76a02e86b7eb4400f4e2 | fenv.apply.fish | fenv.apply.fish | # The MIT License (MIT)
# Copyright (c) 2015 Derek Willian Stavis
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy... | # The MIT License (MIT)
# Copyright (c) 2015 Derek Willian Stavis
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy... | Convert bash PATH format into fish's | Convert bash PATH format into fish's
| fish | mit | derekstavis/plugin-foreign-env,jab/plugin-foreign-env,oh-my-fish/plugin-foreign-env |
038c616f32b17d57c3392da2d23ba12469ada72e | functions/update-roles.fish | functions/update-roles.fish | function update-roles
for role in (get iam/roles)
role-exists $role
or create-role $role
and for policy in (get iam/roles/$role/policies)
apply-policy iam/roles/$role/policies/$policy
end
end
end
| Add function to update all roles | Add function to update all roles
| fish | mit | colstrom/shellops-aws,colstrom/piranha | |
f3c3678de6e37bb6888defaa68c65c5c6d7f2441 | fish/.config/fish/functions/fcd.fish | fish/.config/fish/functions/fcd.fish |
# From https://gist.github.com/rumpelsepp/b1b416f52d6790de1aee
function fcd --description "Fuzzy change directory"
if set -q argv[1]
set searchdir $argv[1]
else
set searchdir $HOME
end
# https://github.com/fish-shell/fish-shell/issues/1362
set -l tmpfile (mktemp)
find $searchd... | Add fish shell function to change directiories using fzf | Add fish shell function to change directiories using fzf
| fish | mit | nitul1991/dotfiles,nitul1991/dotfiles | |
d888067572b89d0fa3915ad34cbd1ac855587dc9 | functions/inline-policy.fish | functions/inline-policy.fish | function inline-policy --argument document
if test -z "$document"
stderr "usage: inline-policy <document>"
return (false)
end
echo $document | grep -q '\.json$'
end
| Add function to check if a policy is an inline policy | Add function to check if a policy is an inline policy
| fish | mit | colstrom/piranha,colstrom/shellops-aws | |
aac255a6aa0684210e84e928c3875dbaf1d2251a | functions/weather.fetch.fish | functions/weather.fetch.fish | function weather.fetch -d "Fetches data from a URL backed by a cache"
set md5 (__md5 "$argv")
set cache_age (config weather -g cache-age)
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 +$cache_age > /dev/nu... | function weather.fetch -d "Fetches data from a URL backed by a cache"
set md5 (__md5 "$argv")
set cache_age (config weather -g cache-age)
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 +$cache_age > /dev/nu... | Make stderr redirection compatible with Fish 3.0. | Make stderr redirection compatible with Fish 3.0.
| fish | mit | oh-my-fish/plugin-weather |
b43716907fa3e5dca97cec81f4eb4aa9e64d182c | 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
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... | Add space between the arrow and current directory name in robbyrussell theme | Add space between the arrow and current directory name in robbyrussell theme
| fish | mit | scorphus/oh-my-fish,MaicoTimmerman/oh-my-fish,jeremiejig/oh-my-fish,MaicoTimmerman/oh-my-fish,gblmarquez/oh-my-fish,eugenesvk/oh-my-fish,ovstetun/oh-my-fish,setswei/oh-my-fish,wfscheper/oh-my-fish,oranja/oh-my-fish,oh-my-fish/oh-my-fish-legacy,wfscheper/oh-my-fish,hfs/oh-my-fish,cap10morgan/oh-my-fish,ohspite/oh-my-fis... |
d8edf098ca2e4a379146cafa321eb9fee68f3c70 | omf/functions/bb.fish | omf/functions/bb.fish | function bb
set machine (scutil --get LocalHostName)
if [ -d $DOTFILES/machines/$machine ]
set brewfile_path $DOTFILES/machines/$machine/Brewfile
echo "-> Bundling Brewfile located at $brewfile_path"
sleep 2
brew bundle --file $brewfile_path
else if [ -e $HOME/Brewfile ]
... | function bb
set machine (scutil --get HostName)
if [ -d $DOTFILES/machines/$machine ]
set brewfile_path $DOTFILES/machines/$machine/Brewfile
echo "-> Bundling Brewfile located at $brewfile_path"
sleep 2
brew bundle --file $brewfile_path
else if [ -e $HOME/Brewfile ]
... | Use HostName instead of LocalHostName. | Use HostName instead of LocalHostName.
| fish | mit | joshukraine/dotfiles,joshukraine/dotfiles,joshukraine/dotfiles |
f993e98d55bdd4ad9bcbf68a97e6b76a1ab6ae52 | 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"
# }}}
set -gx COPYFILE_DISABLE true
# PATH {{{
append-to-path ~/bin
prepend-to-path /usr/local/sbin
append-to-path /Applications/Postgres... | 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"
# }}}
set -gx COPYFILE_DISABLE true
# PATH {{{
append-to-path ~/bin
prepend-to-path /usr/local/sbin
append-to-path /Applications/Postgres... | Add Oracle libs to PATH | Add Oracle libs to PATH
| fish | mit | barrettclark/dotfiles,barrettclark/dotfiles |
cd774edea232d1e3d2c64dc1e7a0c687280ff041 | fish/.config/fish/conf.d/aliases.fish | fish/.config/fish/conf.d/aliases.fish | # thefuck
if which thefuck > /dev/null
thefuck --alias | source
end
# allows sudo to use aliases
function sudo
command sudo -sE $argv
end
# better ls
function ls
switch (uname)
case Darwin
command ls -lhFG $argv
case Linux
command ls -lhF --color=auto $argv
end
end
function la
switch (uname)
... | # thefuck
if which thefuck > /dev/null
thefuck --alias | source
end
# allows sudo to use aliases
function sudo
command sudo -sE $argv
end
# better ls
function ls
switch (uname)
case Darwin
command ls -lhFG $argv
case Linux
command ls -lhF --color=auto $argv
end
end
function la
ls -A $argv
end
... | Define la in terms of ls alias | Define la in terms of ls alias
| fish | bsd-3-clause | mpcsh/dotfiles |
34dadf74a1f8d256b333bc9846578b2dc3f5eec2 | functions/update-groups.fish | functions/update-groups.fish | function update-groups
for group in (get iam/groups)
group-exists $group
or create-group $group
and begin
for policy in (get iam/groups/$group/policies)
apply-policy iam/groups/$group/policies/$policy
end
for user in (get iam/groups/$group/... | Add function to update all groups | Add function to update all groups
| fish | mit | colstrom/piranha,colstrom/shellops-aws | |
25b767137800b7723804576a924e44cb8c096ff4 | functions/_pure_prompt_host.fish | functions/_pure_prompt_host.fish | function _pure_prompt_host
set --local hostname (hostname -s) # current host name
set --local hostname_color "$pure_host_color"
echo "$hostname_color$hostname"
end
| function _pure_prompt_host
set -qg hostname
or set --local hostname (hostname -s) # current host name
set --local hostname_color "$pure_host_color"
echo "$hostname_color$hostname"
end | Change hostname variable name to avoid scope error | Change hostname variable name to avoid scope error
Add check for existing fish `hostname` variable
| fish | mit | rafaelrinaldi/pure |
a04ecebfdb67c316fd8414cdc5990058756e0d1b | functions/__z_add.fish | functions/__z_add.fish | function __z_add -d "Add PATH to .z file"
set -l path (command 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
command awk -v path="$PWD" -v now=(date +%s) -F "|" -f $path/zadd.awk $... | function __z_add -d "Add PATH to .z file"
set -l path (command 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
command awk -v path="$PWD" -v now=(date +%s) -F "|" -f $path/zadd.awk $... | Use base `rm` for removing tempfile | Use base `rm` for removing tempfile | fish | mit | fisherman/z |
a6a9f493b55d50cfdf12d04b79523161ee52e30f | functions/missing.fish | functions/missing.fish | function missing --argument subject
if empty "$subject"
usage missing '<subject>'
return (false)
end
if not functions --query real-$subject
echo "No real-$subject function defined" >& 2
return (false)
end
comm -13 (eval real-$subject | psub) (get $subject | psub)
en... | function missing --argument subject
if empty "$subject"
usage missing '<subject>'
return (false)
end
if not functions --query real-$subject
echo "No real-$subject function defined" >& 2
return (false)
end
comm -13 (eval real-$subject | sort | psub) (get $subject | s... | Sort results before sending to comm | Sort results before sending to comm
| fish | mit | colstrom/shellops-aws,colstrom/piranha |
3624cff9719ae4fee82d131badfd9564938f1e76 | .config/fish/conf.d/02-path.fish | .config/fish/conf.d/02-path.fish | function add_to_path -d "Add the given directory to user's path"
if test -d $argv
set -gx fish_user_paths $fish_user_paths $argv
end
end
add_to_path $GOROOT/bin
add_to_path $GOPATH/bin
add_to_path ~/.local/bin
add_to_path /usr/bin/core_perl
add_to_path ~/sh
| function add_to_path -d "Add the given directory to user's path"
if test -d $argv
set -gx fish_user_paths $fish_user_paths $argv
end
end
add_to_path $GOROOT/bin
add_to_path $GOPATH/bin
add_to_path ~/.local/bin
add_to_path /usr/bin/core_perl
add_to_path ~/sh
add_to_path /home/_/nummen/matlab/bin
| Create matlab branch and add matlab bin to $PATH | Create matlab branch and add matlab bin to $PATH
| fish | unlicense | karlek/dotfiles,karlek/dotfiles |
977a972031c11367bae668c3e7e02569b1890e5a | .config/fish/functions/combineimgs.fish | .config/fish/functions/combineimgs.fish | function __combineimgs_help
printf "Usage: combineimgs [OPTIONS] INPUT OUTPUT\n\n"
printf "OPTIONS:\n\n"
printf " -h --help Show usage and examples\n"
printf " --horizontal Stack images left to right\n"
printf " --vertical Stack images top to bottom (default)\n\n"
printf "Examples:\n\n"
p... | function __combineimgs_help
printf "Usage: combineimgs [OPTIONS] INPUT OUTPUT\n\n"
printf "OPTIONS:\n\n"
printf " -h --help Show usage and examples\n"
printf " --horizontal Stack images left to right\n"
printf " --vertical Stack images top to bottom (default)\n\n"
printf "Examples:\n\n"
p... | Print help when wrong number of args passed | Print help when wrong number of args passed
| fish | mit | dideler/dotfiles,dideler/dotfiles |
e6f763310619062f68060070f055efe70fb478c6 | fish/.config/fish/config.fish | fish/.config/fish/config.fish | mkdir -p ~/bin ~/npm/bin ~/.cargo/bin ~/.gem/ruby/2.5.0/bin
set -gx PATH ~/bin ~/npm/bin ~/.cargo/bin ~/.gem/ruby/2.5.0/bin $PATH
set -gx fish_greeting ""
set -gx LANG en_GB.UTF-8
set -gx BROWSER firefox
set -gx EDITOR nvim
set -gx VISUAL nvim
set -gx FZF_DEFAULT_COMMAND "rg --files --hidden --follow -g \"!.git/\" 2>... | mkdir -p ~/bin ~/npm/bin ~/.cargo/bin ~/.gem/ruby/2.5.0/bin
set -gx PATH ~/bin ~/npm/bin ~/.cargo/bin ~/.gem/ruby/2.5.0/bin $PATH
set -gx fish_greeting ""
set -gx LANG en_GB.UTF-8
set -gx BROWSER firefox
set -gx EDITOR nvim
set -gx VISUAL nvim
set -gx FZF_DEFAULT_COMMAND "rg --files --hidden --follow -g \"!.git/\" 2>... | Add another dumb fish binding | Add another dumb fish binding
| fish | unlicense | Wolfy87/dotfiles,Wolfy87/dotfiles,Olical/dotfiles |
a304876b7992841c25c01579375fc59bbca9ea8d | functions/arrayminmax.fish | functions/arrayminmax.fish | function arrayminmax -d 'Find Min and Max number in an array and store in global f_ArrayMinMax_Min/f_ArrayMinMax_Max'
set arrayName $argv # This is how to declare / initialize an array
set max $arrayName[1] # Use choose first element of array as initial values for min/max; (Defensive programming)
set min $arrayNam... | Add a function to find Min/Max number in a numerical array | Add a function to find Min/Max number in a numerical array
| fish | mit | eugenesvk/Settings-Fish | |
a789f0d979df9e273f674c8ab7aca6011e6604ed | functions/elastic-ips.fish | functions/elastic-ips.fish | function elastic-ips --argument-names resource
set --local resource_type (echo "$resource" | cut -f 1 -d '-')
if test "$resource_type" = 'eni'
aws ec2 describe-network-interfaces --filters=Name=network-interface-id,Values=$resource | jq --raw-output .NetworkInterfaces[].Association.PublicIp
else
... | Add function to find Elastic IPs | Add function to find Elastic IPs
| fish | mit | colstrom/piranha,colstrom/shellops-aws | |
677423f5e8ffb94c203fe581f6d0f14fb9d2b375 | fish/.config/fish/config.fish | fish/.config/fish/config.fish | status --is-interactive; and source (pyenv init - | psub)
status --is-interactive; and source (pyenv virtualenv-init - | psub)
set PATH "$HOME/.local/bin" $PATH
# https://docs.python-guide.org/dev/pip-virtualenv/#requiring-an-active-virtual-environment-for-pip
set -x PIP_REQUIRE_VIRTUALENV true
| status --is-interactive; and source (pyenv init - | psub)
status --is-interactive; and source (pyenv virtualenv-init - | psub)
set PATH "$HOME/.local/bin" $PATH
# https://docs.python-guide.org/dev/pip-virtualenv/#requiring-an-active-virtual-environment-for-pip
set -x PIP_REQUIRE_VIRTUALENV true
if type -q subl
set -... | Use Sublime Text as default editor, if available | Use Sublime Text as default editor, if available
| fish | mit | flother/dotfiles |
0562cd9cf429ae707537cdc00465b6ad69a7fdb0 | functions/__gabbr_expand.fish | functions/__gabbr_expand.fish | function __gabbr_expand
if test (string trim (commandline -b)) = ''
return
end
# expand abbreviations
if test 0 = (count (commandline -poc))
for abbr in $fish_user_abbreviations
echo $abbr | read word phrase
if test "$word" = (commandline -t)
com... | function __gabbr_expand
if test (string trim (commandline -b)) = ''
return
end
# expand abbreviations
if test 0 = (count (commandline -poc))
for word in (abbr -l)
if test "$word" = (commandline -t)
set escaped_word (string escape --style=var -- $word)
... | Expand user abbreviations without using $fish_user_abbreviations | Expand user abbreviations without using $fish_user_abbreviations
| fish | mit | ryotako/fish-global-abbreviation |
4408505a75325c4ed00d6126ab305abac79f6ed2 | fish/config.fish | fish/config.fish | ########## env ##########
##### locale #####
set -gx LANG en_US.UTF-8
##### term #####
set -gx TERM xterm-256color
##### path #####
set -l local_paths /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin
# go
set -gx GOPATH $HOME/dev
set local_paths $GOPATH/bin $local_paths
# rust
set local_paths ~/.cargo/... | ########## env ##########
##### locale #####
set -gx LANG en_US.UTF-8
##### term #####
set -gx TERM xterm-256color
##### path #####
set -l local_paths /usr/local/{sbin,bin} /usr/{sbin,bin} /{sbin,bin}
# go
set -gx GOPATH $HOME/dev
set local_paths $GOPATH/bin $local_paths
# rust
set local_paths ~/.cargo/bin $local_... | Refactor path setting by using brace expansion | Refactor path setting by using brace expansion
| fish | mit | kuwata0037/dotfiles |
bb7b46d915cebfc148c30239a3d3b2055043c0b7 | fish/.config/fish/aliases.fish | fish/.config/fish/aliases.fish | function ..; cd ..; end
function ...; cd ../..; end
function ....; cd ../../..; end
# Enable colour output for ls
function ls
command ls --color=auto $argv
end
| function ..; cd ..; end
function ...; cd ../..; end
function ....; cd ../../..; end
| Move ls alias to function | Move ls alias to function
| fish | mit | ammgws/dotfiles,ammgws/dotfiles,ammgws/dotfiles |
4fed5df0ddbf724ee578f43e4c0c258785d445d4 | 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'
| 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'
| Add `tree` alias that show hidden files, ignoring the git directory | Add `tree` alias that show hidden files, ignoring the git directory
| fish | mit | KyleOndy/.dotfiles,KyleOndy/dotfiles,KyleOndy/dotfiles,KyleOndy/dotfiles |
f900366a9a9512a793fb4078c3f7ffe19365b51f | fish/config.fish | fish/config.fish | set -U EDITOR vim
set -g fish_key_bindings fish_vi_key_bindings
alias phpgrep='find . -type f -name "*.php" -print0 | xargs -0 grep -n $1'
alias jsgrep='find . -type f -name "*.js" -print0 | xargs -0 grep -n $1'
alias c='cd ~/code'
alias d='cd ~/Downloads'
alias dt='cd ~/Desktop'
alias mc='cd ~/code/automattic-sandbo... | set -U EDITOR vim
set -g -x fish_greeting ''
set -g fish_key_bindings fish_vi_key_bindings
alias phpgrep='find . -type f -name "*.php" -print0 | xargs -0 grep -n $1'
alias jsgrep='find . -type f -name "*.js" -o -name "*.jsx" -print0 | xargs -0 grep -n $1'
alias c='cd ~/code'
alias d='cd ~/Downloads'
alias dt='cd ~/De... | Clear out default fish greeting, jsgrep .jsx files too | Clear out default fish greeting, jsgrep .jsx files too | fish | unlicense | hewsut/dotfiles,hewsut/dotfiles |
e7c91207ab09a73ec3577da743b89957df306450 | fish_prompt.fish | fish_prompt.fish | # name: Zish
function _is_git_dirty
echo (command git status -s --ignore-submodules=dirty ^/dev/null)
end
function fish_prompt
set_color -o red
printf '┌─<'
set_color -o blue
printf '%s ' (whoami)
set_color $fish_color_autosuggestion[1]
printf '@ '
set_color cyan
printf '%s ' (hostname|cut -d . -f 1... | # name: Zish
function _is_git_dirty
echo (command git status -s --ignore-submodules=dirty 2> /dev/null)
end
function fish_prompt
set_color -o red
printf '┌─<'
set_color -o blue
printf '%s ' (whoami)
set_color $fish_color_autosuggestion[1]
printf '@ '
set_color cyan
printf '%s ' (hostname|cut -d . -f... | Make stderr redirection compatible with Fish 3.0. | Make stderr redirection compatible with Fish 3.0.
| fish | mit | oh-my-fish/theme-zish |
f2056f076cc802fa01920ab251fc16e33dbe5128 | config.symlink/fish/config.fish | config.symlink/fish/config.fish | source /Users/$USER/.config/fish/functions/docker.fish
# Path to Oh My Fish install.
set -gx OMF_PATH /Users/$USER/.local/share/omf
# Customize Oh My Fish configuration path.
#set -gx OMF_CONFIG /Users/$USER/.config/omf
# Load oh-my-fish configuration.
#source $OMF_PATH/init.fish
set -x GOPATH /Users/$USER/gocode
se... | source /Users/$USER/.config/fish/functions/docker.fish
# Path to Oh My Fish install.
set -gx OMF_PATH /Users/$USER/.local/share/omf
# Customize Oh My Fish configuration path.
#set -gx OMF_CONFIG /Users/$USER/.config/omf
# Load oh-my-fish configuration.
#source $OMF_PATH/init.fish
set -x GOPATH /Users/$USER/gocode
se... | Add fig alias for old times' sake | Add fig alias for old times' sake
| fish | mit | hyleung/dotfiles,hyleung/dotfiles |
d5b3ea90f5fffe49683887126308f44d08960eb8 | config.fish | config.fish | set -x PATH /usr/local/bin $PATH
set -x PATH /usr/local/heroku/bin $PATH
set -U EDITOR mvim
set RUBY_GC_MALLOC_LIMIT 60000000
set RUBY_FREE_MIN 200000
#rbenv
set -x PATH $HOME/.rbenv/bin $PATH
set -x PATH $HOME/.rbenv/shims $PATH
rbenv rehash >/dev/null ^&1
#aliases
alias rake='bundle exec rake'
alias spec='bundle e... | set -x PATH /usr/local/bin $PATH
set -x PATH /usr/local/heroku/bin $PATH
set -x PATH /usr/local/share/npm/bin $PATH
set -U EDITOR mvim
set RUBY_GC_MALLOC_LIMIT 60000000
set RUBY_FREE_MIN 200000
#rbenv
set -x PATH $HOME/.rbenv/bin $PATH
set -x PATH $HOME/.rbenv/shims $PATH
rbenv rehash >/dev/null ^&1
#aliases
alias r... | Add npm path for all users | Add npm path for all users
| fish | mit | gustavowt/fish,gustavowt/fish |
5064b535aa643a67faab999b90c643bf985c5389 | .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
# Navigation
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias wo=workon
# VCS
alias g="git"
alias gx="gitx"
alias gp="git push"
alias gs="git status"
| #!/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 alias to enable default virtualenv | [fish] Add alias to enable default virtualenv | fish | bsd-2-clause | kattrali/dotfiles,kattrali/dotfiles,kattrali/dotfiles |
2fa1bd02b4a0518c4dabeb09222865809a2b184a | fish/functions/fish_prompt.fish | fish/functions/fish_prompt.fish | # Disable the default venv display override. This is here so I don't
# forget to do it elsewhere and it involves the prompt.
set -g VIRTUAL_ENV_DISABLE_PROMPT true
function fish_prompt --description 'Write out the prompt'
echo "" # Add a blank line before the prompt
set -l user_color af87ff
set -l user_sy... | # Disable the default venv display override. This is here so I don't
# forget to do it elsewhere and it involves the prompt.
set -g VIRTUAL_ENV_DISABLE_PROMPT true
function fish_prompt --description 'Write out the prompt'
echo "" # Add a blank line before the prompt
set -l user_color af87ff
set -l user_sy... | Fix kubectl info when kubectl isn't installed | Fix kubectl info when kubectl isn't installed
| fish | mit | aphistic/dotfiles,aphistic/dotfiles |
7e414ca0702abd2228409aa83637c3c2d2c8f024 | config/fish/aliases.fish | config/fish/aliases.fish | set LS_COLORS dxfxcxdxbxegedabagacad
function serve
if test (count $argv) -ge 1
if python -c 'import sys; sys.exit(sys.version_info[0] != 3)'
/bin/sh -c "(cd $argv[1] && python -m http.server)"
else
/bin/sh -c "(cd $argv[1] && python -m SimpleHTTPServer)"... | set LS_COLORS dxfxcxdxbxegedabagacad
function serve
if test (count $argv) -ge 1
if python -c 'import sys; sys.exit(sys.version_info[0] != 3)'
/bin/sh -c "(cd $argv[1] && python -m http.server)"
else
/bin/sh -c "(cd $argv[1] && python -m SimpleHTTPServer)"... | Add alias for `python manage.py showmigrations` | Add alias for `python manage.py showmigrations`
| fish | bsd-3-clause | jonathanchu/dotfiles,jonathanchu/dotfiles,jonathanchu/dotfiles |
2c2b32e6c954ca82ff87ecb0b160401067493aa3 | cookbooks/fish/files/.config/fish/conf.d/aliases.fish | cookbooks/fish/files/.config/fish/conf.d/aliases.fish | ## Aliases
alias vi="nvim"
alias vim="nvim"
alias git="hub"
alias sudo="sudo -E "
alias diff="colordiff -u"
alias ctags="/usr/local/bin/ctags"
alias deckset="open -a Deckset"
alias rm="rm -i"
alias zatsu="memo edit zatsu.md"
alias ls="exa"
alias ghqg="$GOPATH/bin/get -shallow -unshallow ghq"
## Abbreviations
abbr -a b... | ## Aliases
alias vi="nvim"
alias vim="nvim"
alias git="hub"
alias diff="colordiff -u"
alias ctags="/usr/local/bin/ctags"
alias deckset="open -a Deckset"
alias rm="rm -i"
alias zatsu="memo edit zatsu.md"
alias ls="exa"
alias ghqg="$GOPATH/bin/get -shallow -unshallow ghq"
## Abbreviations
abbr -a b "bundle"
abbr -a v "v... | Remove sudo alias to avoid freeze when shell completion | Remove sudo alias to avoid freeze when shell completion
e.g. Raise freeze when execute bellow command
```
$ sudo vi /etc/<TAB>
```
| fish | mit | tsub/dotfiles,tsub/dotfiles,tsub/dotfiles,tsub/dotfiles,tsub/dotfiles |
1e23549f4cc09dbc78849449984d7938509083d5 | functions/revoke-access-keys.fish | functions/revoke-access-keys.fish | function revoke-access-keys --argument user
if empty "$user"
usage revoke-access-keys '<user>'
return (false)
end
for key in (user-access-keys "$user")
revoke-access-key "$user" "$key"
end
end
| Add function to revoke all keys for a user | Add function to revoke all keys for a user
| fish | mit | colstrom/shellops-aws,colstrom/piranha | |
41e65376f397114e969502ce7c19dcfb9bf948d3 | key_bindings.fish | key_bindings.fish | bind ' ' '__gabbr_expand; commandline -i " "'
| if not set -q gabbr_config
set -U gabbr_config "$HOME/.config/fish/.gabbr.conf"
set -q XDG_CONFIG_HOME
and set gabbr_config "$XDG_CONFIG_HOME/fish/.gabbr.conf"
end
bind ' ' '__gabbr_expand; commandline -i " "'
| Add config file path variable | Add config file path variable
Default config file path is`$HOME/.config/fish/.gabbr.conf`
or `$XDG_CONFIG_HOME/fish/.gabbr.conf`.
| fish | mit | ryotako/fish-global-abbreviation |
462158d0f8bd60511c3c1893e488c942babff97c | source/20_aliases.fish | source/20_aliases.fish | #!/usr/bin/env fish
# Git
alias ga="git add"
alias gb="git branch"
alias gc="git commit"
alias gs="git stash"
alias gbd="git build"
alias gsp="git smart-pull"
alias gst="git status"
alias gco="git checkout"
alias gcm="git checkout master"
alias gcd="git checkout develop"
function current_branch
set ref (git symboli... | #!/usr/bin/env fish
# Git
alias ga="git add"
alias gb="git branch"
alias gc="git commit"
alias gs="git stash"
alias gbd="git build"
alias gsp="git smart-pull"
alias gst="git status"
alias gco="git checkout"
alias gcm="git checkout master"
alias gcd="git checkout develop"
alias gcp="git cherry-pick"
function current_b... | Add git/bundle aliases for fish | Add git/bundle aliases for fish
| fish | mit | ejoubaud/dotfiles,ejoubaud/dotfiles |
f45a3fa8fd983c67f54cad8b99d0ed4b729181e3 | 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 ... | Use tmux friendly version of fzf | Use tmux friendly version of fzf
| fish | mit | Rypac/dotfiles,Rypac/dotfiles,Rypac/dotfiles |
b3e4bc2a7916c272589991498f51ba890c6415cb | config/fish/interactive/ll.fish | config/fish/interactive/ll.fish | function ll --wraps ls --description "List contents of directory using long format"
ls -lh --group-directories-first $argv
end
| # detect if flag supported
if ls --group-directories-first &> /dev/null
function ll --wraps ls --description "List contents of directory using long format"
ls -lh --group-directories-first $argv
end
end
| Use --group-directories-first only if available | Use --group-directories-first only if available
| fish | mit | jpalardy/dotfiles,jpalardy/dotfiles,jpalardy/dotfiles,jpalardy/dotfiles,jpalardy/dotfiles |
2bd3d2f7baec1c300047da5253ecfddda9d9f062 | tests/test_dpaste.fish | tests/test_dpaste.fish | #!/usr/bin/env fish
function suite_dpaste
function setup
set -g __dpaste_expires_choises
source ../dpaste.fish
__dpaste_set_defaults
end
function test_dpaste_parse_expires
assert_equal text (__dpaste_parse_expires text)
assert_equal "https://dpaste.de/api/?format=url" $__dpaste_send_url
... | #!/usr/bin/env fish
set -l script_dir (dirname (status -f))
function suite_dpaste
function setup
set -g __dpaste_expires_choises
source $script_dir/../dpaste.fish
__dpaste_set_defaults
end
function test_dpaste_parse_expires
assert_equal text (__dpaste_parse_expires text)
assert_equal "https... | Allow test run with any working directory | [dpaste] Allow test run with any working directory
| fish | mit | oh-my-fish/plugin-dpaste |
51019b5aacd41e9d13ecd98ae5e634c73f34e77d | fish/functions/pd.fish | fish/functions/pd.fish | function _find_project -a pattern
set -l paths $HOME/Projects/{2016,2015}
find $paths -type d -maxdepth 2 | ack --ignore-case --max-count=1 $pattern
end
function pd --description 'Change to a project directory'
set -l project (_find_project "$argv[1]\$")
if test $status -eq 0
return (cd $project)
end
... | function _find_project -a pattern
set -l paths $HOME/Projects/{2016,2015}
find $paths -type d -maxdepth 2 | ack --ignore-case -1 $pattern
end
function pd --description 'Change to a project directory'
set -l project (_find_project "$argv[1]\$")
if test $status -eq 0
return (cd $project)
end
set -l pro... | Switch to -1 ack flag | Switch to -1 ack flag
| fish | mit | ryansobol/config,ryansobol/config |
2f101658d46511ae2c162f3db7e0a3a1123ee3c4 | 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 --on-event fish_preexec
set -l ret 0
set -l config_path "$BH_HOME_DIRECTORY/config"
if [ -n "$FISH_VERSION" && -n "$_... | #
# __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" &&... | Call function once manually rather than using `perexec' hook | Call function once manually rather than using `perexec' hook
| fish | apache-2.0 | rcaloras/bashhub-client,rcaloras/bashhub-client |
3d3a46efa01fa58f0209cee5fe67d74281833900 | apps/config/fish.symlink/config.fish | apps/config/fish.symlink/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/
# set fish_plugins autojump bundler
source /usr/local/etc/autojump.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/
# set fish_plugins autojump bundler
source /usr/local/etc/autojump.fish
... | Add jon's .setenv-* automatic env variables | Add jon's .setenv-* automatic env variables
| fish | mit | tchajed/dotfiles-osx,tchajed/dotfiles-osx,tchajed/dotfiles-osx |
c2ce8a223fb621ef7390f556ad370520a98906d9 | functions/add-tag-to-vpc.fish | functions/add-tag-to-vpc.fish | function add-tag-to-vpc --argument-names resource key value
print-status vpc/add-tag "$argv"
for argument in resource key value
if empty "$$argument"
print-status usage "add-tag-to-vpc <vpc-id> <key> <value>"
return -1
end
end
and aws ec2 create-tags --resources ... | function add-tag-to-vpc --argument-names resource key value
print-status vpc/add-tag "$argv"
if empty "$resource" "$key" "$value"
print-status usage "add-tag-to-vpc <vpc-id> <key> <value>"
return -1
end
and aws ec2 create-tags --resources $resource --tags Key=$key,Value=$value
end
| Replace loop over arguments with empty | Replace loop over arguments with empty
| fish | mit | colstrom/piranha,colstrom/shellops-aws |
3e3d36b7b9047aed48bae4928efbdd19bd147edd | .config/fish/functions/xclist.fish | .config/fish/functions/xclist.fish | # Prints a clean list of paths for all installed versions of Xcode
function xclist
set -l app_dirs /Applications ~/Applications
set -l xcodes
for app_dir in $app_dirs
set xcodes $xcodes $app_dir/Xcode*.app
end
for xcode_path in $xcodes
set -l link_target (readlink $xcode_path)
... | # Prints a clean list of paths for all installed versions of Xcode
#
# Options:
# -1 (The numeric digit 'one'.) Force output to be one entry per line. This is the default when output is not to a terminal.
function xclist --argument-names option
set -l app_dirs /Applications ~/Applications
set -l xcodes
for... | Add -1 option (default when non-interactive) for plain output | [xccheck] Add -1 option (default when non-interactive) for plain output
| fish | mit | phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles |
8d662b304aaa2ff93767e28878482f3a42ebdd84 | functions/_pure_prompt_git_dirty.fish | functions/_pure_prompt_git_dirty.fish | function _pure_prompt_git_dirty
set --local git_dirty_symbol
set --local git_dirty_color
set --local is_git_dirty (
not command git diff-index --ignore-submodules --cached --quiet HEAD -- >/dev/null 2>&1
or not command git diff --ignore-submodules --no-ext-diff --quiet --exit-code >/dev/nul... | function _pure_prompt_git_dirty
set --local git_dirty_symbol
set --local git_dirty_color
set --local is_git_dirty (
# The first checks for staged changes, the second for unstaged ones.
# We put them in this order because checking staged changes is *fast*.
not command git diff-index ... | Fix conditions for prompt git dirty | Fix conditions for prompt git dirty
| fish | mit | rafaelrinaldi/pure |
75359d12fd6bfcb92233865ac7d93f27c92c829d | fish/.config/fish/abbreviations.fish | fish/.config/fish/abbreviations.fish | # Abbreviations (text expansion)
abbr --add gp 'git push'
abbr --add gst 'git status' # gs taken by Ghostscript
abbr --add uparch 'sudo pacman --sync --refresh --sysupgrade'
abbr --add upaur 'pikaur --sync --refresh --sysupgrade --devel --needed --noconfirm'
abbr --add send2phone 'kdeconnect-cli --device (kdeconnect-c... | # Abbreviations (text expansion)
abbr --add gp 'git push'
abbr --add gst 'git status' # gs taken by Ghostscript
abbr --add uparch 'sudo pacman --sync --refresh --sysupgrade; and fish_update_completions'
abbr --add upaur 'pikaur --sync --refresh --sysupgrade --devel --needed --noconfirm; and fish_update_completions'
ab... | Update fish completions after running package manager | Update fish completions after running package manager
| fish | mit | ammgws/dotfiles,ammgws/dotfiles,ammgws/dotfiles |
51a35e00003796a19a8786df7c61e6336f65a14d | functions/password-requirements.fish | functions/password-requirements.fish | function password-requirements
set --local policy (mktemp)
aws iam get-account-password-policy | jq .PasswordPolicy > $policy
if jq --exit-status .RequireLowercaseCharacters $policy > /dev/null
echo [:lower:]
end
if jq --exit-status .RequireUppercaseCharacters $policy > /dev/null
e... | Add function to find password requirements | Add function to find password requirements
| fish | mit | colstrom/shellops-aws,colstrom/piranha | |
458927243edda3006cc704ef5d279e73580cd489 | .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
command update-os
# Homebrew brews updates
command update-brews
# Homebrew cask updates
command update-casks
# NPM updates
command update-npms
# Gem updates
command upd... | 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
e... | Update fish functions to update stuff. | Update fish functions to update stuff.
| fish | mit | FluxAugur/mac-os-dotfiles,FluxAugur/mac-os-dotfiles,FluxAugur/mac-os-dotfiles |
ea21df3639ad34ccd9b8bd35194b2d0a72443286 | config/fish/completions/project.fish | config/fish/completions/project.fish | function _project_dirs
string replace -r "$REPO_HOME/(.*)/" '$1' $REPO_HOME/*/*/
end
complete -c project -a '(_project_dirs)'
| function _project_dirs
string replace -r "$REPO_HOME/(.*)/" '$1' $REPO_HOME/*/*/
end
complete --command project --arguments '(_project_dirs)'
| Stop using short option names | Stop using short option names
| fish | mit | lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles |
2e71cdfc943943b8bf50ae24dac69553ccaa7829 | functions/__fisher_path_update.fish | functions/__fisher_path_update.fish | function __fisher_path_update -a path
pushd $path
if not git pull --quiet --rebase origin master
git rebase --abort
git fetch --quiet origin master
git reset --quiet --hard FETCH_HEAD
git clean --quiet -d --force
end ^ /dev/null
popd
end
| function __fisher_path_update -a path
pushd $path
if not git pull --quiet --rebase origin master
git rebase --abort
git fetch --quiet origin master
git reset --quiet --hard FETCH_HEAD
git clean --quiet -dx --force
end ^ /dev/null
popd
end
| Clear ignored files on cleanup | Clear ignored files on cleanup
| fish | mit | fisherman/fisherman |
cafacb8f0dfc7f55515da25c789e4241025373c0 | dock.fish | dock.fish | function __all_dock_formulars
dock -l | tail -n +2 | tr '\n' ' '
end
complete -c dock -a (__all_dock_formulars)
complete -c dock -s l -l list -d 'List available formulas'
complete -c dock -s c -l cat -a (__all_dock_formulars) -d 'Display formula details'
complete -c dock -s u -l upgrade -d 'Upgrade list of available... | Add completions for fish shell | Add completions for fish shell
| fish | mit | bripkens/dock,MyRealityCoding/dock | |
f437dc842c6a3cd1849aad234caac970c8f76897 | omf/init.fish | omf/init.fish | set -xg theme_color_scheme zenburn
set -xg theme_nerd_fonts no
set -xg fish_key_bindings fish_vi_key_bindings
set -xg theme_show_exit_status no
set -xg EDITOR nvim
set -xg LC_ALL en_US.UTF-8
set -xg LANG en_US.UTF-8
set -xg VIRTUAL_ENV_DISABLE_PROMPT 1
# don"t show brew git information on brew commands
set -xg HOMEB... | set -xg theme_color_scheme zenburn
set -xg theme_nerd_fonts no
set -xg fish_key_bindings fish_vi_key_bindings
set -xg theme_show_exit_status no
set -xg EDITOR nvim
set -xg LC_ALL en_US.UTF-8
set -xg LANG en_US.UTF-8
set -xg VIRTUAL_ENV_DISABLE_PROMPT 1
# don"t show brew git information on brew commands
set -xg HOMEB... | Move GOPATH out of home root and one level inside | Move GOPATH out of home root and one level inside
Signed-off-by: Pradip Caulagi <0c051a6126e36cf99cb191d111f55f115dc1b7b6@gmail.com>
| fish | mit | caulagi/dotfiles,caulagi/dotfiles |
11859140c12863f169fb3fc46a954fd8853425ee | 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
# Neovim settings
if test -z "$NVIM_LISTEN_ADDRESS"
... | #!/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"
... | Fix enhanced manpager inside neovim | Fix enhanced manpager inside neovim
| fish | mit | bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles |
b3c537aa794fd2ba6b4126348dafa57d722cfc81 | fish/.config/fish/config.fish | fish/.config/fish/config.fish | #!/usr/bin/env fish
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
| #!/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 -e "$NVIM_LISTEN_ADDRESS+x"
if test -x /usr/... | Add neovim pager and control r history search for fish | Add neovim pager and control r history search for fish
| fish | mit | bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles |
adfe8c188bd6e71e73fc455f157cc76bcf9c547f | asdf.fish | asdf.fish | #!/usr/bin/env fish
set -l asdf_dir (dirname (status -f))
# we get an ugly warning when setting the path if shims does not exist
mkdir -p $asdf_dir/shims
if not contains $asdf_dir/{bin,shims} $PATH
and test -d $asdf/{bin,shims}
set -gx PATH $asdf_dir/{bin,shims} $PATH
end
| #!/usr/bin/env fish
set -l asdf_dir (dirname (status -f))
# we get an ugly warning when setting the path if shims does not exist
mkdir -p $asdf_dir/shims
for x in $asdf_dir/{bin,shims}
if not contains $x $PATH
and test -d $x
set -gx PATH $x $PATH
end
end
| Fix issue with Fish shell shim loading script | Fix issue with Fish shell shim loading script
| fish | mit | asdf-vm/asdf,Stratus3D/asdf |
43ee5c3d4a53c94ce181a53c2b7e5bfcd5418448 | fish/functions/fish_prompt.fish | fish/functions/fish_prompt.fish | function fish_prompt --description 'Compose fish prompt'
set -l last_status $status
set -l prompt_sign (__fish_prompt_sign)
switch $last_status
case 0
set last_status ''
case '*'
set last_status (set_color red) $__fish_prompt_sign_error (set_color normal) ' '
en... | function fish_prompt --description 'Compose fish prompt'
set -l last_status $status
switch $last_status
case 0
set last_status ''
case '*'
set last_status (set_color red) $__fish_prompt_sign_error (set_color normal) ' '
end
echo -n -s $last_status (prompt_pwd) ... | Delete temp var for prompt sign | fish: Delete temp var for prompt sign
| fish | mit | sebastianmarkow/dotfiles |
f2a9be5acff8997b4c8c08ab87f5e885c3d1ec9d | 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
# Needs latest rbenv (> 0.4.0; i.e., can't use Homebrew just yet)
set -x PATH $PATH $HOME/.rbenv/bin
... | Use rbenv's new fish support | Use rbenv's new fish support
* Might need to be changed now since 0.4.0 is up on homebrew
| fish | mit | spinningarrow/.files,spinningarrow/.files |
b7ac2b6b8b4941708176c6048dc84f31db79c393 | functions/delete-mfa.fish | functions/delete-mfa.fish | function delete-mfa --argument user
if empty "$user"
usage delete-mfa '<user>'
return (false)
end
aws iam delete-virtual-mfa-device --serial-number (mfa-serial "$user")
end
| Add function to delete a user's MFA | Add function to delete a user's MFA
| fish | mit | colstrom/piranha,colstrom/shellops-aws | |
26f592866122e8c5740692c0226deacd1b6074ff | fish/functions/fish_mode_prompt.fish | fish/functions/fish_mode_prompt.fish | function fish_mode_prompt --description 'Displays the current mode'
if test "$fish_key_bindings" = "fish_vi_key_bindings"
switch $fish_bind_mode
case default
set sign_color $__sk_mode_color_normal
set sign_char $__sk_mode_string_normal
case insert
... | function fish_mode_prompt --description 'Displays the current mode'
if test "$fish_key_bindings" = "fish_vi_key_bindings"
switch $fish_bind_mode
case default
set sign_color $__sk_mode_color_normal
set sign_char $__sk_mode_string_normal
case insert
... | Fix vi mode foreground color | fish: Fix vi mode foreground color
| fish | mit | sebastianmarkow/dotfiles |
9e58edf58e7d6993920aedeff42e5108bc2ea801 | init.fish | init.fish | alias l='ls -lah'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
alias ......='cd ../../../../..'
alias md='mkdir -p'
alias rd=rmdir
alias mv='mv -i'
alias cp='cp -i'
# neovim
if type -q nvim
alias vim=nvim
alias vi=nvim
end
# fasd
if type -q fasd
alias v='fasd -t -e vim -b viminf... | alias l='ls -lah'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
alias ......='cd ../../../../..'
alias md='mkdir -p'
alias rd=rmdir
alias mv='mv -i'
alias cp='cp -i'
# neovim
if type -q nvim
alias vim=nvim
alias vi=nvim
end
# fasd
if type -q fasd
alias v='fasd -t -e vim -b viminf... | Change the way how fish-sensible remove the greeting message | Change the way how fish-sensible remove the greeting message
Reference:
https://fishshell.com/docs/current/faq.html#faq-greeting
| fish | mit | simnalamburt/fish-sensible |
c5682f1c25117f7ba68dccbc4d310622f98d4758 | functions/rogue.fish | functions/rogue.fish | function rogue --argument subject
if empty "$subject"
usage rogue '<subject>'
return (false)
end
if not functions --query real-$subject
echo "No real-$subject function defined" >& 2
return (false)
end
comm -23 (eval real-$subject | psub) (get $subject | psub)
end
| function rogue --argument subject
if empty "$subject"
usage rogue '<subject>'
return (false)
end
if not functions --query real-$subject
echo "No real-$subject function defined" >& 2
return (false)
end
comm -23 (eval real-$subject | sort | psub) (get $subject | sort ... | Sort results before piping to comm | Sort results before piping to comm
| fish | mit | colstrom/shellops-aws,colstrom/piranha |
e2e5c5d753592c29a7d784669d01c2a4048566e9 | config/fish/functions/fish_title.fish | config/fish/functions/fish_title.fish | function fish_title
if test $_ = 'fish'
pwd
else
echo $_
end
end
| function fish_title
if test $_ = 'fish'
prompt_pwd
else
echo (echo $_) (prompt_pwd)
end
end
| Use a shell title that's friendlier to Kitty tabs | Use a shell title that's friendlier to Kitty tabs
| fish | mit | timriley/dotfiles,timriley/dotfiles |
5e8d986995a4d57841990516c7ada8c47591d63a | fish/functions/ensure_color.fish | fish/functions/ensure_color.fish |
##
# @param var_name Name of the environment variable that holds the color information.
# @param set_color_args Arguments to pass to `set_color` when using this color value.
function ensure_color --description 'Ensures that the given color name is set to the supplied set_color argument array'
set --local var... |
##
# @param var_name Name of the environment variable that holds the color information.
# @param set_color_args Arguments to pass to `set_color` when using this color value.
#
# @example
# ensure_color fish_color_user -o cyan
#
function ensure_color --description 'Ensures that the given color name is set to ... | Add a little more documentation | Add a little more documentation
| fish | mit | lee-dohm/environment,lee-dohm/environment,lee-dohm/environment |
a17837b7f3fbf98ffe908a9c521f5fefa758513c | plugins/ta/spec/ta.spec.fish | plugins/ta/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 | jeremiejig/oh-my-fish,chgu82837/oh-my-fish,cap10morgan/oh-my-fish,oh-my-fish/oh-my-fish-legacy,lfiolhais/oh-my-fish,eugenesvk/oh-my-fish,wfscheper/oh-my-fish,scorphus/oh-my-fish,wangyung/oh-my-fish,scorphus/oh-my-fish,wfscheper/oh-my-fish,scorphus/oh-my-fish-screwed,nwykes/oh-my-fish,bsott/oh-my-fish,gblmarquez/oh-my-f... |
3871f30435dc207ac637f23efc8c26e310f2133b | fish/.config/fish/abbreviations.fish | fish/.config/fish/abbreviations.fish | abbr -a -- - 'cd -'
abbr -a axel 'axel -a'
abbr -a b 'brew'
abbr -a c 'nix-shell -p clojure --command "clojure -A:rebel -A:cheshire"'
abbr -a c3 'cal -3'
abbr -a dl 'wget -r -l 1 -np -nd'
abbr -a fn 'find . -iname'
abbr -a g git
abbr -a ga git add
abbr -a gap git add --patch
abbr -a gb git branch
abbr -a gc git commit... | abbr -a -- - 'cd -'
abbr -a axel 'axel -a'
abbr -a b 'brew'
abbr -a c3 'cal -3'
abbr -a dl 'wget -r -l 1 -np -nd'
abbr -a fn 'find . -iname'
abbr -a g git
abbr -a ga git add
abbr -a gap git add --patch
abbr -a gb git branch
abbr -a gc git commit --verbose
abbr -a gco git checkout
abbr -a gd git diff
abbr -a gdc git di... | Change clojure abbreviation to prevent accidental usage | Change clojure abbreviation to prevent accidental usage
| fish | mit | spinningarrow/.files,spinningarrow/.files |
722326bfca07fa9daeb54d0b60ed684b451dbd64 | .config/fish/conf.d/darwin/key_repeat.fish | .config/fish/conf.d/darwin/key_repeat.fish | function speed_key_repeat
# delay until key repeat
defaults write NSGlobalDomain InitialKeyRepeat -int 12
# key repeat speed
defaults write NSGlobalDomain KeyRepeat -int 1
set_color -o yellow
echo
echo You must do logout your mac for taking this effect.
echo
set_color normal
end
fun... | Add function to accelerate key repeat | [fish] Add function to accelerate key repeat
| fish | mit | masa0x80/dotfiles,masa0x80/dotfiles,masa0x80/dotfiles,masa0x80/dotfiles | |
0a61f09b9785ed558f59b279f4f8be7a323bbf57 | .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]"
... | #! /usr/bin/env fish
# Load utility functions
set utilsFilePath (dirname (status -f))"/utils.fish"
source "$utilsFilePath"
set newVersion "$argv[1]"
set projectFile "ShopifySharp/ShopifySharp.csproj"
if test -z "$newVersion"
set scriptName (basename (status -f))
error "Missing new version value."
warn "... | Fix sed usage on macos and linux | Fix sed usage on macos and linux
| fish | mit | clement911/ShopifySharp,nozzlegear/ShopifySharp |
de3da46f1009e39fca41af361591585b15e01ea9 | config/fish/functions/gh.fish | config/fish/functions/gh.fish | # From https://github.com/jdxcode/gh
if not set -q GH_BASE_DIR
set GH_BASE_DIR $HOME/src
end
function gh -d "manage git repos"
set git_host github.com
set -l repo ""
if [ (count $argv) -eq 1 ]
set repo $argv[1]
else if [ (count $argv) -eq 2 ]
set repo $argv[1]/$argv[2]
else
echo "USAGE: gh ... | # From https://github.com/jdxcode/gh
if not set -q GH_BASE_DIR
set GH_BASE_DIR $HOME/src
end
function gh -d "manage git repos"
set git_host github.com
set -l repo ""
if [ (count $argv) -eq 1 ]
set repo $argv[1]
else if [ (count $argv) -eq 2 ]
set repo $argv[1]/$argv[2]
else
echo "USAGE: gh ... | Clone from GitHub via HTTPS | Clone from GitHub via HTTPS
| fish | mit | timriley/dotfiles,timriley/dotfiles |
b7eae9ad5850d6cf2e226bf031182de8bb4e521a | completions/shark.fish | completions/shark.fish | set -l IFS \t
shark -h | __fisher_complete shark
complete -xc shark -d "Sparkline generator" -a "\t"
| complete -xc shark -d "Sparkline generator" -a "\t"
complete -c shark -s n -l line -d "Process each line as a record"
complete -c shark -s f -l field -d "=<format> Set field output format"
complete -c shark -s r -l record -d "=<format> Set record output format"
complete -c shark -s m -l min -d "=<number> Set minimum nu... | Add custom completions avoiding fisherman specific slang. | Add custom completions avoiding fisherman specific slang.
| fish | mit | bucaran/shark |
adb7a3d135309cd764a547d514be5e163246a13d | functions/fish_prompt.fish | functions/fish_prompt.fish | function fish_prompt
if status --is-interactive
# Colorize the CWD depending on permissions
switch $USER
case root
set -g __paradox_prompt_pwd (set_color $fish_color_cwd_root)
set -g __paradox_prompt_character (echo -s (set_color red) "!")
case '*'
set -g __paradox_prompt_p... | function fish_prompt
if status --is-interactive
# Colorize the CWD depending on permissions
switch $USER
case root
set -g __paradox_prompt_pwd (set_color $fish_color_cwd_root)
set -g __paradox_prompt_character (echo -s (set_color red) "!")
case '*'
set -g __paradox_prompt_p... | Remove unused status line in prompt | Remove unused status line in prompt
This never worked, and was vestigal from before the line separators
| fish | mit | paradox460/paradox-theme |
571836de944c7287b3d1edf177108758efec063b | fish/functions/fbcode_cd.fish | fish/functions/fbcode_cd.fish | # this is super clowny but it coerces new tmux panes that are in fbcode to use the
# nicer symlinked path rather than the real path on disk
function fbcode_cd --on-variable PWD
switch (pwd)
case "/data/users/vmagro/fbsource/fbcode*"
set -l path (string replace "/data/users/vmagro/fbsource/fbcode" "$HOME/fbcode"... | # this is super clowny but it coerces new tmux panes that are in fbcode to use the
# nicer symlinked path rather than the real path on disk
function fbcode_cd --on-variable PWD
switch (pwd)
case "/data/users/vmagro/fbsource/fbcode*"
set -l path (string replace "/data/users/vmagro/fbsource/fbcode" "$HOME/fbcode"... | Revert "Add path to magic symlink" | Revert "Add path to magic symlink"
This reverts commit 82b9c3dc03764dc0b5cab66b90baff175baf23b7.
| fish | mit | vmagro/dotfiles,vmagro/dotfiles |
20e4007848987d0e3c9bc6822f1f61dd59e064c9 | fish/config.fish | fish/config.fish | type -t gls > /dev/null
switch $status
case 0
function ls
command gls -FBh $argv
end
function dir
command gls -lFBh $argv
end
case '*'
function ls
command ls -FBh $argv
end
function dir
command ls -lFBh $argv
end
end
# Remove greeting
set fish_gr... | # -*- sh -*-
set -g GITROOT "git@github.com:ithinkihaveacat"
set -g GREP_OPTIONS "--exclude=.svn --exclude=.git --binary-files=without-match"
set -g TZ "Europe/London"
# Create ls and dir aliases
type -t gls > /dev/null
switch $status
case 0
function ls
command gls -FBh $argv
end
function dir
... | Set a few more environment variables | Set a few more environment variables
| fish | apache-2.0 | ithinkihaveacat/dotfiles,ithinkihaveacat/dotfiles,ithinkihaveacat/dotfiles |
0fcbffec976ad667b30584ddea530edee7accbb6 | plugins/find-in/find-inc.fish | plugins/find-in/find-inc.fish | # The MIT License
#
# Copyright (c) Simon Lees <http://simotek.net/> and contributors
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the ... | Add a find in with color always on | Add a find in with color always on
| fish | mit | simotek/tackle,simotek/tackle | |
06c5119966b8e40a70461b1ffb14956280e951e9 | fish/config.fish | fish/config.fish | # Turn off greeting on start
set -g -x fish_greeting ''
# Environment Variables
set -x EDITOR nvim
set -x NVIM_TUI_ENABLE_TRUE_COLOR 1
set -x GOPATH "$HOME/gocode"
# Aliases
alias rdp "xfreerdp +compression +clipboard +fonts /home-drive /cert-ignore /size:1400x1050"
alias rsyncg "rsync -a --exclude='.git/' --exclude-... | # Turn off greeting on start
set -g -x fish_greeting ''
# Environment Variables
set -x EDITOR nvim
set -x NVIM_TUI_ENABLE_TRUE_COLOR 1
set -x GOPATH "$HOME/gocode"
# Aliases
alias rdp "xfreerdp +compression +clipboard +fonts /home-drive /cert-ignore /size:1400x1050"
alias rsyncg "rsync -a --exclude='.git/' --exclude-... | Fix the delete key in fish when using st | Fix the delete key in fish when using st
| fish | unlicense | KibaFox/dotfiles,KibaFox/dotfiles,KibaFox/dotfiles,KibaFox/dotfiles,KibaFox/dotfiles |
c6533915503014deef4a7400ab318a2309f56d93 | config.fish | config.fish | set -x PATH /usr/local/bin $PATH
set -x PATH /usr/local/heroku/bin $PATH
set -x PATH /usr/local/share/npm/bin $PATH
set -U EDITOR mvim
set RUBY_GC_MALLOC_LIMIT 60000000
set RUBY_FREE_MIN 200000
#rbenv
set -x PATH $HOME/.rbenv/bin $PATH
set -x PATH $HOME/.rbenv/shims $PATH
rbenv rehash >/dev/null ^&1
#aliases
alias r... | set -x PATH /usr/local/bin $PATH
set -x PATH /usr/local/heroku/bin $PATH
set -x PATH /usr/local/share/npm/bin $PATH
set -x PATH /Applications/Postgres.app/Contents/Versions/9.4/bin $PATH
set -U EDITOR mvim
set RUBY_GC_MALLOC_LIMIT 60000000
set RUBY_FREE_MIN 200000
#rbenv
set -x PATH $HOME/.rbenv/bin $PATH
set -x PATH... | Add new rtest command and add postgress path | Add new rtest command and add postgress path
| fish | mit | gustavowt/fish,gustavowt/fish |
b0dba04716a4612ac7e5d206c2ac496fbace14e2 | clojure/env.fish | clojure/env.fish | # For ClojureScript development:
# Need to set this here, as this env.fish file is run before the Java one.
# set -x JAVA_HOME (/usr/libexec/java_home -v 1.8)
set -x JAVA_HOME "/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home"
set -x SPIDERMONKEY_HOME "$HOME/Developer/js-engines/jsshell-mac"
set -x NA... | # For ClojureScript development:
# Need to set this here, as this env.fish file is run before the Java one.
set -x JAVA_HOME (/usr/libexec/java_home -v 1.8)
#set -x JAVA_HOME "/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home"
set -x SPIDERMONKEY_HOME "$HOME/Developer/js-engines/jsshell-mac"
set -x NAS... | Set JAVA_HOME via libexec again | Set JAVA_HOME via libexec again
| fish | mit | danielcompton/dotfiles,danielcompton/dotfiles,danielcompton/dotfiles |
a8e89e752069472a046e5ce6da3c2ed52a638582 | config/fish/config.fish | config/fish/config.fish | if not status --is-login
exit
end
test -f "$HOME/.config/dotfile/init.fish"; and source "$HOME/.config/dotfile/init.fish"
dotfile::load_if_exists "$HOME/.config/env/init.fish"
dotfile::load_if_exists "$HOME/.config/shell/init.fish"
dotfile::load_if_exists "$HOME/.config/tmux/init.fish"
dotfile::load_if_exists "$HOM... | if not status --is-login
exit
end
test -f "$HOME/.config/dotfile/init.fish"; and source "$HOME/.config/dotfile/init.fish"
dotfile::load_if_exists "$HOME/.config/env/init.fish"
dotfile::load_if_exists "$HOME/.config/shell/init.fish"
dotfile::load_if_exists "$HOME/.config/tmux/init.fish"
dotfile::load_if_exists "$HOM... | Use correct directory for local fish overrides | Use correct directory for local fish overrides
| fish | mit | charlesbjohnson/dotfiles,charlesbjohnson/dotfiles |
5fd783992fa662b7d303ec65f6d0f4b905ac495b | functions/find-policies.fish | functions/find-policies.fish | function find-policies --argument-names type target
print-status iam/find-policies "$type $target"
test -d iam/$type-policy/$target
and find iam/$type-policy/$target -type f -name \*.json | rev | cut -d / -f 1 | rev | cut -d . -f 1
end
| Add function to find policies | Add function to find policies
| fish | mit | colstrom/shellops-aws,colstrom/piranha | |
cec1c65d7b242432c2da1653e86473d55c60cdbf | fish/functions/fish_prompt.fish | fish/functions/fish_prompt.fish | function fish_prompt
set_color yellow
prompt_pwd | tr -d '\n'
set_color normal
git_status
end
| function fish_prompt
set_color yellow
prompt_pwd | tr -d '\n'
set_color normal
git_status
printf "\$ "
end
| Make prompt better for copy/pasting | Fish: Make prompt better for copy/pasting
| fish | mit | justuswilhelm/pufferfish,justuswilhelm/pufferfish |
272d3fd8539036fc0a1bf0bdbee18f1d091ae219 | functions/account-id.fish | functions/account-id.fish | function account-id
aws ec2 describe-security-groups --filters Name=vpc-id,Values=(default-vpc) Name=group-name,Values=default | jq --raw-output .SecurityGroups[].OwnerId
end
| Add function to find account ID | Add function to find account ID
| fish | mit | colstrom/piranha,colstrom/shellops-aws | |
1ce568da47b59c00ed6d1c01cffc7e8b8a3541b1 | functions/delete-from-group.fish | functions/delete-from-group.fish | function delete-from-group --argument group user
if empty "$group" "$user"
usage delete-from-group '<group>' '<user>'
return (false)
end
print-status delete-from-group "$argv"
aws iam remove-user-from-group --group-name "$group" --user-name "$user"
end
| Add function to delete a user from a group | Add function to delete a user from a group
| fish | mit | colstrom/piranha,colstrom/shellops-aws | |
fca3bbfa495d18790d076f06aad7296ea5963f54 | .config/fish/functions/prompt_pwd.fish | .config/fish/functions/prompt_pwd.fish | function prompt_pwd --description 'Print the current working directory, shortend to fit the prompt'
set p (echo $PWD | sed -e "s|^$HOME|~|")
# Provide customization possibilities for local machines.
if functions -q prompt_pwd_after
prompt_pwd_after $p
else
echo "$p "
end
end
| function prompt_pwd --description 'Print the current working directory, shortend to fit the prompt'
set p (echo $PWD | sed -e "s|^$HOME|~|")
# Provide customization possibilities for local machines.
if functions -q prompt_pwd_after
prompt_pwd_after $p
else
# u200C is a Zero-Width non-joi... | Improve by using a ZWNJ | Improve by using a ZWNJ
| fish | mit | nicdumz/dotfiles |
8aa7ecf9b43d36837eaf27291fad63452ed70d43 | .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 count command | Fix gacp function with count command
| fish | mit | kyon-bll/.dotfiles |
ca50b7646c40914c484fc8eea4a485cc36205919 | fish/.config/fish/functions/fish_prompt.fish | fish/.config/fish/functions/fish_prompt.fish | # New Start: A modern Arch workflow built with an emphasis on functionality.
# Copyright (C) 2017-2018 Donovan Glover
function fish_prompt
# Use a more informative and non-unicode prompt for ttys
if status --is-login; and test -z "$DISPLAY"
set_color yellow; echo -n "$USER@$hostname"
set_col... | # New Start: A modern Arch workflow built with an emphasis on functionality.
# Copyright (C) 2017-2021 Donovan Glover
function fish_prompt
# Use a more informative and non-unicode prompt for ttys
if status --is-login; and test -z "$DISPLAY"
set_color yellow; echo -n "$USER@$hostname"
set_col... | Remove git branch from prompt | fish: Remove git branch from prompt
This was cool but it breaks with the latest version of fish. Instead of
trying to fix this I'd rather use a less hacky solution.
| fish | mit | GloverDonovan/new-start |
42420409572381dd90f9aa7ae73f7fa37d03f6d3 | init.fish | init.fish | function init -a path --on-event init_git-flow
for prefix in /usr /usr/local /opt/local
if test -f $prefix/share/fish/completions/git.fish
source $prefix/share/fish/completions/git.fish
break
end
end
if not available __fish_git_branches
echo "Error: git completion not found!" >&2; return ... | function init -a path --on-event init_git-flow
for prefix in /usr /usr/local /opt/local
if test -f $prefix/share/fish/completions/git.fish
source $prefix/share/fish/completions/git.fish
break
end
end
if not type -q __fish_git_branches
echo "Error: git completion not found!" >&2; return 1
... | Replace `available` usage with `type -q` | Replace `available` usage with `type -q`
| fish | mit | oh-my-fish/plugin-git-flow |
611c6e3a9851b3d49c5c52e45e9d0637b3edc4df | omf/init.fish | omf/init.fish | ## SETTINGS
# editors, pagers
set -gx BROWSER open
set -gx EDITOR vim
set -gx PAGER less
set -gx MANPAGER $PAGER
# fish greeting
set -gx fish_greeting ""
## ALIASES
# navigation
alias .. "cd .."
alias ... "cd ../.."
alias .... "cd ../../.."
# ls
alias l "ls -F"
alias la "ls -AF"
alias ll "ls -lF"
alias lla "ls -Al... | ## SETTINGS
# editors, pagers
set -gx BROWSER open
set -gx EDITOR vim
set -gx PAGER less
set -gx MANPAGER $PAGER
# fish greeting
set -gx fish_greeting ""
## ALIASES
# navigation
alias .. "cd .."
alias ... "cd ../.."
alias .... "cd ../../.."
# ls
alias l "ls -F"
alias la "ls -AF"
alias ll "ls -lF"
alias lla ... | Add aliases for node and npm | Add aliases for node and npm
| fish | mit | chuckeles/dotfiles |
589d771fb45f17cbdbb42000b1c0d8c738e05991 | gpb.fish | gpb.fish | # Defined in - @ line 1
function gpb --description 'alias gpb git push --set-upstream origin (git branch --show-current)'
git push --set-upstream origin (git branch --show-current) $argv;
end
| Add git push branch helper | Add git push branch helper
| fish | mit | MoritzKn/fish-functions | |
3fca7eb36d31ea4dd3d9fc8697cc60642a2a5a30 | plugins/colors/colors.fish | plugins/colors/colors.fish | function colors -d "This function does nothing other then load all the other color functions (red, blue, green, yellow etc)"
end
function blue -d "The color blue"
echo "#3498D8"
end
function green -d "The color green"
echo "#2ECC71"
end
function yellow -d "The color yellow"
echo "#F1C40F"
end
function... | Add color module for palette | Add color module for palette
| fish | mit | simotek/tackle,simotek/tackle | |
2c184bf649e3345e26188b3fe42459d07d8f62ab | config/shell/init.fish | config/shell/init.fish | function shell::termcolor
if not string match --quiet "256color" $TERM
set --export --global TERM $argv[1]
end
end
function shell::color
if test -f "$HOME/.config/shell/$argv[1]"
eval sh "$HOME/.config/shell/$argv[1]"
end
end
function shell::dircolors
if not test -f "$HOME/.config/shell/$argv[1]"
... | function shell::termcolor
if not string match --quiet "*256color*" $TERM
set --export --global TERM $argv[1]
end
end
function shell::color
if test -f "$HOME/.config/shell/$argv[1]"
eval sh "$HOME/.config/shell/$argv[1]"
end
end
function shell::dircolors
if not test -f "$HOME/.config/shell/$argv[1]"
... | Fix TERM override bug in fish. | Fix TERM override bug in fish.
| fish | mit | charlesbjohnson/dotfiles,charlesbjohnson/dotfiles |
7649af10633e308050c47cd2f94b231552314024 | fish/.config/fish/config.fish | fish/.config/fish/config.fish | # initialize rbenv
if test -d ~/.rbenv/shims
if test -d ~/.rbenv/bin
set PATH ~/.rbenv/bin $PATH
end
status --is-interactive; and source (rbenv init - --no-rehash|psub)
end
# initialize nodenv
if test -d ~/.nodenv/shims
if test -d ~/.nodenv/bin
set PATH ~/.nodenv/bin $PATH
end
status --is-interac... | # initialize rbenv
if test -d ~/.rbenv/shims
if test -d ~/.rbenv/bin
set PATH ~/.rbenv/bin $PATH
end
status --is-interactive; and source (rbenv init - --no-rehash|psub)
end
# initialize nodenv
if test -d ~/.nodenv/shims
if test -d ~/.nodenv/bin
set PATH ~/.nodenv/bin $PATH
end
status --is-interac... | Set vim as default editor | Set vim as default editor
| fish | mit | patricklewis/dotfiles |
79a9904fdaa5f7554966d63a6064ba334d0b56c4 | 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
if status --is-interactive
# When in a sudo starting tmux is almost always unintended
and not test "$SUDO_USER"
if not tmux... | # Use vim for git
set -xg VISUAL "vim"
set -xg PATH ~/.local/bin $PATH
# T(he )tmux session
if status --is-interactive
# When in a sudo starting tmux is almost always unintended
and not test "$SUDO_USER"
if not tmux has -t "default" 2> /dev/null
tmux new -d -s "default"
end
if test -z "$TMUX"
set d... | Remove platform dependent ssh-agent setting | Remove platform dependent ssh-agent setting
| fish | mit | wilfriedvanasten/miscvar,wilfriedvanasten/miscvar,wilfriedvanasten/miscvar |
0d5a6ba18107e588cf7d5d4390e3b9aa4fbfd9ce | .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="more ~/.ssh/id_rsa.pub | pbcopy | echo '=> Publ... | # 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... | Use modern way of retrieving pubkey | :recycle: Use modern way of retrieving pubkey
Signed-off-by: Nick Waelkens <c22b5f9178342609428d6f51b2c5af4c0bde6a42@nick.plus>
| fish | mit | nickwaelkens/dotfiles,nickwaelkens/dotfiles |
cfbcba87905f15ec6f9a3751905362a6732a72c0 | fish/config.fish | fish/config.fish | function dir
ls -l $argv
end
# Remove greeting
set fish_greeting
# 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"
| type -t gls > /dev/null
switch $status
case 0
function ls
command gls -FBh $argv
end
function dir
command gls -lFBh $argv
end
case '*'
function ls
command ls -FBh $argv
end
function dir
command ls -lFBh $argv
end
end
# Remove greeting
set fish_gr... | Add ls and dir functions | Add ls and dir functions
| fish | apache-2.0 | ithinkihaveacat/dotfiles,ithinkihaveacat/dotfiles,ithinkihaveacat/dotfiles |
acadb9dd30b22dec10f7a9f0cc72c5c06b37b1dd | checkvps.fish | checkvps.fish | #!/usr/bin/fish
ssh novaember.com "uptime | grep -oE '[0-9.]+, [0-9.]+, [0-9.]+' | cut -d',' -f2 | xargs" > /tmp/vps_load
| #!/usr/bin/fish
set load (ssh novaember.com "uptime | grep -oE '[0-9.]+, [0-9.]+, [0-9.]+' | cut -d',' -f2 | xargs")
echo "$load" > /tmp/vps_load
| Fix VPS load disappearing when refreshing | Fix VPS load disappearing when refreshing
| fish | mit | mro95/dotfiles,mro95/dotfiles,mro95/dotfiles,mro95/dotfiles |
eccc999c6ce90ac6d02e43092bbfa5daf9aee0e6 | __path.fish | __path.fish | set -xp PATH "$DOTFILES/bin" "$HOME/bin" /usr/local/bin /usr/local/sbin
# Maid
set -xp PATH "$HOME/.maid/bin"
# Use GNU coreutils before system coreutils
set -xp PATH /usr/local/opt/coreutils/libexec/gnubin
#
# emacs / doom-emacs
#
set -xp PATH "$HOME/.emacs.d/bin"
#
# Golang
#
set -x GOPATH $HOME/gocode
set -xp... | set -xp PATH "$DOTFILES/bin" "$HOME/bin" /usr/local/bin /usr/local/sbin
# PHP
set -xp PATH "$HOME/.composer/vendor/bin"
# Maid
set -xp PATH "$HOME/.maid/bin"
# Use GNU coreutils before system coreutils
set -xp PATH /usr/local/opt/coreutils/libexec/gnubin
#
# emacs / doom-emacs
#
set -xp PATH "$HOME/.emacs.d/bin"
... | Add global Composer bin to PATH | Add global Composer bin to PATH
| fish | mit | montchr/dotfiles,montchr/dotfiles,montchr/dotfiles,montchr/dotfiles |
48cdbb973b688e0ffd17eb338f202c1bba77fb9f | fish/config.fish | fish/config.fish | # 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 --export EDITOR nvim
# Locale
set --export LANG en_GB.UTF-8
set --export LC_ALL $LANG
# XDG
set --export XDG_CONFIG_HOME $HOME/.config
set --export XDG_DATA_HOME $HOME/.local/share
# FZF
set --export FZF_DEFAULT_COMMAND 'fd --color always --exclude "*.enc" --ignore-file .pijulignore --hidden'
set --export FZF_DE... | Set plain-old Neovim as $EDITOR | Fish: Set plain-old Neovim as $EDITOR
| fish | unlicense | tssm/.config,tssm/.config,tssm/.config,tssm/.config |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.