diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-11-12 17:04:51 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-11-12 17:04:51 +0100 |
| commit | a06614e72ffc6b8c8fe6741f4546756ee660d4d6 (patch) | |
| tree | 2d3391f12169a7154bf6085a038832fcef78949b /config/zsh | |
| parent | 4af84af3b020e9931b456c71a74d88944119d077 (diff) | |
| download | dotfiles-a06614e72ffc6b8c8fe6741f4546756ee660d4d6.tar.gz dotfiles-a06614e72ffc6b8c8fe6741f4546756ee660d4d6.tar.bz2 dotfiles-a06614e72ffc6b8c8fe6741f4546756ee660d4d6.zip | |
Updated for macos
Diffstat (limited to 'config/zsh')
| -rw-r--r-- | config/zsh/.zshrc | 5 | ||||
| -rw-r--r-- | config/zsh/aliases.zsh | 7 | ||||
| -rwxr-xr-x | config/zsh/zprofile | 20 |
3 files changed, 25 insertions, 7 deletions
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 |
