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
1fa4847ea2a85fa200c48cba9c741ca6262cbe0f
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 DOCKER_TLS_VERIFY "1"; set -gx DOCKER_HOST "tcp://192.168.99.100:2376"; set -gx DOCKER_CERT_PATH "$HOME/.docker/machine/machin...
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 DOCKER_TLS_VERIFY "1"; set -gx DOCKER_HOST "tcp://192.168.99.100:2376"; set -gx DOCKER_CERT_PATH "$HOME/.docker/machine/machin...
Add alias of bundle command
Add alias of bundle command
fish
mit
ojiry/dotfiles
fd771516671baf5ec596686a40d4cc47d78377b5
grc.fish
grc.fish
function init --on-event init_grc set -l execs cat cvs df diff dig gcc g++ ls ifconfig \ make mount mtr netstat ping ps tail traceroute \ wdiff if not available grc echo 'You need to install grc!' return 0 end if set -q grc_plugin_execs set execs $grc_plugin_execs ...
function init --on-event init_grc set -l execs cat cvs df diff dig gcc g++ ls ifconfig \ make mount mtr netstat ping ps tail traceroute \ wdiff if not type -q grc echo 'You need to install grc!' return 0 end if set -q grc_plugin_execs set execs $grc_plugin_execs end...
Replace `available` usage with `type -q`
Replace `available` usage with `type -q`
fish
mit
oh-my-fish/plugin-grc
fd30a8b976b4228c282cdf2edc8293d0bcefbbea
fish/config.fish
fish/config.fish
set -gx PATH $PATH $HOME/bin set -gx N_PREFIX $HOME/n set -gx PATH $PATH $N_PREFIX/bin set -gx fish_prompt_pwd_dir_length 3 set -gx GOENV_ROOT $HOME/.goenv set -gx PATH $GOENV_ROOT/bin $PATH
set -gx PATH $PATH $HOME/bin set -gx N_PREFIX $HOME/n set -gx PATH $PATH $N_PREFIX/bin set -gx fish_prompt_pwd_dir_length 3 set -gx GOPATH $HOME/go; set -gx GOROOT $HOME/.go; set -gx PATH $GOPATH/bin $PATH; # g-install: do NOT edit, see https://github.com/stefanmaric/g
Use g for Go env var setup, running n again won't replace it
Use g for Go env var setup, running n again won't replace it
fish
mit
stefanmaric/dotfiles,stefanmaric/dotfiles
0b157a2c2eeb0aff53979c64d651fb414e212989
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 test -z "$$argument" print-status usage "add-tag-to-vpc <vpc-id> <key> <value>" return -1 end end and aws ec2 create-tags --resource...
Add function to add a tag to a VPC
Add function to add a tag to a VPC
fish
mit
colstrom/piranha,colstrom/shellops-aws
60e34dff43d7c9f03b31dd667be441a824e80e26
fish/.config/fish/config.fish
fish/.config/fish/config.fish
set -x VIRTUAL_ENV_DISABLE_PROMPT 1 set -x PIP_REQUIRE_VIRTUALENV 1 set -x HOMEBREW_NO_ANALYTICS 1 set -x HOMEBREW_NO_AUTO_UPDATE 1 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-guid...
set -gx VIRTUAL_ENV_DISABLE_PROMPT 1 set -gx PIP_REQUIRE_VIRTUALENV 1 set -gx HOMEBREW_NO_ANALYTICS 1 set -gx HOMEBREW_NO_AUTO_UPDATE 1 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-...
Set global flag on environment variables
Set global flag on environment variables
fish
mit
flother/dotfiles
4b536370a49653efee283766682b4f9c9bb4b54e
functions/deactivate-mfa.fish
functions/deactivate-mfa.fish
function deactivate-mfa --argument user if empty "$user" usage deactivate-mfa '<user>' return (false) end aws iam deactivate-mfa-device --user-name "$user" --serial-number (mfa-serial "$user") end
Add function to deactivate MFA for a user
Add function to deactivate MFA for a user
fish
mit
colstrom/shellops-aws,colstrom/piranha
2dd914cfbfcb6c4d387df5d0531ee4092ad4b4fd
fish/config.fish
fish/config.fish
# Wrap hub in `git` eval (hub alias -s) # Path party set PATH "/usr/local/sbin" $PATH
# Wrap hub in `git` eval (hub alias -s) # Path party set PATH "/opt/homebrew/bin /usr/local/sbin" $PATH
Update path for newer Homebrew installs.
Update path for newer Homebrew installs.
fish
mit
kazmasaurus/Dotfiles,kazmasaurus/Dotfiles,kazmasaurus/Dotfiles
e7ded1b99d66c3b8461f1d8f264769209dc45c8a
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 # Load TCS file...
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...
Add another abbreviation for fish
Add another abbreviation for fish
fish
mit
barrettclark/dotfiles,barrettclark/dotfiles
8f014e128b6fd008676e5c547c782dd19c1349c3
init.fish
init.fish
function init --on-event init_weather # Set the default temperature units to use. Options are: # default # celsius # fahrenheit # kelvin # # "default" will cause both Celsius and Fahrenheit units to be displayed, and # is the default setting. config weather -q temperature-units or config w...
# Set the default temperature units to use. Options are: # default # celsius # fahrenheit # kelvin # # "default" will cause both Celsius and Fahrenheit units to be displayed, and # is the default setting. config weather -q temperature-units or config weather -s temperature-units default # Set the default API...
Initialize immediately, rather than waiting for an event.
Initialize immediately, rather than waiting for an event.
fish
mit
oh-my-fish/plugin-weather
ef01f8ec95c4bf6df534fb88c795d7b3399d120f
fish/config.fish
fish/config.fish
set -x PATH $PATH ~/.config/mybin set -x PATH $PATH $BRAZIL_CLI_BIN
set -x PATH $PATH ~/.config/mybin set -x PATH $PATH /apollo/env/SDETools/bin/ set -x PATH $PATH ~/.cargo/bin/ set -x PATH $PATH ~/.local/bin/ set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH (rustc --print sysroot)/lib
Add Rust libs to ldlibrary path
Add Rust libs to ldlibrary path
fish
mit
BradLyman/ubuntu-setup,BradLyman/ubuntu-setup,BradLyman/ubuntu-setup,BradLyman/ubuntu-setup
571c03bb554f0d155c42b25bf3b5c42c27027b13
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 hostname (hostname) set_color yellow; echo -n ...
# 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 hostname (hostname) set_color yellow; echo -n ...
Add git tag information to fish prompt
meta: Add git tag information to fish prompt Now that I understand how tags work in git, keeping track of the current revision number with the shell prompt is actually very useful.
fish
mit
GloverDonovan/new-start
72b525a1230ebc68920b2db5aec2e52c5ddbfba0
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") 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...
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...
Fix flag order for BSD md5 command
Fix flag order for BSD md5 command
fish
mit
oh-my-fish/plugin-weather
73007369d716a3b18e4ec5186b3300ad81262711
fish/config.fish
fish/config.fish
# Atom set -x ATOM_REPOS_HOME /Projects/2014/ryansobol # exa if command --search exa >/dev/null alias ls exa alias tree "exa -T" end # terraform if command --search docker >/dev/null alias terraform='docker run -it hashicorp/terraform:0.12.1' end
# Atom set -x ATOM_REPOS_HOME /Projects/2014/ryansobol # exa if command --search exa >/dev/null alias ls exa alias tree "exa -T" end # terraform # if command --search docker >/dev/null # alias terraform="docker run -it -v $PWD:/app -w /app hashicorp/terraform:0.12.1" # end
Comment out the Terraform alias
Comment out the Terraform alias
fish
mit
ryansobol/config,ryansobol/config
ad4284fad5644317ee6ec32a131285f18d2f2894
fish/functions/fish_prompt.fish
fish/functions/fish_prompt.fish
function fish_prompt echo switch $IN_NIX_SHELL case pure set_color green echo -n ">>> " case impure set_color yellow echo -n ">> " case '*' set_color cyan echo -n "> " end set_color normal end
function fish_prompt echo switch $IN_NIX_SHELL case pure echo -n "🐡 " case impure echo -n "🐠 " case '*' echo -n "🐟 " end set_color normal end
Use fish emojis as prompt
Fish: Use fish emojis as prompt
fish
unlicense
taecilla/.config,taecilla/.config,taecilla/.config,taecilla/.config
1ca02a02a420d94f2159f8f8ae1817363eac5da1
fish/functions/ruby2md5sum.fish
fish/functions/ruby2md5sum.fish
function ruby2md5sum for arg in $argv set -lx hash (md5sum $arg | cut -d ' ' -f 1) set -lx ruby (md5sum $arg | cut -d ' ' -f 3) mv $ruby $hash end end
Add function for renaming a tarball to its md5sum
Add function for renaming a tarball to its md5sum
fish
mit
sferik/dotfiles,atogle/dotfiles,sferik/dotfiles
8ce2752b871b5b222c4098f00298b74d66040b35
segments/sigstatus.fish
segments/sigstatus.fish
#!/usr/bin/env fish # -*- mode:fish; tab-width:4 -*- function FLSEG_SIGSTATUS if [ $FLINT_STATUS -gt 128 ]; and [ $FLINT_STATUS -lt 160 ] FLINT_CLOSE $FLCLR_STATUS_BG $FLCLR_STATUS_FG printf SIG(kill -l $FLINT_STATUS) else if [ $FLINT_STATUS -eq 126 ] FLINT_CLOSE $FLCLR_STATUS_BG $FLCLR_STATUS_FG printf "...
#!/usr/bin/env fish # -*- mode:fish; tab-width:4 -*- function FLSEG_SIGSTATUS if [ $FLINT_STATUS -gt 128 ]; and [ $FLINT_STATUS -lt 160 ] FLINT_CLOSE $FLCLR_STATUS_BG $FLCLR_STATUS_FG printf SIG(kill -l $FLINT_STATUS | tr '[a-z]' '[A-Z]') else if [ $FLINT_STATUS -eq 126 ] FLINT_CLOSE $FLCLR_STATUS_BG $FLCLR...
Update for OSX, show the SIGNAME in UPPERCASE as `kill -l $SIG` return SIGNAME in lowercase
SIGSTATUS: Update for OSX, show the SIGNAME in UPPERCASE as `kill -l $SIG` return SIGNAME in lowercase
fish
mit
0rax/fishline,jerr0328/fishline
2c8802a3a572a6fad9b2fcca754cb5fe75af0c1f
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...
# 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...
Use test instead of [
Fish: Use test instead of [
fish
unlicense
taecilla/.config,taecilla/.config,taecilla/.config,taecilla/.config
1c66a179d12df4b60e7e5108bc48a1e8853f0886
fish/config.fish
fish/config.fish
set fvim /Applications/FVim.app/Contents/MacOS/FVim if [ -e $fvim ] set --export EDITOR $fvim else set --export EDITOR nvim end # XDG set --export XDG_CONFIG_HOME $HOME/.config set --export XDG_DATA_HOME $HOME/.local/share # Nix set --export NIX_PATH nixpkgs=$HOME/.nix-defexpr/channels set --export NIX_PROFILES /ni...
# Neovim set --local neovim_guis \ /Applications/FVim.app/Contents/MacOS/FVim \ /Applications/goneovim.app/Contents/MacOS/goneovim set --export EDITOR $neovim_guis[(random 1 2)] # XDG set --export XDG_CONFIG_HOME $HOME/.config set --export XDG_DATA_HOME $HOME/.local/share # Nix set --export NIX_PATH nixpkgs=$HOME/....
Add goneovim as available editor
Add goneovim as available editor
fish
unlicense
tssm/.config,tssm/.config,tssm/.config,tssm/.config
7b9e9980eb5a978f99d0f864ae2a08b45e3379f6
fish/.config/fish/config.fish
fish/.config/fish/config.fish
mkdir -p ~/bin ~/npm/bin ~/.cargo/bin ~/.gem/ruby/2.5.0/bin set fish_greeting "" set LANG en_GB.UTF-8 set PATH ~/bin ~/npm/bin ~/.cargo/bin ~/.gem/ruby/2.5.0/bin $PATH set BROWSER chromium set EDITOR nvim set VISUAL nvim # Kill all running containers. alias dockerkill='docker kill (docker ps -q)' # Delete all docker...
mkdir -p ~/bin ~/npm/bin ~/.cargo/bin ~/.gem/ruby/2.5.0/bin set -gx fish_greeting "" set -gx LANG en_GB.UTF-8 set -gx PATH ~/bin ~/npm/bin ~/.cargo/bin ~/.gem/ruby/2.5.0/bin $PATH set -gx BROWSER firefox set -gx EDITOR nvim set -gx VISUAL nvim # Kill all running containers. alias dockerkill='docker kill (docker ps -q...
Use -gx for fish variables
Use -gx for fish variables
fish
unlicense
Wolfy87/dotfiles,Olical/dotfiles,Wolfy87/dotfiles
ddbab79613ef835efe57bcf846901f95916c8079
.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) # peco function peco_select_history if set -q $argv history | peco | read line; commandline $line else history | peco --query $argv | read line; commandline $l...
Add sudo emacs -nw alias as sue
Add sudo emacs -nw alias as sue
fish
mit
kyon-bll/.dotfiles
cd62c6f134d8c69e84fad48792d68b8e9e0b6924
functions/gcv.fish
functions/gcv.fish
function gcv --description="git commit verbose" if test (count (command git status --porcelain | command grep "^[^ ?]")) -eq 0 set_color yellow echo "Nothing to commit..." set_color normal return 1 end set -l arguments set -l cmd "command git diff --cached --name-only" eval "$GISH_DIR/inclu...
Add a `git commit --verbose` wrapper
Add a `git commit --verbose` wrapper
fish
mit
RobertAudi/gish,RobertAudi/gish
ef20294a976676368c96c8192d0bc791bc9a1098
functions/prepend_command.fish
functions/prepend_command.fish
# Taken from # https://github.com/fish-shell/fish-shell/issues/288#issuecomment-158704275 function prepend_command -d "Prepends string to the front of the current command" set -l prepend $argv[1] if test -z "$prepend" echo "prepend_command needs one argument." return 1 end set -l cmd (commandline) ...
Add a function to prepend a string to the front of the current command
Add a function to prepend a string to the front of the current command Taken from https://github.com/fish-shell/fish-shell/issues/288#issuecomment-158704275
fish
mit
simotek/tackle,simotek/tackle
50c0a69a935251872bbfe87437207735e64ef1ab
functions/use_simple_glyph.fish
functions/use_simple_glyph.fish
# FIXME: This doesn't play nice with tmux/screen # I looked into it, but no solution seems readily # available. Going into a vt is a rare occurence # and I do not need tmux there, but it would be # nice to have. function use_simple_glyph --description 'Checks if simple glyphs should be used' test $TERM = "linux" end
# FIXME: This doesn't play nice with tmux/screen # I looked into it, but no solution seems readily # available. Going into a vt is a rare occurence # and I do not need tmux there, but it would be # nice to have. function use_simple_glyph --description 'Checks if simple glyphs should be used' set -q config_use_simple_...
Allow manual toggle of simple glyphs
Allow manual toggle of simple glyphs
fish
mit
wilfriedvanasten/miscvar,wilfriedvanasten/miscvar,wilfriedvanasten/miscvar
540b6216bb9b9afc401353fb046b40f14cccd8f7
conf.d/_mason-trash.fish
conf.d/_mason-trash.fish
function d -d 'Trash' if type -q trash-put > /dev/null set_color $yellow printf 'Trashing file \"%s\"\n' $argv set_color normal trash-put $argv else if type -q trash > /dev/null trash -av $argv else log warn 'No trash program is available' rm -ri $argv end end
function d -d 'Trash' if type -q trash-put > /dev/null set_color $yellow printf 'Trashing file \"%s\"\n' $argv set_color normal trash-put $argv else if type -q trash > /dev/null trash -av $argv else log warn 'No trash program is available' rm -ri $argv end end function dddd -d 'Remo...
Add `dddd` as the alias for `rm -rf`
Add `dddd` as the alias for `rm -rf`
fish
mit
masonwan/fish-config,masonwan/fish-config
91d48c1464333ac2c198b57708b80ab24fd4be32
fish/functions/fish_prompt.fish
fish/functions/fish_prompt.fish
function fish_prompt --description 'Write out the prompt' set -l last_status $status # Just calculate these once, to save a few cycles when displaying the prompt if not set -q __fish_prompt_hostname set -g __fish_prompt_hostname (hostname|cut -d . -f 1) end if not set -q __fish_prompt_normal set -g __fish_...
Set fish prompt to Classic + Git
Set fish prompt to Classic + Git
fish
mit
andrewgarner/dotfiles,andrewgarner/config
129414b49c9815fc811492d8ae4ab40d326fa014
tilde/config/fish/config.fish
tilde/config/fish/config.fish
set -x LANGUAGE "en_US.UTF-8" set -x LC_ALL "en_US.UTF-8" # set the default editor to vim set -x EDITOR 'vim' # use fdfind as the file list for fzf set -x FZF_DEFAULT_COMMAND "fdfind --type file" # Go set -x GOPRIVATE bitbucket.org/advance52 set -x GOPATH $HOME/.go fish_add_path --path --move /home/$USER/.go/bin # ...
set -x LANGUAGE "en_US.UTF-8" set -x LC_ALL "en_US.UTF-8" # set the default editor to vim set -x EDITOR 'vim' # use fdfind as the file list for fzf set -x FZF_DEFAULT_COMMAND "fdfind --type file" # Go set -x GOPATH $HOME/.go fish_add_path --path --move /home/$USER/.go/bin # direnv eval (direnv hook fish) # Ruby se...
Move the GOPRIVATE variable to the individual .envrc files
Move the GOPRIVATE variable to the individual .envrc files
fish
mit
moonglum/dotfiles,moonglum/dotfiles
bdd9e3b5bc6abf174447e9cf28e7ea8c4fc80578
functions/jump.fish
functions/jump.fish
function jump if test (count $argv) -ne 1 echo "Usage: jump <MARK_NAME>" else if test -d $MARKPATH/$argv[1] -a -L $MARKPATH/$argv[1] cd $MARKPATH/$argv[1] cd (pwd -P) else echo "No such mark: $argv[1]" end end end
function jump if test (count $argv) -ne 1 echo "Usage: jump <MARK_NAME>" else if test -d $MARKPATH/$argv[1] -a -L $MARKPATH/$argv[1] cd (readlink $MARKPATH/$argv[1]) else echo "No such mark: $argv[1]" end end end
Use readlink to determine the path
Use readlink to determine the path
fish
mit
oh-my-fish/plugin-jump
12ef93ea9b33d68e24a2debf7eb7d06133b1d6a3
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 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 --icons" alias la="ls -al" # workaround: exa does not support -A option alias ghqg="$GOPATH/bin/get -sh...
## Aliases alias vi="nvim" alias vim="nvim" alias git="hub" alias diff="diff -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 --icons" alias la="ls -al" # workaround: exa does not support -A option alias ghqg="$GOPATH/bin/get -shallow...
Use normal diff command instead of colordiff
Use normal diff command instead of colordiff
fish
mit
tsub/dotfiles,tsub/dotfiles,tsub/dotfiles,tsub/dotfiles,tsub/dotfiles
a3f65e95ff3d73c9442a99348369282602cd18cb
segments/vimode.fish
segments/vimode.fish
#!/usr/bin/env fish # -*- mode:fish; tab-width:4 -*- set FLSYM_VIMODE_DEFAULT "NORMAL" set FLSYM_VIMODE_INSERT "INSERT" set FLSYM_VIMODE_REPLACE "REPLACE" set FLSYM_VIMODE_VISUAL "VISUAL" set FLCLR_VIMODE_DEFAULT_BG green set FLCLR_VIMODE_DEFAULT_FG black set FLCLR_VIMODE_INSERT_BG white set FLCLR_VIMODE_INSERT_F...
Add VIMODE segment to use insted of the default fish_mode_prompt
Add VIMODE segment to use insted of the default fish_mode_prompt
fish
mit
0rax/fishline,jerr0328/fishline
cbd83790492d5fb7275bf6db6b7c7a41bf8e1fe2
functions/reset-password.fish
functions/reset-password.fish
function reset-password --argument user password if empty "$user" "$password" usage reset-password '<user>' '<password>' return (false) end aws iam update-login-profile --user-name $user --password $password --password-reset-required end
Add function to reset password
Add function to reset password
fish
mit
colstrom/piranha,colstrom/shellops-aws
9c94ba5e7d0cb4f331b3b09dee18f37be9bf7d62
test/navigate_clone.fish
test/navigate_clone.fish
set -l repo_path $HOME/github.com/gh_user/gh_repo function teardown -S rm -rf (dirname $repo_path) end test "navigates to cloned project when given user repo" "$HOME/github.com/gh_user/gh_repo" = ( # Quoting required due to fish test bug: https://github.com/fish-shell/fish-shell/issues/2342 mock git 0 "te...
set -l repo_path $HOME/github.com/gh_user/gh_repo function teardown -S rm -rf (dirname $repo_path) end test "navigates to cloned project when given user repo" "$HOME/github.com/gh_user/gh_repo" = ( # Quoting required due to fish test bug: https://github.com/fish-shell/fish-shell/issues/2342 mock git 0 "te...
Test clone navigation for user/repo
:white_check_mark: Test clone navigation for user/repo
fish
mit
dideler/fish-cd-git
a42e077b477fbcdcc4e9c677ce5f50504b540f4c
functions/weather.location.fish
functions/weather.location.fish
function weather.location -d "Get the current geographic location" # Attempt to get our external IP address. if not set ip (__weather_get_ip) echo "No Internet connection or IP service unavailable." return 1 end # Fetch location data based on our IP if not set geoip_data (weather.fetch "https://ipapi...
function weather.location -d "Get the current geographic location" # Attempt to get our external IP address. if not set ip (__weather_get_ip) echo "No Internet connection or IP service unavailable." return 1 end # Fetch location data based on our IP if not set geoip_data (weather.fetch "https://ipapi...
Return early, as soon as the IP is retrieved
Return early, as soon as the IP is retrieved
fish
mit
oh-my-fish/plugin-weather
25592a750a4e8df6925bf2a09353d397a9727ed2
stowed/.config/fish/config.fish
stowed/.config/fish/config.fish
set -gx NPM_DIR "$HOME/.npm-data" set -gx NODE_PATH "$NPM_DIR/lib/node_modules:$NODE_PATH" set -gx PATH ~/bin $NPM_DIR/bin $HOME/.local/bin $PATH mkdir -p ~/bin $NPM_DIR/bin set -gx fish_greeting "" test -d ~/.linuxbrew && eval (~/.linuxbrew/bin/brew shellenv) test -d /home/linuxbrew/.linuxbrew && eval (/home/linuxb...
set -gx NPM_DIR "$HOME/.npm-data" set -gx NODE_PATH "$NPM_DIR/lib/node_modules:$NODE_PATH" set -gx PATH ~/bin $NPM_DIR/bin $HOME/.local/bin $PATH mkdir -p ~/bin $NPM_DIR/bin set -gx fish_greeting "" test -d ~/.linuxbrew && eval (~/.linuxbrew/bin/brew shellenv) test -d /home/linuxbrew/.linuxbrew && eval (/home/linuxb...
Fix my man pages showing errors when opened in nvim
Fix my man pages showing errors when opened in nvim
fish
unlicense
Olical/dotfiles
99a864ca8dbea5162b276c8a15b4d4c873232336
conf.d/_mason-cd.fish
conf.d/_mason-cd.fish
# Go function g -d 'Change directory and look up' set is_okay true if test -z $argv # if no argument cd - else if test -e $argv # if the file exists cd $argv else set is_okay false set_color $red echo 'Cannot find "'$argv'"' set_color normal end end if eval $is_o...
# Go function g -d 'Change directory and look up' if test -z $argv # if no argument cd - else if not test -e $argv # If the file does not exist set_color $red echo '' cd $argv echo '' set_color normal else cd $argv end ls -AF . end alias gh 'g $HOME' alias gconfig 'g $HOME/.config...
Simplify the `g` (cd replacement) function
Simplify the `g` (cd replacement) function
fish
mit
masonwan/fish-config,masonwan/fish-config
9fa455aebac0172f60be75416b004863ad913d20
fish/functions/randombase64.fish
fish/functions/randombase64.fish
function randombase64 -d "Generate random base64 string" set -l n $argv[1]; test -z $n; and set n 12 # https://en.wikipedia.org/wiki/Birthday_problem#Probability_table dd if=/dev/urandom bs=1 count=$n ^/dev/null | base64 | cut -b -$n end
function randombase64 -d "Generate random base64 string" set -l n $argv[1]; test -z $n; and set n 16 # https://en.wikipedia.org/wiki/Birthday_problem#Probability_table dd if=/dev/urandom bs=1 count=$n ^/dev/null | base64 | tr -d "[/+]" | cut -b -$n end
Remove /, + from output
Remove /, + from output
fish
apache-2.0
ithinkihaveacat/dotfiles,ithinkihaveacat/dotfiles,ithinkihaveacat/dotfiles
6c885d48f4b6803cdd6ddad31e58159e70cc5284
key_bindings.fish
key_bindings.fish
if test "$FZF_LEGACY_KEYBINDINGS" -eq 1 bind \ct '__fzf_find_file' bind \cr '__fzf_reverse_isearch' bind \ec '__fzf_cd' bind \eC '__fzf_cd_with_hidden' if bind -M insert >/dev/null 2>/dev/null bind -M insert \ct '__fzf_find_file' bind -M insert \cr '__fzf_reverse_isearch' bi...
if test "$FZF_LEGACY_KEYBINDINGS" -eq 1 bind \ct '__fzf_find_file' bind \cr '__fzf_reverse_isearch' bind \ec '__fzf_cd' bind \eC '__fzf_cd_with_hidden' if bind -M insert >/dev/null 2>/dev/null bind -M insert \ct '__fzf_find_file' bind -M insert \cr '__fzf_reverse_isearch' bi...
Make FZF_COMPLETE use a proper if statement
Make FZF_COMPLETE use a proper if statement
fish
mit
fisherman/fzf
9e58b8b1aaf85d88c695500fe652183cf37d1d5a
functions/fish_right_prompt.fish
functions/fish_right_prompt.fish
function fish_right_prompt set -l status_color yellow set -l status_char "😄 " if test $status -ne 0 set status_color red set status_char "😡 " end if test "$CMD_DURATION" -gt 50 set -l duration (printf $CMD_DURATION | humanize_duration) print_color $status_color "$...
function fish_right_prompt set -l status_color yellow set -l status_char "😄 " if test $status -ne 0 set status_color red set status_char "😡 " end if test "$CMD_DURATION" -gt 200 set -l duration (printf $CMD_DURATION | humanize_duration) print_color $status_color "...
Increase minimum command duration to 200ms
Increase minimum command duration to 200ms
fish
mit
eliasmeire/fish-simple
b2df5e4a515bc281687641e86fc7f70047de2baa
home/.config/fish/functions/fish_right_prompt.fish
home/.config/fish/functions/fish_right_prompt.fish
function fish_right_prompt --description 'Write out the prompt' set -l last_status $status if not set -q __fish_git_prompt_show_informative_status set -g __fish_git_prompt_show_informative_status 1 end if not set -q __fish_git_prompt_hide_untrackedfiles set -g __fish_git_prompt_hide_untrackedfiles 1...
Add right prompt to show git status
Add right prompt to show git status
fish
mit
s-osa/dotfiles
9fcfdba103b1aea0c991558aa8f2e3b0fd9f7fe9
functions/bucket-exists.fish
functions/bucket-exists.fish
function bucket-exists --argument-names name print-status s3/bucket-exists $name aws s3api list-buckets | jq -e ".Buckets[] | select(.Name == \"$name\")" >/dev/null ^/dev/null end
Add function to check if bucket exists
Add function to check if bucket exists
fish
mit
colstrom/piranha,colstrom/shellops-aws
ec5f828fbc443318f7ceed4d5c6f2c8f39bd736a
functions/detach-policy.fish
functions/detach-policy.fish
function detach-policy --argument type name policy if empty "$type" "$name" "$policy" usage detach-policy '<type>' '<name>' '<policy>' return (false) end print-status detach-policy "$argv" aws iam detach-$type-policy --$type-name "$name" --policy-arn (lookup-policy "$policy") end
Add function to detach a policy from a thing
Add function to detach a policy from a thing
fish
mit
colstrom/piranha,colstrom/shellops-aws
738c2d57b15f5d9cd114ed312714f324855a5fe6
.config/fish/functions/swift_releases.fish
.config/fish/functions/swift_releases.fish
function swift_releases \ --description='Check for Swift releases' \ --argument-names swift_version days set -l branch_name development if test -n "$swift_version" set swift_version "-$swift_version" set branch_name "swift$swift_version-branch" end if test -z "$days" ...
function swift_releases \ --description='Check for Swift releases' \ --argument-names swift_version days set -l branch_name development if test $swift_version = "trunk" # use default branch name # clear swift version set -e swift_version else if test -n "$swift_vers...
Add special 'trunk' version value so that days can be specified
Add special 'trunk' version value so that days can be specified
fish
mit
phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles
a19f50df0b386d8a54ee0269b6dfa310abef4d01
fish/functions/git_exists.fish
fish/functions/git_exists.fish
function git_exists -d 'Checks if git is present' # Use which instead of type. We always use command to execute # git and this is much, much cheaper which git 2> /dev/null >/dev/null end
function git_exists -d 'Checks if git is present' # Use command -s instead of type. which would also # work, but a builtin must work command -s git 2> /dev/null >/dev/null end
Use command -s instead of which
Use command -s instead of which
fish
mit
wilfriedvanasten/miscvar,wilfriedvanasten/miscvar,wilfriedvanasten/miscvar
de5bf62e5b23f7368efffdda2d523dd1ab83d27d
functions/src-hilite-lesspipe.fish
functions/src-hilite-lesspipe.fish
function src-hilite-lesspipe test -f $source_highlight_style_file; and set stylefile $source_highlight_style_file; or set stylefile esc.style for source in $argv switch "$source" case "*ChangeLog" "*changelog" source-highlight --failsafe -f esc --lang-def=changelog.lang --sty...
function src-hilite-lesspipe test -f $source_highlight_style_file; and set stylefile $source_highlight_style_file; or set stylefile esc.style for source in $argv switch "$source" case "*ChangeLog" "*changelog" command source-highlight --failsafe -f esc --lang-def=changelog.la...
Add support for ubuntu lesspipe
Add support for ubuntu lesspipe
fish
mit
decors/fish-source-highlight
f83b53833afca4a41e47550357d664a978f0c343
.config/fish/functions/vdiff.fish
.config/fish/functions/vdiff.fish
function vdiff -d "Vim diff the same file between directories" set --local lhs (realpath $argv[2]) set --local rhs (realpath $argv[1]/$argv[2]) echo "Diffing '$lhs' with '$rhs'" vimdiff $lhs $rhs end
Add function to compare the same file between dirs
[Fish] Add function to compare the same file between dirs
fish
mit
JDevlieghere/dotfiles,JDevlieghere/dotfiles,JDevlieghere/dotfiles
e5f4c6d73e3226dfcbe2ca72346d321867a1f3ee
functions/add-user-to-group.fish
functions/add-user-to-group.fish
function add-user-to-group --argument-names user group print-status iam/add-user-to-group "$user $group" aws iam add-user-to-group --user-name $user --group-name $group end
Add function to add a user to a group
Add function to add a user to a group
fish
mit
colstrom/piranha,colstrom/shellops-aws
03f7fe4f3f3422039cb21189e679b4b8a7aeac7b
functions/fish_right_prompt.fish
functions/fish_right_prompt.fish
function _do_prompt_git git_exists; and git_is_git_repo end function fish_right_prompt if set -q VIRTUAL_ENV # Let's hope python won't break this way to read the version set -l python_version (python --version | sed -e 's/Python //g') set -l virtual_env_short (shorten_path $VIRTUAL_ENV) set_color -...
function fish_right_prompt if set -q VIRTUAL_ENV # Let's hope python won't break this way to read the version set -l python_version (python --version | sed -e 's/Python //g') set -l virtual_env_short (shorten_path $VIRTUAL_ENV) set_color -b yellow set_color black echo -n "$virtual_env_short@$p...
Remove unused function in right prompt
Remove unused function in right prompt
fish
mit
wilfriedvanasten/miscvar,wilfriedvanasten/miscvar,wilfriedvanasten/miscvar
974507a4401b2775b74076b00970153119be43ea
themes/simotek/fish_greeting.fish
themes/simotek/fish_greeting.fish
# simotek prompt theme, by Simon Lees <http://github.com/simotek/> function fish_greeting --description 'Print the shell greeting' colors set -l c_n '\x1b[94m' set -l c_w '\x1b[93m' set -l location (printf "\x1b[94mWelcome to \x1b[95m%s" (hostname)) set -l system (printf "\x1b[94mRunning \x1b[95m%...
# simotek prompt theme, by Simon Lees <http://github.com/simotek/> function fish_greeting --description 'Print the shell greeting' colors set -l location (printf "%sWelcome to %s%s" $smtk_clr_blue_h $smtk_clr_purple_h (hostname)) set -l system (printf "%sRunning %s%s%s on %s%s" $smtk_clr_blue_h $smtk_clr_...
Use defined env vars for colors
Use defined env vars for colors
fish
mit
simotek/tackle,simotek/tackle
5f535744555113b77e768ae62a0b4c2fb5529b75
fish/functions/fish_right_prompt.fish
fish/functions/fish_right_prompt.fish
function fish_right_prompt -d "Show right prompt" set last_status "$status" if math "$last_status > 0" >/dev/null set_color red else set_color green end echo -n "$last_status" set_color blue date "+%H%M" | tr -d '\n' set_color magenta date "+%h%d" | tr -d '\n' set...
function fish_right_prompt -d "Show right prompt" set last_status "$status" if test "$last_status" -gt 0 >/dev/null set_color red else set_color green end echo -n "$last_status" set_color blue date "+%H%M" | tr -d '\n' set_color magenta date "+%h%d" | tr -d '\n' s...
Fix broken right status prompt
Fish: Fix broken right status prompt
fish
mit
justuswilhelm/pufferfish,justuswilhelm/pufferfish
517fef23ff6b675c5253313221f63572f4371cb0
fish/functions/config_brew.fish
fish/functions/config_brew.fish
function config_brew if contains $argv "clean" brew bundle cleanup --global --force end if not type brew >/dev/null ^&1 echo "Install brew" return 1 end brew tap "homebrew/bundle" brew update brew bundle --global brew cleanup brew cask cleanup end
function config_brew if contains $argv "clean" brew bundle cleanup --global --force end if not type brew >/dev/null ^&1 echo "Install brew" return 1 end brew tap "homebrew/bundle" brew update brew bundle --global brew cleanup -s brew cask cleanup end
Make brew cleanup more intense
Fish: Make brew cleanup more intense
fish
mit
justuswilhelm/pufferfish,justuswilhelm/pufferfish
24dea564b828b500aaf39a09083039aed3407f37
fish_prompt.fish
fish_prompt.fish
# name: eclm 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 yellow (s...
# name: eclm 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 yellow (s...
Improve last command status indicator
Improve last command status indicator
fish
mit
oh-my-fish/theme-eclm
a0b2d72bb27614e05d49ce1dda361c1d03ac0e4a
fish/.config/fish/config.fish
fish/.config/fish/config.fish
set fish_greeting "" set LANG en_GB.UTF-8 set PATH ~/bin ~/npm/bin $PATH set BROWSER chromium set EDITOR nvim set VISUAL nvim # Kill all running containers. alias dockerkill='docker kill (docker ps -q)' # Delete all docker images and containers. alias dockernuke='docker rm (docker ps -a -q); docker rmi -f (docker ima...
set fish_greeting "" set LANG en_GB.UTF-8 set PATH ~/bin ~/npm/bin $PATH set BROWSER chromium set EDITOR nvim set VISUAL nvim # Kill all running containers. alias dockerkill='docker kill (docker ps -q)' # Delete all docker images and containers. alias dockernuke='docker rm (docker ps -a -q); docker rmi -f (docker ima...
Add workaround for emacs terminals
Add workaround for emacs terminals
fish
unlicense
Wolfy87/dotfiles,Wolfy87/dotfiles,Olical/dotfiles
376a893fa326864cbc8bda0c8be12c05f5f9d581
functions/parent.fish
functions/parent.fish
function parent --argument-names key limit if test -z "$key" print-status usage 'parent <key> [limit]' end if test -z "$limit" set limit 1 end if test $limit -gt 1 parent (dirname $key) (math $limit - 1) else dirname $key end end
function parent --argument-names key limit if test -z "$key" print-status usage 'parent <key> [limit]' return -1 end if test -z "$limit" set limit 1 end if test $limit -gt 1 parent (dirname $key) (math $limit - 1) else dirname $key end end
Abort if no arguments given
Abort if no arguments given
fish
mit
colstrom/shellops-aws,colstrom/piranha
6518fd5664a07cce9dec1236ca604abadf56d610
init.fish
init.fish
function init -a path --on-event init_fonts set -g FONT_MOCK_INDEX "$path/mock_index.json" set -g FONT_MOCK_SHOW "$path/mock_show.json" set -q XDG_DATA_HOME; or set -l XDG_DATA_HOME "$HOME/.local" set -q FONTS_PATH; or set -g FONTS_PATH "$XDG_DATA_HOME/share/fonts" set -g FONTS_CONFIG "$OMF_CONFI...
function init -a path --on-event init_fonts set -g FONT_MOCK_INDEX "$path/mock_index.json" set -g FONT_MOCK_SHOW "$path/mock_show.json" if not set -q FONTS_PATH if test 'Darwin' = (uname) set -g FONTS_PATH "$HOME/Library/Fonts" else set -q XDG_DATA_HOME; or set -l XDG_DATA_HOME "$HOME/.local"...
Support OS X user font path
Support OS X user font path
fish
mit
derekstavis/plugin-fonts
65e5c731504f16ba5aec427e768cb48b4a09f014
src/shell/config/fish/config.fish
src/shell/config/fish/config.fish
# Aliases alias cat="bat" alias flushdns="sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder" alias ll="ls -lAh" alias ls="gls --color" alias v="nvim" # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Configure MariaDB set PATH /usr/local/opt/mariadb/bin $PATH # - - - - -...
# Aliases alias cat="bat" alias flushdns="sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder" alias ll="ls -lAh" alias ls="gls --color" alias v="nvim" # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Configure MariaDB set PATH /usr/local/opt/mariadb/bin $PATH # - - - - -...
Include Homebrew’s executables path in $PATH
Include Homebrew’s executables path in $PATH
fish
mit
michelegera/dotfiles
20111b0cdb4600620bb9f2d8e06d329d4b4c4e79
completions/cd.fish
completions/cd.fish
function __fish_complete_plugin_cd -d "Completions for the plugin-cd command" set -l token (commandline -ct) set -l last_two_char (echo $token | sed 's/.*\(..\)/\1/') if test "$last_two_char" = ".." echo "$token/" else set -l base (echo $token | sed -e 's@^\(.*\)/[^/]*$@\1/@') set -l resolved_path (e...
function __fish_complete_plugin_cd -d "Completions for the plugin-cd command" set -l token (commandline -ct) set -l last_two_char (echo $token | sed 's/.*\(..\)/\1/') if test "$last_two_char" = ".." echo "$token/" else set -l base (echo $token | rev | cut -d/ -s -f2- | rev ) test -n $base; and set -l...
Fix the complete error when file not exist
Fix the complete error when file not exist
fish
mit
oh-my-fish/plugin-cd
e417f1a863b2b69ce50c7bbf83345d24428261d2
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]" ...
Implement shell functions for fish.
Implement shell functions for fish.
fish
mit
charlesbjohnson/dotfiles,charlesbjohnson/dotfiles
80740f9876ec67a7a712861418a5c5e07e32c24f
asdf.fish
asdf.fish
#!/usr/bin/env fish set -x ASDF_DIR (dirname (status -f)) set -l asdf_data_dir ( if test -n "$ASDF_DATA_DIR"; echo $ASDF_DATA_DIR; else; echo $HOME/.asdf; end) # Add asdf to PATH set -l asdf_bin_dirs $ASDF_DIR/bin $ASDF_DIR/shims $asdf_data_dir/shims for x in $asdf_bin_dirs set PATH $x (string match -v $x $PAT...
#!/usr/bin/env fish set -x ASDF_DIR (dirname (status -f)) set -l asdf_data_dir ( if test -n "$ASDF_DATA_DIR"; echo $ASDF_DATA_DIR; else; echo $HOME/.asdf; end) # Add asdf to PATH set -l asdf_bin_dirs $ASDF_DIR/bin $ASDF_DIR/shims $asdf_data_dir/shims for x in $asdf_bin_dirs if test -d $x set PATH $x (echo ...
Fix setting PATH to work with fish 2.2
Fix setting PATH to work with fish 2.2
fish
mit
asdf-vm/asdf,Stratus3D/asdf
c0433c1f73a40c7f94aee586e36c608b3a653cdc
functions/real-users-in-group.fish
functions/real-users-in-group.fish
function real-users-in-group --argument group if empty "$group" usage real-users-in-group '<group>' return (false) end print-status real-users-in-group "$argv" aws iam get-group --group-name "$group" | jq --raw-output .Users[].UserName | sort end
Add function to find real users in a group
Add function to find real users in a group
fish
mit
colstrom/piranha,colstrom/shellops-aws
1fadc2ee3ec706926532183beaf2cab60fd75297
set_colors_monokai.fish
set_colors_monokai.fish
function set_colors_monokai # Colors: set fish_color_normal normal # the default color set fish_color_command F92672 # the color for commands set fish_color_quote E6DB74 # the color for quoted blocks of text set fish_color_redirection 66D9EF # the color for IO redirections set fish_color_end F92672 # the color fo...
Add command to set fish color scheme to monokai
Add command to set fish color scheme to monokai
fish
mit
merlinthered/fish-functions
fed75055a80bcc54bea98d998cbefd2e2fd08e25
fish/.config/fish/functions/pacman-recent.fish
fish/.config/fish/functions/pacman-recent.fish
function pacman-recent --description="Show last 25 upgraded/installed packages" command tac /var/log/pacman.log | head -n 1000 | grep --ignore-case --extended-regexp 'installed|upgraded' | tail --lines=25 end
function pacman-recent --description="Show last 25 upgraded/installed packages" command tac /var/log/pacman.log | head -n 1000 | grep --ignore-case --extended-regexp 'installed|upgraded' | tail --lines=50 end
Increase to last 50 items
Increase to last 50 items
fish
mit
ammgws/dotfiles,ammgws/dotfiles,ammgws/dotfiles
b2c2f0d0b8cd5720816c22a3241ffc9b7a61595f
fish/.config/fish/conf.d/prompt.fish
fish/.config/fish/conf.d/prompt.fish
function fish_prompt # save exit status so it's not clobbered by successful commands below set -l exit_code $status set -l hostname_prefix "" set -l directory_prefix "" # if we're not who we logged in as, display the username if [ (whoami) != "mpcsh" ] set hostname_prefix "at " set directory_prefix "in " ...
function fish_prompt # save exit status so it's not clobbered by successful commands below set -l exit_code $status set -l hostname_prefix "" set -l directory_prefix "" # if we're not who we logged in as, display the username if [ $USER != "mpcsh" ] set hostname_prefix "at " set directory_prefix "in " if ...
Speed up fish launch (remove command-not-found)
Speed up fish launch (remove command-not-found)
fish
bsd-3-clause
alpinebutterfly/dotfiles,mpcsh/dotfiles,alpinebutterfly/dotfiles
95cf875857d090eaec41e9b893695f5a2a15ac79
functions/_pure_set_color.fish
functions/_pure_set_color.fish
function _pure_set_color \ --description 'Set color' \ --argument-names var set --local color $var if set -q $var set color $$var end set --local result (set_color $color) echo "$result" end
function _pure_set_color \ --description 'Set color' \ --argument-names var set --local color $var # Backwards compatibility for colors defined as control sequencies instead of fish colors if not string match --quiet --all --regex '\e\[[^m]*m' $color[1] and set -q $color set col...
Read escape sequences from color variables for backwards compatibility
Read escape sequences from color variables for backwards compatibility
fish
mit
rafaelrinaldi/pure
b15df41bce68cf1f2d4596c1724808e06f70835c
fish/functions/up.fish
fish/functions/up.fish
function up --description "Starts a php:apache Docker container using the current path on a random port" set -l port (shuf -i 8000-8099 -n 1) set -l cdir (pwd | string replace 'cygdrive' '') subl . cygstart http://docker:{$port} docker run --rm -v $cdir:/var/www/html -p {$port}:80 php:apache end
function up --description "Starts a php:apache Docker container using the current path on a random port or the Docker compose" subl . if test -e ./docker-compose.yml cygstart http://docker:{$argv} docker-compose up else set -l cdir (pwd | string replace 'cygdrive' '') set -l...
Use Docker composer if there is a file with the given port
Use Docker composer if there is a file with the given port
fish
mit
leocavalcante/utils,leocavalcante/utils
15d0d04ee15b748c3196eecca7ed60f3e0ae5055
config/fish/config.fish
config/fish/config.fish
fish_vi_key_bindings for word in "$HOME/"{bin,.local/bin,go/bin} if not contains $word $PATH set PATH $word $PATH end end set -x GOPATH "$HOME/go" set fish_complete_path "$HOME/git/github.fish-pip-completion" $fish_complete_path switch (uname) case Linux source /usr/share/autojump/autoju...
fish_vi_key_bindings for word in "$HOME/"{bin,.local/bin,go/bin,node_modules/.bin} if not contains $word $PATH set PATH $word $PATH end end set -x GOPATH "$HOME/go" set fish_complete_path "$HOME/git/github.fish-pip-completion" $fish_complete_path switch (uname) case Linux source /usr/sha...
Add npm installed bin directory
feat: Add npm installed bin directory
fish
mit
e4r7hbug/dotfiles,e4r7hbug/dotfiles
db3c4a7c424e3c0592668d0439cf44c5ec4629c3
fish_right_prompt.fish
fish_right_prompt.fish
function get_git_status -d "Gets the current git status" if command git rev-parse --is-inside-work-tree >/dev/null 2>&1 set -l dirty (command git status -s --ignore-submodules=dirty | wc -l | sed -e 's/^ *//' -e 's/ *$//' 2> /dev/null) set -l ref (command git symbolic-ref HEAD | sed "s-refs/heads/--" | sed ...
function get_git_status -d "Gets the current git status" if command git rev-parse --is-inside-work-tree >/dev/null 2>&1 set -l dirty (command git status -s --ignore-submodules=dirty | wc -l | sed -e 's/^ *//' -e 's/ *$//' 2> /dev/null) set -l ref (command git symbolic-ref --short HEAD 2> /dev/null ; or comma...
Add commit hash to right prompt when deattached
Add commit hash to right prompt when deattached
fish
mit
oh-my-fish/theme-cmorrell.com
90d78128cb140178379f0b9ccf4daae1c32b8a1b
config/fish/functions/review_end.fish
config/fish/functions/review_end.fish
function review_end set current_branch (git branch | ag -Q \* | cut -f 2 -d ' ') if [ $current_branch = "master" ] echo "Already on master" else git co master git branch -D $current_branch end end
function review_end set current_branch (git branch | ag -Q \* | cut -f 2 -d ' ') if [ $current_branch = "main" ] echo "Already on main" else git co main git branch -D $current_branch end end
Switch to main by default
Switch to main by default
fish
mit
jacegu/dotfiles,jacegu/dotfiles
3296732893c71c994eee19dbee6700ac55aead8b
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
ovstetun/oh-my-fish
81a37f47b51b8343982949e13171cc048fe0a509
.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 - -...
Add a function to show the contents of various compressed file formats
Add a function to show the contents of various compressed file formats
fish
mit
aawc/dotfiles,aawc/dotfiles
ccb630ad5eccbe2f2d17269d86f45bcd8279393c
conf.d/_mason-cd.fish
conf.d/_mason-cd.fish
# Go function g -d 'Change directory and look up' set is_okay true if test -z $argv cd - else if test -e $argv cd $argv else set is_okay false set_color $red echo 'Cannot find "'$argv'"' set_color normal end end if eval $is_okay ls -AF . end end alias gh 'g...
# Go function g -d 'Change directory and look up' set is_okay true if test -z $argv cd - else if test -e $argv cd $argv else set is_okay false set_color $red echo 'Cannot find "'$argv'"' set_color normal end end if eval $is_okay ls -AF . end end alias gh 'g...
Use exa for list current directory is possible
Use exa for list current directory is possible
fish
mit
masonwan/fish-config,masonwan/fish-config
e9b4a52905a6e77ced006f5897204b4b9525c9ce
.config/fish/functions/setup-mac.fish
.config/fish/functions/setup-mac.fish
function setup-mac --description "Setup script for OS X" function _setup_homebrew if not type brew >/dev/null ruby -e (curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install) brew update end echo "homebrew installed" end function _setup_rbenv if not type rbenv >...
function setup-mac --description "Setup script for OS X" function _setup_homebrew if not type brew >/dev/null ruby -e (curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install) brew update end echo "homebrew installed" end function _setup_rbenv if not type rbenv >...
Print reminders for tasks easier done manually
Print reminders for tasks easier done manually
fish
mit
dideler/dotfiles,dideler/dotfiles
b250404a59068ee7556c08bdf967e70efa0629e9
test/fry-install_spec.fish
test/fry-install_spec.fish
. helper.fish function setup_tank function ruby-build switch $argv[1] case '--definitions' echo 'known' case '*' echo "ruby-build $argv" end end end function clean_tank functions -e which functions -e ruby-build end function it_returns_status_1_without_ruby-build functi...
Add tests for fry install
Add tests for fry install
fish
mit
terlar/fry
2779c49c7fa75c4520d1499872b43092bac0bbda
gpg-init.fish
gpg-init.fish
# Initializes GPG agent on OSX, for signing Git commits, etc. function gpg-init if not begin # Is the agent running already? Does the agent-info file exist, and if so, # is there a process with the pid given in the file? [ -f ~/.gnupg/.gpg-agent-info ] and kill -0 (cut -d : -f ...
function gpg-init if not begin # Is the agent running already? Does the agent-info file exist, and if so, # is there a process with the pid given in the file? [ -f ~/.gnupg/.gpg-agent-info ] and kill -0 (cut -d : -f 2 ~/.gnupg/.gpg-agent-info) ^/dev/null end # no, it ...
Kill GPG agent before starting a new one
Kill GPG agent before starting a new one
fish
bsd-3-clause
aapit/fish-shell-functions,aapit/fish-shell-functions
97e8fe8cef162018e28905e4c8fc481f6db59eb6
functions/keys-for-secret.fish
functions/keys-for-secret.fish
function keys-for-secret --argument key trace (status --current-filename) $argv if empty $key usage keys-for-secret '<key>' return 23 end if is-secret $key get $key | gpg --batch --list-packets --quiet | string match ":pubkey *" | awk '{ print $NF }' else false ...
Add function to find corresponding key for secrets
Add function to find corresponding key for secrets
fish
mit
colstrom/shellops-aws,colstrom/piranha
440bb36b77aad5216fdd0aa73c08b6e36ded7ef6
config/fish/config.fish
config/fish/config.fish
# Path to Oh My Fish install. set -gx OMF_PATH "/home/e4r7hbug/.local/share/omf" # Customize Oh My Fish configuration path. #set -gx OMF_CONFIG "/home/e4r7hbug/.config/omf" # Load oh-my-fish configuration. source $OMF_PATH/init.fish fish_vi_mode set PATH \ "$HOME/bin" \ "$HOME/.local/bin" \ "$HOME/Libra...
# Path to Oh My Fish install. set -gx OMF_PATH "/home/e4r7hbug/.local/share/omf" # Customize Oh My Fish configuration path. #set -gx OMF_CONFIG "/home/e4r7hbug/.config/omf" # Load oh-my-fish configuration. source $OMF_PATH/init.fish fish_vi_mode set PATH \ "$HOME/bin" \ "$HOME/.local/bin" \ "$HOME/Libra...
Add pip completion to fish
feat: Add pip completion to fish
fish
mit
e4r7hbug/dotfiles,e4r7hbug/dotfiles
ef4ffc622049ec41d6fa120f498d73fe8b14018e
fish/functions/vi_key_bindings.fish
fish/functions/vi_key_bindings.fish
function vi_key_bindings fish_vi_key_bindings bind \cl clear 'commandline -f repaint' bind -M insert \cl clear 'commandline -f repaint' end
function vi_key_bindings fish_vi_key_bindings bind -M insert \ca beginning-of-line bind -M insert \ce end-of-line bind -M insert \cf accept-autosuggestion end
Update fish 2.4.0 vi insert mode bindings
[fish] Update fish 2.4.0 vi insert mode bindings
fish
mit
vially/dotconfig
e8cf411b07784d8ee36e390eae643f14653a4c80
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 {real_status} if [ $real_status -ne 0 ] _prompt_wrap_text $real_status brred end end function _prompt_git_component if git rev-parse --git-dir > /dev/null ^ /dev/null...
function _prompt_dir_component _prompt_wrap_text (abbreviated_working_directory) brblue end function _prompt_err_component --argument-names {real_status} if [ $real_status -ne 0 ] _prompt_wrap_text $real_status brred end end function _prompt_git_component if git rev-parse --git-dir >/dev/null ^&1 set ...
Add ability to display tag name or short SHA
Add ability to display tag name or short SHA
fish
mit
lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles,lee-dohm/dotfiles
a0ce7b48146f21daa079c562549da02715c785a2
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
ovstetun/oh-my-fish
d91d0002bf70abde959f29151368c48ca357cc77
src/commands/setup_extraterm_fish.fish
src/commands/setup_extraterm_fish.fish
# This file should be sourced from your ~/.config/config.fish file. # # Copyright 2014-2016 Simon Edwards <simon@simonzone.com> # # This source code is licensed under the MIT license which is detailed in the LICENSE.txt file. # if test -n "$EXTRATERM_COOKIE" echo "Setting up Extraterm support." # Put our...
# This file should be sourced from your ~/.config/config.fish file. # # Copyright 2014-2016 Simon Edwards <simon@simonzone.com> # # This source code is licensed under the MIT license which is detailed in the LICENSE.txt file. # if test -n "$EXTRATERM_COOKIE" echo "Setting up Extraterm support." # Put our...
Fix for the fish shell integration and the path setting. The problem only affected fish on cygwin.
Fix for the fish shell integration and the path setting. The problem only affected fish on cygwin.
fish
mit
sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm
b7adbdbf85a4319ce89b5a6ab70a121364f5ee6f
.config/fish/config.fish
.config/fish/config.fish
# Set the prompt. function fish_prompt --description "Write out the prompt" echo -n "$USER:" set_color $fish_color_cwd echo -ns (prompt_pwd) set_color normal echo -ns '> ' end # Shortcuts function sz --description "Calculate the size of a directory" command du -sh $argv end function upd --description "Updates ho...
# Set the prompt. function fish_prompt --description "Write out the prompt" echo -n "$USER:" set_color $fish_color_cwd echo -n (prompt_pwd) set_color normal echo -n '> ' end # Shortcuts function sz --description "Calculate the size of a directory" command du -sh $argv end function upd --description "Updates home...
Change echo options for prompt to work in vagrant
Change echo options for prompt to work in vagrant
fish
mit
mk12/dotfiles
9f59cbf5ef43f0b0a0e6eb9ae1965bac003fc4b9
.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...
Increase the zubora function visibility
Increase the zubora function visibility
fish
mit
kyon-bll/.dotfiles
8749c5ef4734fab099bff5143f0d42a232f39a91
rc/goog/use_goma.fish
rc/goog/use_goma.fish
#!/usr/bin/fish set -x DISPLAY=:20.0 set -x GOMA_DIR=$HOME/goma python $GOMA_DIR/goma_ctl.py ensure_start
#!/usr/bin/fish set -x DISPLAY :20.0 set -x GOMA_DIR $HOME/goma python $GOMA_DIR/goma_ctl.py ensure_start
Use proper fish shell syntax for export
Use proper fish shell syntax for export
fish
mit
aawc/dotfiles,aawc/dotfiles
87a0b34d25217060e8a5b928e5f8faf79e6fe02b
.config/fish/config.fish
.config/fish/config.fish
#!/usr/bin/env fish set fish_greeting set -x GOPATH $HOME/Code/gopkg set -x MAILDIR $HOME/mail set -x EDITOR vim set -x GEM_HOME $HOME/.local/gems/(ruby -v | awk '{print $2}') set -x GEM_PATH $GEM_HOME set -x HOMEBREW_BUILD_FROM_SOURCE 1 set -x COCOAPODS_DISABLE_STATS 1 set -x PATH $GEM_HOME/bin $HOME/bin $GOPATH/bin ...
#!/usr/bin/env fish set fish_greeting set -x GOPATH $HOME/Code/gopkg set -x MAILDIR $HOME/mail set -x EDITOR vim set -x GEM_HOME $HOME/.local/gems/(ruby -v | awk '{print $2}') set -x GEM_PATH $GEM_HOME set -x HOMEBREW_BUILD_FROM_SOURCE 1 set -x COCOAPODS_DISABLE_STATS 1 set -x PATH /usr/bin $GEM_HOME/bin $HOME/bin \ ...
Set /usr/bin first in PATH
[fish] Set /usr/bin first in PATH - Fix intermittent clang issues with brewed llvm “stdarg.h not found”
fish
bsd-2-clause
kattrali/dotfiles,kattrali/dotfiles,kattrali/dotfiles
d75f47a0c73611a9dc24e77a072e6f83a80de594
tests/test_shells/input.fish
tests/test_shells/input.fish
set POWERLINE_COMMAND "$PWD/scripts/powerline -p $PWD/powerline/config_files" set POWERLINE_COMMAND "$POWERLINE_COMMAND -t default_leftonly.segment_data.hostname.args.only_if_ssh=false" set POWERLINE_COMMAND "$POWERLINE_COMMAND -c ext.shell.theme=default_leftonly" set VIRTUAL_ENV source powerline/bindings/fish/powerlin...
set POWERLINE_COMMAND "$PWD/scripts/powerline -p $PWD/powerline/config_files" set POWERLINE_COMMAND "$POWERLINE_COMMAND -t default_leftonly.segment_data.hostname.args.only_if_ssh=false" set POWERLINE_COMMAND "$POWERLINE_COMMAND -c ext.shell.theme=default_leftonly" set VIRTUAL_ENV . powerline/bindings/fish/powerline.fis...
Use `.` for sourcing in fish
Use `.` for sourcing in fish It appears that travis uses fish version without this command. Though `.` is deprecated on new versions it is still supported for backwards compatibility, thus may be used here.
fish
mit
bartvm/powerline,cyrixhero/powerline,areteix/powerline,IvanAli/powerline,Luffin/powerline,firebitsbr/powerline,blindFS/powerline,bartvm/powerline,darac/powerline,prvnkumar/powerline,junix/powerline,wfscheper/powerline,seanfisk/powerline,xxxhycl2010/powerline,DoctorJellyface/powerline,prvnkumar/powerline,dragon788/power...
b84d0f48d7b13e1224141760502e7d37e137f807
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 shell_plus`
Add alias for `python manage.py shell_plus`
fish
bsd-3-clause
jonathanchu/dotfiles,jonathanchu/dotfiles,jonathanchu/dotfiles
1bae53a0b2d272a85b5ecf3f300e0e4e79187ca9
.config/fish/functions/fish_prompt.fish
.config/fish/functions/fish_prompt.fish
function __parse_git_branch git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' end function fish_prompt --description 'Write out the prompt' # Just calculate this once, to save a few cycles when displaying the prompt if not set -q __fish_prompt_hostname set -g __fish_prompt_hostname (hostname|c...
function __parse_git_branch git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' end function fish_prompt --description 'Write out the prompt' # Just calculate this once, to save a few cycles when displaying the prompt if not set -q __fish_prompt_hostname set -g __fish_prompt_hostname ...
Add right prompt to fish config
Add right prompt to fish config Currently simply displays the current date and time, but could potentially be used in any number of ways.
fish
mit
rajadain/dotfiles
95e5a004fae3bef99008194eb8148b183c5c2f8e
.config/fish/functions/update-casks.fish
.config/fish/functions/update-casks.fish
function update-casks -d "Update, upgrade, and cleanup Homebrew casks" command brew cask update; and brew cu; and brew cask cleanup; and brew cask doctor end
function update-casks -d "Update, upgrade, and cleanup Homebrew casks" command brew cask update; and brew cu; and brew cask cleanup; and brew cask doctor # Remove duplicates in the “Open With” menu /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -d...
Remove duplicates in `Open With` menu.
Remove duplicates in `Open With` menu.
fish
mit
FluxAugur/mac-os-dotfiles,FluxAugur/mac-os-dotfiles,FluxAugur/mac-os-dotfiles
b38fba9edf17af52ca877117eaa63310e5705f8e
fish/list-functions.fish
fish/list-functions.fish
function list-functions --description "Lists all autoloaded functions fish can see. Does not guarantee order." for dir in $fish_function_path for func in (ls "$dir") echo "$func" end end end
Add function to show functions visible to fish.
Add function to show functions visible to fish.
fish
mit
deoxys314/deoxys314_dotfiles
04d9999f3aa22fad069c23c121c536dc5994b8c5
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' colors set -l c_n '\x1b[92m' set -l c_w '\x1b[93m' set -l location (printf "\x1b[92mWelcome to \x1b[95m%s" (hostname)) set -l system (printf "\x1b[92mRunning \x1b[95m...
# urdh prompt theme, by Simon Sigurdhsson <http://github.com/urdh/> function fish_greeting --description 'Print the shell greeting' colors set -l c_n '\x1b[94m' set -l c_w '\x1b[93m' set -l location (printf "\x1b[94mWelcome to \x1b[95m%s" (hostname)) set -l system (printf "\x1b[94mRunning \x1b[95m...
Change greeting colors for the billionth time
Change greeting colors for the billionth time
fish
mit
simotek/tackle,simotek/tackle
7d83866e003bb574f81103dcb561ee8e55b6d34b
.config/fish/config.fish
.config/fish/config.fish
set --export EDITOR vim set --export PATH /usr/local/bin $PATH set fish_color_command white set fish_color_autosuggestion yellow set fish_pager_color_description yellow set fish_color_param white status --is-interactive; and . (rbenv init -|psub)
set --export EDITOR vim set --export PATH /usr/local/bin $PATH set --export PATH /usr/local/sbin $PATH set fish_color_command white set fish_color_autosuggestion yellow set fish_pager_color_description yellow set fish_color_param white status --is-interactive; and . (rbenv init -|psub)
Fix a brew doctor issue
Fix a brew doctor issue
fish
mit
lenon/dotfiles
a3f74718b99aef62d3aa8df4405b7e05f414cb7e
src/dev-environment.fish
src/dev-environment.fish
#!/usr/local/bin/fish set applicationsFolder "/Applications" set apps "CodeKit" "Tower" "Transmit" "MAMP PRO" # Functions function __open_app set -l application $argv echo "Opening $application..." osascript -e "launch app \"$application\"" end function __close_app set -l application $argv echo ...
Create a smarter dev-enironment script
Create a smarter dev-enironment script
fish
mit
treetrum/sambin
7117d35d35a312a2755a81a321c4478aba1325b6
config.fish
config.fish
############################################ # ALIASES ############################################ # navigation alias .. "cd .." alias ... "cd ../.." alias .... "cd ../../.." alias ..... "cd ../../../.." # shortcuts alias dt "cd ~/Desktop" alias dl "cd ~/Downloads" alias p "cd ~/Projects" alias f "cd ~/Projects/fath...
############################################ # ALIASES ############################################ # navigation alias .. "cd .." alias ... "cd ../.." alias .... "cd ../../.." alias ..... "cd ../../../.." # shortcuts alias dt "cd ~/Desktop" alias dl "cd ~/Downloads" alias p "cd ~/Projects" alias f "cd ~/Projects/fath...
Fix aliases to work with fish
Fix aliases to work with fish
fish
mit
artisologic/dotfiles
1f1eecd9d5f2736369d6d1fde394c4affa0bb732
static/common/.config/fish/functions/fish_prompt.fish
static/common/.config/fish/functions/fish_prompt.fish
function fish_prompt echo '> ' end function fish_right_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...
function fish_prompt echo '> ' end function fish_right_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...
Fix not to show error messages when there is no context for kubectl
Fish: Fix not to show error messages when there is no context for kubectl
fish
mit
at-ishikawa/dotfiles,at-ishikawa/dotfiles
c328bac802ce517d53512a5d67c6968edb8e2b6a
virtualfish/compat_aliases.fish
virtualfish/compat_aliases.fish
function workon if not set -q argv[1] vf ls else vf activate $argv[1] end end function deactivate vf deactivate end function mktmpenv vf tmp $argv end function mkvirtualenv # Check if the first argument is an option to virtualenv # if it is then the the last argument must be ...
function workon if not set -q argv[1] vf ls else vf activate $argv[1] end end function deactivate vf deactivate end function mktmpenv vf tmp $argv end function mkvirtualenv vf new $argv end function lsvirtualenv vf ls end function rmvirtualenv vf rm $argv end function add...
Use same arg parsing for mkvirtualenv as `vf new`
Use same arg parsing for mkvirtualenv as `vf new` These are supposed to be aliases to the underlying `vf` commands, so it doesn't make much sense for their behavior to differ.
fish
mit
adambrenecki/virtualfish,adambrenecki/virtualfish
761ff26e7e746b663ab3084c79adbae03a731b33
fish/.config/fish/config.fish
fish/.config/fish/config.fish
set fish_greeting "" abbr --add g git abbr --add gc 'git commit' abbr --add gca 'git commit -a' abbr --add gd 'git diff' abbr --add gst 'git status' abbr --add p 'pass' abbr --add pc 'pass -c' setenv SSH_AUTH_SOCK $XDG_RUNTIME_DIR/gnupg/S.gpg-agent.ssh gpg-connect-agent updatestartuptty /bye > /dev/null # Start X at...
set fish_greeting "" abbr --add g git abbr --add gc 'git commit' abbr --add gca 'git commit -a' abbr --add gd 'git diff' abbr --add gst 'git status' abbr --add p 'pass' abbr --add pc 'pass -c' abbr --add z 'zathura --fork' setenv SSH_AUTH_SOCK $XDG_RUNTIME_DIR/gnupg/S.gpg-agent.ssh gpg-connect-agent updatestartuptty ...
Add zathura abbreviation in fish.
Add zathura abbreviation in fish.
fish
unlicense
aperez/dotfiles
8a6852b4eacade7feecfd6f761eb2999839011cf
.config/fish/functions/moj_host.fish
.config/fish/functions/moj_host.fish
function moj_host --description='Prints an emoji for the current host.' set -l host (hostname) if string match '*.*' $host >/dev/null set -l tokens (string split '.' $host) set host $tokens[1] set domain $tokens[2] end switch $host case greymatter hi-c-era.local ...
function moj_host --description='Prints an emoji for the current host.' set -l host (hostname) if string match '*.*' $host >/dev/null set -l tokens (string split '.' $host) set host $tokens[1] set domain $tokens[2] end switch $host case greymatter hi-c-era ec...
Remove .local domain from host case
[most_host] Remove .local domain from host case
fish
mit
phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles
dac7f35be2ecdb4b0f1de40112cc4d59e9734ac8
fish/.config/fish/functions/check_vpn.fish
fish/.config/fish/functions/check_vpn.fish
function check_vpn --description="Return true if connected to VPN" command curl --silent https://am.i.mullvad.net/json | jq '.mullvad_exit_ip' end
function check_vpn --description="Return true if connected to VPN" argparse --name check_vpn 'h/help' 'b/barmode' -- $argv or return 1 # error function print_help echo "Usage: check_vpn [options]" echo "Options:" echo (set_color green)"-b"(set_color $fish_color_normal)": Output text for i3status-rs ...
Use pango formatting, add bar mode
Use pango formatting, add bar mode
fish
mit
ammgws/dotfiles,ammgws/dotfiles,ammgws/dotfiles
7010c80b5fe7edc75a7bac45d4a10720b3de894e
Profile/config.fish
Profile/config.fish
set --global --export SCRIPT_DIR (dirname (dirname (status -f))) set --global --export SOURCE_DIR (dirname $SCRIPT_DIR) set --global --export PROFILE (status -f) set --local os (uname -s) if not contains $SCRIPT_DIR/fish/functions $fish_function_path set fish_function_path $SCRIPT_DIR/fish/functions $fish_functi...
set --global --export PROFILE (status -f) set --global --export SCRIPT_DIR (dirname (dirname $PROFILE)) set --global --export SOURCE_DIR (dirname $SCRIPT_DIR) if not contains $SCRIPT_DIR/fish/functions $fish_function_path set fish_function_path $SCRIPT_DIR/fish/functions $fish_function_path end for script in (ls...
Simplify the startup script even more
Simplify the startup script even more
fish
mit
lee-dohm/environment,lee-dohm/environment,lee-dohm/environment
6ba07098fa3fbe84fbfbae5885e8b3e4a38aff5c
functions/app-update.fish
functions/app-update.fish
function app-update --description 'Update with Homebrew and Nodejs' set os (uname) if test $os = 'Linux' if type -q apt log info 'Updating Advanced Package Tool (APT) packages...' sudo apt update sudo apt dist-upgrade -y sudo apt upgrade -y sudo apt autoremove -y end end ...
function app-update --description 'Update with Homebrew and Nodejs' if type -q fisher >/dev/null log info 'Updating fisherman modules...' fisher update end if type -q apt log info 'Updating Advanced Package Tool (APT) packages...' sudo apt update sudo apt dist-upgrade -y sudo apt upgrade...
Make Node.js upgrade earlier than NPM module updates
Make Node.js upgrade earlier than NPM module updates
fish
mit
masonwan/fish-config,masonwan/fish-config
1ad54203d249264fea3090a1a70500bce5dd84e0
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 hostname (hostname) set_color yellow; echo -n ...
# 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 hostname (hostname) set_color yellow; echo -n ...
Add git branch information to fish prompt
meta: Add git branch information to fish prompt If I stayed on zsh instead of switch to fish, I would've probably never known how easy it is to add certain information to the prompt. Since the prompt itself is just a function, you can run any commands you want inside it to get information, including git commands. Thi...
fish
mit
GloverDonovan/new-start
3e0269450362aec2bc9439088eac784f9c06c7de
.config/fish/functions/lxcip.fish
.config/fish/functions/lxcip.fish
function lxcip --description "Retrieve IP address of a lxc container based on container name and network interface" # Set command line options for parsing # -h/--help: Print help # -i/--interface: specify network interface # -c/--container: specify container name set -l options (fish_opt -s h -l he...
Add fish function to retrieve lxc ip address
Add fish function to retrieve lxc ip address
fish
mit
brentbrownfield/dotfiles