Skip to content

Commit 7a1724e

Browse files
committed
bump
1 parent 26c304f commit 7a1724e

16 files changed

+2441
-0
lines changed

backup-2023-11-02/.zshrc

+175
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
2+
# Initialization code that may require console input (password prompts, [y/n]
3+
# confirmations, etc.) must go above this block; everything else may go below.
4+
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
5+
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
6+
fi
7+
8+
# If you come from bash you might have to change your $PATH.
9+
# export PATH=$HOME/bin:/usr/local/bin:$PATH
10+
11+
# Path to your oh-my-zsh installation.
12+
export ZSH="/home/pcosta/.oh-my-zsh"
13+
export CHROME_EXECUTABLE="/bin/chromium"
14+
export GEM_EDITOR="nvim"
15+
export EDITOR="nvim"
16+
export BROWSER="/usr/bin/firefox"
17+
export ERL_AFLAGS="-kernel shell_history enabled"
18+
export TZ='Europe/Lisbon'
19+
20+
# Set name of the theme to load --- if set to "random", it will
21+
# load a random theme each time oh-my-zsh is loaded, in which case,
22+
# to know which specific one was loaded, run: echo $RANDOM_THEME
23+
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
24+
#ZSH_THEME="robbyrussell"
25+
#ZSH_THEME="powerlevel10k/powerlevel10k"
26+
ZSH_THEME="passion"
27+
#POWERLEVEL9K_MODE="nerdfont-complete"
28+
#POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir rbenv vcs)
29+
30+
# Set list of themes to pick from when loading at random
31+
# Setting this variable when ZSH_THEME=random will cause zsh to load
32+
# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
33+
# If set to an empty array, this variable will have no effect.
34+
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
35+
36+
# Uncomment the following line to use case-sensitive completion.
37+
# CASE_SENSITIVE="true"
38+
39+
# Uncomment the following line to use hyphen-insensitive completion.
40+
# Case-sensitive completion must be off. _ and - will be interchangeable.
41+
# HYPHEN_INSENSITIVE="true"
42+
43+
# Uncomment the following line to disable bi-weekly auto-update checks.
44+
# DISABLE_AUTO_UPDATE="true"
45+
46+
# Uncomment the following line to automatically update without prompting.
47+
# DISABLE_UPDATE_PROMPT="true"
48+
49+
# Uncomment the following line to change how often to auto-update (in days).
50+
# export UPDATE_ZSH_DAYS=13
51+
52+
# Uncomment the following line if pasting URLs and other text is messed up.
53+
# DISABLE_MAGIC_FUNCTIONS=true
54+
55+
# Uncomment the following line to disable colors in ls.
56+
# DISABLE_LS_COLORS="true"
57+
58+
# Uncomment the following line to disable auto-setting terminal title.
59+
# DISABLE_AUTO_TITLE="true"
60+
61+
# Uncomment the following line to enable command auto-correction.
62+
# ENABLE_CORRECTION="true"
63+
64+
# Uncomment the following line to display red dots whilst waiting for completion.
65+
# COMPLETION_WAITING_DOTS="true"
66+
67+
# Uncomment the following line if you want to disable marking untracked files
68+
# under VCS as dirty. This makes repository status check for large repositories
69+
# much, much faster.
70+
# DISABLE_UNTRACKED_FILES_DIRTY="true"
71+
72+
# Uncomment the following line if you want to change the command execution time
73+
# stamp shown in the history command output.
74+
# You can set one of the optional three formats:
75+
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
76+
# or set a custom format using the strftime function format specifications,
77+
# see 'man strftime' for details.
78+
# HIST_STAMPS="mm/dd/yyyy"
79+
80+
# Would you like to use another custom folder than $ZSH/custom?
81+
# ZSH_CUSTOM=/path/to/new-custom-folder
82+
83+
# Which plugins would you like to load?
84+
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
85+
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
86+
# Example format: plugins=(rails git textmate ruby lighthouse)
87+
# Add wisely, as too many plugins slow down shell startup.
88+
plugins=(
89+
asdf
90+
git
91+
colored-man-pages
92+
colorize
93+
zsh-autosuggestions
94+
zsh-syntax-highlighting
95+
)
96+
97+
source $ZSH/oh-my-zsh.sh
98+
99+
# User configuration
100+
101+
# export MANPATH="/usr/local/man:$MANPATH"
102+
103+
# You may need to manually set your language environment
104+
# export LANG=en_US.UTF-8
105+
106+
# Preferred editor for local and remote sessions
107+
# if [[ -n $SSH_CONNECTION ]]; then
108+
# export EDITOR='vim'
109+
# else
110+
# export EDITOR='mvim'
111+
# fi
112+
113+
# Compilation flags
114+
# export ARCHFLAGS="-arch x86_64"
115+
116+
# Set personal aliases, overriding those provided by oh-my-zsh libs,
117+
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
118+
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
119+
# For a full list of active aliases, run `alias`.
120+
#
121+
# Example aliases
122+
# alias zshconfig="mate ~/.zshrc"
123+
# alias ohmyzsh="mate ~/.oh-my-zsh"
124+
alias ga="git add"
125+
alias gc="git commit"
126+
alias gch="git checkout"
127+
alias gcp="git cherry-pick"
128+
alias gs="git status"
129+
alias ghc="stack ghc"
130+
alias ghci="stack ghci"
131+
alias p="sudo pacman"
132+
#alias spotify="flatpak run com.spotify.Client"
133+
alias vim="nvim"
134+
alias vi="nvim"
135+
alias wally="feh --bg-fill --randomize ~/.wallpaper/*"
136+
alias fly="/home/pcosta/.fly/bin/flyctl"
137+
#alias solargraph="/home/pcosta/.local/share/gem/ruby/3.0.0/bin/solargraph"
138+
139+
# This command fixes the mouse not initializing properly.
140+
# It can be detected that the mouse didn't initialize properly by running
141+
# sudo dmesg | grep -i error
142+
# Solution obtained from https://forum.manjaro.org/t/touchpad-sometimes-not-working/82296/9
143+
alias mousefix="sudo modprobe -r i2c_hid_acpi && sudo modprobe i2c_hid_acpi"
144+
145+
# Auto-run startx after logging
146+
if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
147+
exec startx
148+
fi
149+
150+
#[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
151+
152+
#Color ls
153+
source $(dirname $(gem which colorls))/tab_complete.sh
154+
alias ls="colorls --sd -A"
155+
156+
path+=('/home/pcosta/.local/share/gem/ruby/3.1.0/bin')
157+
export PATH
158+
159+
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
160+
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
161+
if [ -e /home/pcosta/.nix-profile/etc/profile.d/nix.sh ]; then . /home/pcosta/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
162+
163+
. $HOME/.asdf/asdf.sh
164+
165+
. $HOME/.asdf/completions/asdf.bash
166+
167+
xset -b
168+
169+
eval "$(direnv hook zsh)"
170+
171+
typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet
172+
export PATH=$PATH:/home/pcosta/.spicetify
173+
174+
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
175+
. ~/.config/algokit/.algokit-completions.zsh

0 commit comments

Comments
 (0)