7 Commits

Author SHA1 Message Date
Smaug123
b9bb4c49fa Merge branch 'main' into more-earthworm 2024-02-23 22:47:53 +00:00
Patrick Stevens
75c77e99c0 Rem oh-my-zsh (#32) 2024-02-23 22:47:37 +00:00
Smaug123
d2718febf8 Rem oh-my-zsh 2024-02-23 22:44:39 +00:00
Patrick Stevens
ef6d3d4445 FiraCode (#31) 2024-02-23 14:18:18 +00:00
Smaug123
b3eb9adb9f Format 2024-02-23 14:16:04 +00:00
Smaug123
ada02e558b FiraCode 2024-02-23 14:11:48 +00:00
Smaug123
ae96250101 Delete unused keybinds 2024-02-23 11:15:36 +00:00
3 changed files with 38 additions and 11 deletions

23
home-manager/.zshrc Normal file
View File

@@ -0,0 +1,23 @@
prompt_custom() {
local cyan='%F{cyan}'
local red='%F{red}'
local blue='%F{blue}'
local reset_color='%f'
local git_info=$(git symbolic-ref --short HEAD 2> /dev/null || git describe --tags --exact-match 2> /dev/null || git rev-parse --short HEAD 2> /dev/null)
if [[ -n "$git_info" ]]; then
# escape the percent character, which is the only zsh prompt metacharacter
git_info=$git_info:s/%/%%/
git_info=" ${blue}git:${reset_color}${red}(${git_info})${reset_color}"
else
git_info=""
fi
# %1 is the name of cwd
PROMPT="${cyan}%1~${reset_color}${git_info} > "
}
# Full path to cwd, with `~` for any initial home component, in light green,
RPROMPT='%F{155}%~%f'
precmd_functions+=(prompt_custom)

View File

@@ -21,6 +21,8 @@
# changes in each release.
home.stateVersion = "22.05";
fonts.fontconfig.enable = true;
programs.tmux = {
shell = "${nixpkgs.zsh}/bin/zsh";
escapeTime = 50;
@@ -41,11 +43,6 @@
history = {
expireDuplicatesFirst = true;
};
oh-my-zsh = {
enable = true;
plugins = ["git" "macos" "dircycle" "timer"];
theme = "robbyrussell";
};
sessionVariables = {
EDITOR = "vim";
LC_ALL = "en_US.UTF-8";
@@ -61,6 +58,7 @@
sessionVariables = {
RIPGREP_CONFIG_PATH = "/Users/${username}/.config/ripgrep/config";
};
initExtra = builtins.readFile ./.zshrc;
};
programs.fzf = {
@@ -208,6 +206,17 @@
nix-direnv.enable = true;
};
programs.alacritty = {
enable = true;
settings = {
font = {
normal = {
family = "FiraCode Nerd Font Mono";
};
};
};
};
home.packages = [
nixpkgs.keepassxc
nixpkgs.rust-analyzer
@@ -253,6 +262,7 @@
nixpkgs.ffmpeg
nixpkgs.bat
nixpkgs.pandoc
(nixpkgs.nerdfonts.override {fonts = ["FiraCode" "DroidSansMono"];})
];
home.file.".mailcap".source = ./mailcap;

View File

@@ -191,12 +191,6 @@ map <c-space> ?
" Disable highlight when <leader><cr> is pressed
map <silent> <leader><cr> :noh<cr>
" Smart way to move between windows
map <C-j> <C-W>j
map <C-k> <C-W>k
map <C-h> <C-W>h
map <C-l> <C-W>l
" Close the current buffer
map <leader>bd :Bclose<cr>:tabclose<cr>gT