aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Tay <nkt@outlook.kr>2021-04-10 14:56:23 +1000
committerNicholas Tay <nkt@outlook.kr>2021-04-10 14:56:23 +1000
commitc1aae3af259b6ea254d66c334f3d398c19029518 (patch)
treefc07c2b920926146a0286f970f1c030777d23c60
parentc3c002d0913b9be2e56173e073b39041181bf660 (diff)
downloaddotlite-c1aae3af259b6ea254d66c334f3d398c19029518.tar.gz
dotlite-c1aae3af259b6ea254d66c334f3d398c19029518.tar.bz2
dotlite-c1aae3af259b6ea254d66c334f3d398c19029518.zip
macOS changes
-rw-r--r--.bashrc2
-rw-r--r--.config/aliasrc8
-rw-r--r--.config/nvim/init.vim2
3 files changed, 8 insertions, 4 deletions
diff --git a/.bashrc b/.bashrc
index 4f2ca54..0b64a93 100644
--- a/.bashrc
+++ b/.bashrc
@@ -12,7 +12,7 @@ PS1="\[\033[38;5;14m\]\u\[$(tput sgr0)\]\[\033[38;5;243m\]@\[$(tput sgr0)\]\[\03
export HISTFILE="$HOME/.local/share/bash_history"
# cd by name only is ok
-shopt -s autocd
+shopt -s autocd 2>/dev/null
# Load our aliases
[ -f $HOME/.config/aliasrc ] && . $HOME/.config/aliasrc
diff --git a/.config/aliasrc b/.config/aliasrc
index 1da43c6..364df5a 100644
--- a/.config/aliasrc
+++ b/.config/aliasrc
@@ -8,9 +8,13 @@ alias cp="cp -iv"
alias mv="mv -iv"
# Utility colours
-alias ls="ls --color=auto --group-directories-first"
alias grep="grep --color=auto"
-alias diff="diff --color=auto"
+if [ "$(uname -s)" != "Darwin" ]; then
+ alias ls="ls --color=auto --group-directories-first"
+ alias diff="diff --color=auto"
+else
+ alias ls="ls -G"
+fi
# dotfiles management
alias d="git --git-dir=$HOME/.dotlite.git --work-tree=$HOME"
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index cbeece5..8ede6bf 100644
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -13,7 +13,7 @@ set nohlsearch
set splitbelow splitright
set scrolloff=6
-colorscheme industry
+colorscheme peachpuff
set tabstop=4
set softtabstop=0 noexpandtab