Last active
June 3, 2022 21:03
-
-
Save KurimuzonAkuma/0e74c3b2da969ea07ddde86a4ab91657 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="$HOME/.oh-my-zsh" | |
ZSH_THEME="robbyrussell" | |
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) | |
# Uncomment the following line to use case-sensitive completion. | |
# CASE_SENSITIVE="true" | |
# Uncomment the following line to enable command auto-correction. | |
ENABLE_CORRECTION="true" | |
# Standard plugins can be found in $ZSH/plugins/ | |
# Custom plugins may be added to $ZSH_CUSTOM/plugins/ | |
plugins=( | |
zsh-autosuggestions | |
zsh-syntax-highlighting | |
zsh-history-substring-search | |
history | |
emoji | |
git | |
dirhistory | |
tmux | |
) | |
source $ZSH/oh-my-zsh.sh | |
# Preferred editor for local and remote sessions | |
# if [[ -n $SSH_CONNECTION ]]; then | |
# export EDITOR='vim' | |
# else | |
# export EDITOR='mvim' | |
# fi | |
if [ -z "$TMUX" ]; then | |
tmux attach -t base || tmux new -s base; | |
fi | |
export EDITOR="nano" | |
alias ls="exa --color auto -h --icons --group-directories-first --time-style long-iso" | |
alias ll="ls -l" | |
alias grep='grep --color' | |
alias edit='$EDITOR' | |
alias fishconfig="edit ~/.config/fish/config.fish" | |
alias zshconfig="edit ~/.zshrc" | |
alias python="python3.9" | |
alias py="python" | |
alias pip="python -m pip" | |
alias treesize="ncdu --exclude '/run' --exclude '/media' --exclude '/proc'" | |
# set an icon based on the distro | |
_distro="$(awk '/^ID=/' /etc/*-release | awk -F'=' '{ print tolower($2) }')" | |
case $_distro in | |
*kali*) ICON="ﴣ";; | |
*arch*) ICON="";; | |
*debian*) ICON="";; | |
*raspbian*) ICON="";; | |
*ubuntu*) ICON="";; | |
*elementary*) ICON="";; | |
*fedora*) ICON="";; | |
*coreos*) ICON="";; | |
*gentoo*) ICON="";; | |
*mageia*) ICON="";; | |
*centos*) ICON="";; | |
*opensuse*|*tumbleweed*) ICON="";; | |
*sabayon*) ICON="";; | |
*slackware*) ICON="";; | |
*linuxmint*) ICON="";; | |
*alpine*) ICON="";; | |
*aosc*) ICON="";; | |
*nixos*) ICON="";; | |
*devuan*) ICON="";; | |
*manjaro*) ICON="";; | |
*rhel*) ICON="";; | |
*macos*) ICON="";; | |
*) ICON="";; | |
esac | |
if [[ -f "/mnt/c/users/artur/.config/starship.toml" ]] then | |
export STARSHIP_CONFIG="/mnt/c/users/artur/.config/starship.toml" | |
fi | |
export STARSHIP_DISTRO="$ICON" | |
eval "$(starship init zsh)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment