diff options
| author | Andrew <saintruler@gmail.com> | 2020-12-12 21:39:33 +0400 |
|---|---|---|
| committer | Andrew <saintruler@gmail.com> | 2020-12-12 21:39:33 +0400 |
| commit | 0ebe2dd2b7f465902fbe253cf70708a833346429 (patch) | |
| tree | a3dd0b4f4d9de134e35ad0c70344d432a2ea15d0 /.bashrc | |
| parent | 49b8d064b395b027d667db47b50c50c0d6dd361e (diff) | |
Changed shell to bash
Diffstat (limited to '.bashrc')
| -rw-r--r-- | .bashrc | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -0,0 +1,28 @@ +# enable color support of ls and also add handy aliases +if [ -x /usr/bin/dircolors ]; then + test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" + alias ls='ls --color=auto' + #alias dir='dir --color=auto' + #alias vdir='vdir --color=auto' + + alias grep='grep --color=auto' + alias fgrep='fgrep --color=auto' + alias egrep='egrep --color=auto' +fi + +# Aliases +alias la='ls -lhFA' +alias ll='ls -lhF' +alias l='ls -CF' +alias dotfiles="/usr/bin/git --git-dir='$HOME/.dotfiles' --work-tree='$HOME'" +alias dotstat="/usr/bin/git --git-dir='$HOME/.dotfiles' --work-tree='$HOME' status" +alias dotdiff="/usr/bin/git --git-dir='$HOME/.dotfiles' --work-tree='$HOME' diff" +alias dotadd="/usr/bin/git --git-dir='$HOME/.dotfiles' --work-tree='$HOME' add -f" +alias vim="nvim" + +# Functions +fzf_cd() { + cd "$(find ~ -type d | fzf)" +} + +bind '"\C-f":"fzf_cd\n"' |