dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 26391296c789d9cdb0ecf74ce7f8837c3bd003f4
parent 80237512df05dcfc1bb92da9d4105ca0574534e2
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 23 May 2019 22:26:37 +0200

Clean up .profile and set vi editing mode for bash

Diffstat:
M.bashrc | 3++-
M.profile | 22+---------------------
2 files changed, 3 insertions(+), 22 deletions(-)

diff --git a/.bashrc b/.bashrc @@ -3,6 +3,8 @@ # If not running interactively, don't do anything [ -z "$PS1" ] && return +set -o vi + # don't put duplicate lines in the history, and ignore lines with leading space HISTCONTROL=ignoredups:ignorespace @@ -38,4 +40,3 @@ PROMPT_COMMAND=set_prompt # shellcheck source=/home/ad/.fzf.bash [ -f ~/.fzf.bash ] && source ~/.fzf.bash - diff --git a/.profile b/.profile @@ -23,10 +23,8 @@ export NNN_NOTE="$HOME/doc/todo.md" #### PATH AND MACHINE SPECIFIC CONFIGS [ -d /usr/local/bin ] && export PATH=/usr/local/bin:$PATH -[ -d /usr/local/sbin ] && export PATH=/usr/local/sbin:$PATH -[ -d ~/local/bin ] && export PATH=~/local/bin:$PATH [ -d ~/.local/bin ] && export PATH=~/.local/bin:$PATH -[ -d "$HOME/bin" ] && export PATH=$HOME/bin:$PATH +[ -d ~/bin ] && export PATH=~/bin:$PATH export GOPATH=$HOME/code/golang export PATH=$PATH:$GOPATH/bin @@ -34,11 +32,6 @@ export PATH=$PATH:$GOPATH/bin GPG_TTY=$(tty) export GPG_TTY -[ -d ~/pism ] && export PATH=~/pism/bin:$PATH -[ -d ~/code/issm/trunk ] && export ISSM_DIR=~/code/issm/trunk -[ -d ~/torch/install/bin ] && export PATH=~/torch/install/bin:$PATH -[ -d ~/code/tensorflow ] && alias tensorflow='source ~/code/tensorflow/bin/activate' - if [ -x "$(command -v fzf)" ]; then export FZF_DEFAULT_OPTS="--exit-0 --select-1 @@ -67,17 +60,4 @@ if [ -x "$(command -v fzf)" ]; then fi fi -if [ -f /usr/local/Modules/default/init/zsh ]; then - # shellcheck disable=SC1091 - . /usr/local/Modules/default/init/zsh && \ - #module load git vim #python paraview ncview matlab ifort anaconda - module load git python/2.7.1 - [ -d /net/and/anaconda3/bin ] && export PATH=/net/and/anaconda3/bin:"$PATH" - [ -d /work/and/anaconda3/bin ] && export PATH=/work/and/anaconda3/bin:"$PATH" -fi [ -f /etc/pki/tls/certs/ca-bundle.crt ] && export CURL_CA_BUNDLE=/etc/pki/tls/certs/ca-bundle.crt - -[ -d ~/code/basilisk/src ] && export BASILISK=~/code/basilisk/src -[ -d ~/code/basilisk/src ] && export PATH=~/code/basilisk/src:$PATH - -[ -d /usr/local/anaconda3/bin ] && export PATH=/usr/local/anaconda3/bin:"$PATH"