Created
November 20, 2019 20:18
-
-
Save olegakbarov/c2fd1e8b7928975ff50f52efa617c675 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fish_prompt | |
powerline-shell --shell bare $status | |
end | |
set fish_key_bindings fish_vi_key_bindings | |
set fish_bind_mode insert | |
set -x GPG_TTY (tty) | |
alias cp='cp -iv' # Preferred 'cp' implementation | |
alias mv='mv -iv' # Preferred 'mv' implementation | |
alias mkdir='mkdir -pv' # Preferred 'mkdir' implementation | |
alias ll='ls -FGlAhp' # Preferred 'ls' implementation | |
alias less='less -FSRXc' # Preferred 'less' implementation | |
alias cd..='cd ../' # Go back 1 directory level | |
alias ..='cd ../' # Go back 1 directory level | |
alias cleanupDS="find . -type f -name '*.DS_Store' -ls -delete" | |
alias code="cd ~/code" | |
alias serve='python -m SimpleHTTPServer' | |
alias psa="ps aux" | |
alias psg="ps aux | grep " | |
alias afk="/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend" | |
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'" | |
alias mygo="cd ~/code/go/src/github.com/olegakbarov" | |
alias rm_node_modules="find . -name 'node_modules' -exec rm -rf '{}' +" | |
alias v="mvim ." | |
# Git | |
function gitgrep | |
git logol "$1" | grep "$2" -i --color --context; | |
end | |
function deleteMerged | |
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d; | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment