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 | |
| parent | 49b8d064b395b027d667db47b50c50c0d6dd361e (diff) | |
Changed shell to bash
| -rw-r--r-- | .bashrc | 28 | ||||
| -rw-r--r-- | .profile | 3 |
2 files changed, 30 insertions, 1 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"' @@ -3,7 +3,7 @@ if [ -d "$HOME/.local/bin" ] ; then PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | paste -sd ':')" fi -export SHELL="/bin/zsh" +export SHELL="/bin/bash" export VIMINIT="source $MYVIMRC" # For Jetbrains products @@ -36,6 +36,7 @@ export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc" export GNUPGHOME="$XDG_DATA_HOME/gnupg" export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass" export STACK_ROOT="$XDG_DATA_HOME/stack" +export R_ENVIRON="$XDG_CONFIG_HOME/r/.Renviron" export XMONAD_CONFIG_HOME="$XDG_CONFIG_HOME/xmonad" export XMONAD_DATA_HOME="$XDG_DATA_HOME/xmonad" |