From 436fb7234fc9e2149d2628d8d66a9c2623fd7b61 Mon Sep 17 00:00:00 2001 From: arnaucube Date: Sun, 7 Mar 2021 18:53:50 +0100 Subject: [PATCH] separate sh alias file --- .bash_alias | 15 +++++++++++++++ .bashrc | 17 ++--------------- install-new-server.sh | 1 + 3 files changed, 18 insertions(+), 15 deletions(-) create mode 100644 .bash_alias diff --git a/.bash_alias b/.bash_alias new file mode 100644 index 0000000..c2f7b4c --- /dev/null +++ b/.bash_alias @@ -0,0 +1,15 @@ +# ls aliases +alias ll='ls -alF' +alias la='ls -A' +alias l='ls -CF' +alias lst='ls -altr' + +# alias +alias n='nvim' +alias t='tmux' + +# git alias +alias gdf='git difftool --tool=vimdiff' +alias gs='git status' +# gitg branch views, line from https://gitlab.com/dhole/dot_files/blob/master/.bash_aliases#L39 +alias gitg="git log --color --graph --abbrev-commit --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %s %Cgreen(%ar)%C(cyan) %an<%ae>%Creset'" diff --git a/.bashrc b/.bashrc index 56f9d54..9dd8947 100644 --- a/.bashrc +++ b/.bashrc @@ -27,21 +27,6 @@ else fi unset color_prompt force_color_prompt -# gitg branch views, line from https://gitlab.com/dhole/dot_files/blob/master/.bash_aliases#L39 -alias gitg="git log --color --graph --abbrev-commit --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %s %Cgreen(%ar)%C(cyan) %an<%ae>%Creset'" - -# ls aliases -alias ll='ls -alF' -alias la='ls -A' -alias l='ls -CF' -alias lst='ls -altr' - -# alias -alias n='nvim' -alias t='tmux' -alias c='calcurse-caldav && calcurse && calcurse-caldav' -alias gdf='git difftool --tool=vimdiff' - export PATH=$PATH:/home/user/bin # go @@ -57,3 +42,5 @@ alias pip='/usr/bin/pip3' export EDITOR=vim export LC_ALL="en_US.UTF-8" + +source ~/.bash_alias diff --git a/install-new-server.sh b/install-new-server.sh index 42f660b..c21837b 100644 --- a/install-new-server.sh +++ b/install-new-server.sh @@ -39,6 +39,7 @@ curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \ ## :GoInstallBinaries # bash +cp .bash_alias ~/.bash_alias echo "append .bashrc of this repo lines to the .bashrc system file" cat .bashrc >> ~/.bashrc