mirror of
https://github.com/genebean/dots.git
synced 2026-03-28 01:47:42 -04:00
Broke shell config bits out to OS-specific files
Prior to this, I had conditionals in my shell config
This commit is contained in:
parent
28c8818e89
commit
34e2eaa743
4 changed files with 29 additions and 20 deletions
21
modules/home-manager/darwin.nix
Normal file
21
modules/home-manager/darwin.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ pkgs, genebean-omp-themes, ... }: {
|
||||
# dawrwin-specific shell config
|
||||
programs.zsh = {
|
||||
initExtra = ''
|
||||
function otpon() {
|
||||
osascript -e 'tell application "yubiswitch" to KeyOn'
|
||||
}
|
||||
function otpoff() {
|
||||
osascript -e 'tell application "yubiswitch" to KeyOff'
|
||||
}
|
||||
'';
|
||||
oh-my-zsh.plugins = [ "macos" ];
|
||||
shellAliases = {
|
||||
currentwifi = "networksetup -getairportnetwork en0 |cut -d ':' -f2- | cut -d ' ' -f2-";
|
||||
nixup = "darwin-rebuild switch --flake ~/repos/dots";
|
||||
uwgconnect = "networksetup -setairportnetwork en0 SecureWest";
|
||||
uwgforget = "networksetup -removepreferredwirelessnetwork en0 SecureWest";
|
||||
ykey = "pkill -9 gpg-agent && source ~/.zshrc; ssh-add -L";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue