mirror of
https://github.com/mitchell/dotfiles.git
synced 2025-12-16 11:57:23 +00:00
Move aliases into config.fish and add ruby support to vimrc
This commit is contained in:
parent
2097f04323
commit
bad8be4a2c
9 changed files with 28 additions and 26 deletions
|
|
@ -15,3 +15,22 @@ command -sq asdf; and source (brew --prefix asdf)/asdf.fish
|
|||
|
||||
# The next line updates PATH for the Google Cloud SDK.
|
||||
# if test -f '/Users/m/Documents/google-cloud-sdk/path.fish.inc'; source '/Users/m/Documents/google-cloud-sdk/path.fish.inc'; end
|
||||
|
||||
# aliases
|
||||
function cat; bat --theme ansi-dark $argv; end
|
||||
|
||||
function cp; rsync -aP $argv; end
|
||||
|
||||
function dm; docker-machine $argv; end
|
||||
|
||||
function dm-env; eval (docker-machine env $argv); end
|
||||
|
||||
function goland; open -a Goland .; end
|
||||
|
||||
function rider; open -a Rider .; end
|
||||
|
||||
function v; nvim (fzf); end
|
||||
|
||||
function vg; vagrant $argv; end
|
||||
|
||||
function webstorm; open -a Webstorm .; end
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
function cat
|
||||
bat --theme ansi-dark $argv
|
||||
end
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
function cp
|
||||
rsync -aP $argv
|
||||
end
|
||||
|
|
@ -75,10 +75,12 @@ function fish_prompt --description 'Write out the prompt'
|
|||
set -l cur_branch (string sub -s 3 (string match -r '^\* .*$' (git branch)))
|
||||
if string match -q '(HEAD detached*' $cur_branch; set cur_branch 'detached'; end
|
||||
|
||||
set -l cur_branch_len (string length $cur_branch)
|
||||
if test $cur_branch_len -gt 21
|
||||
set -l sub_str (string sub -l 18 $cur_branch)
|
||||
set cur_branch "$sub_str..."
|
||||
if test -n "$cur_branch"
|
||||
set -l cur_branch_len (string length $cur_branch)
|
||||
if test $cur_branch_len -gt 21
|
||||
set -l sub_str (string sub -l 18 $cur_branch)
|
||||
set cur_branch "$sub_str..."
|
||||
end
|
||||
end
|
||||
|
||||
if string match 'Your branch is ahead of*' $git_status > /dev/null
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
function goland
|
||||
open -a Goland .
|
||||
end
|
||||
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
function machine-env
|
||||
eval (docker-machine env $argv)
|
||||
end
|
||||
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
function v
|
||||
nvim (fzf)
|
||||
end
|
||||
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
function webstorm
|
||||
open -a Webstorm .
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue