From 0ebe2dd2b7f465902fbe253cf70708a833346429 Mon Sep 17 00:00:00 2001 From: Andrew Date: Sat, 12 Dec 2020 21:39:33 +0400 Subject: Changed shell to bash --- .bashrc | 28 ++++++++++++++++++++++++++++ .profile | 3 ++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .bashrc diff --git a/.bashrc b/.bashrc new file mode 100644 index 0000000..d9a54ec --- /dev/null +++ b/.bashrc @@ -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"' diff --git a/.profile b/.profile index 6218cff..a51579e 100644 --- a/.profile +++ b/.profile @@ -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" -- cgit v1.2.3