From a06614e72ffc6b8c8fe6741f4546756ee660d4d6 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Fri, 12 Nov 2021 17:04:51 +0100 Subject: Updated for macos --- config/zsh/.zshrc | 5 ++++- config/zsh/aliases.zsh | 7 ++++++- config/zsh/zprofile | 20 +++++++++++++++----- 3 files changed, 25 insertions(+), 7 deletions(-) (limited to 'config/zsh') diff --git a/config/zsh/.zshrc b/config/zsh/.zshrc index 77ee41e..5255fa7 100644 --- a/config/zsh/.zshrc +++ b/config/zsh/.zshrc @@ -92,4 +92,7 @@ export YSU_MESSAGE_POSITION="after" # you-should # install pkgfile package on Arch Linux # run `pkgfile --update` -. /usr/share/doc/pkgfile/command-not-found.zsh +if [ "$(uname)" = 'Linux' ] +then + . /usr/share/doc/pkgfile/command-not-found.zsh +fi diff --git a/config/zsh/aliases.zsh b/config/zsh/aliases.zsh index b2ca0a9..7957167 100644 --- a/config/zsh/aliases.zsh +++ b/config/zsh/aliases.zsh @@ -21,7 +21,12 @@ alias doas='doas ' # same for doas alias info='info --vi-keys' # ls -alias ls='ls --color=auto -Fh' +if [ "$(uname)" = 'Linux' ] +then + alias ls='ls --color=auto -Fh' +else + alias ls='ls -G -Fh' +fi alias ll="ls -l" alias la="ls -A" alias lla="ls -Al" diff --git a/config/zsh/zprofile b/config/zsh/zprofile index 5d5f01b..1388cd9 100755 --- a/config/zsh/zprofile +++ b/config/zsh/zprofile @@ -1,15 +1,25 @@ #!/bin/zsh -export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:$HOME/.local/bin" +if [ "$(uname)" = 'Linux' ] +then + export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:$HOME/.local/bin" + export TERM='st-256color' + export MAIL='me@cacharle.xyz' + export SUDO='doas' +elif [ "$(uname)" = 'Darwin' ] +then + export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" + export PATH="$PATH:$HOME/.brew/bin:$HOME/git/dotfiles/bin:$HOME/bin:/usr/local/anaconda3/bin" + export TERM='xterm-256color' + export MAIL='charles.cabergs@colruytgroup.com' + export SUDO='sudo' +fi # applications export EDITOR='vim' -export TERM='st-256color' export TERMINAL='st' -export MAIL='me@cacharle.xyz' export BROWSER='qutebrowser' export BROWSERCLI='w3m' -export SUDO='doas' # XDG all the things export XDG_CONFIG_HOME="$HOME/.config" @@ -68,7 +78,7 @@ export MINIKUBE_IN_STYLE=false # disable cringe minikube emojies export CLOUT_SYNC_DIR="clout-sync/" export CLOUT_SYNC_PATH="${XDG_DATA_HOME:-$HOME/.sync}/$CLOUT_SYNC_DIR" -if [ "$(tty)" = '/dev/tty1' ] +if [ "$(uname)" = 'Linux' ] && [ "$(tty)" = '/dev/tty1' ] then startx "$XDG_CONFIG_HOME/x11/xinitrc" poweroff -- cgit