# server.Server.source_file

- **Module:** server.Server
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/server.rs#L1193
- **Page:** https://libtmux.org/reference/rs/server-server-source_file/

```
server.Server.source_file(self, path: impl Into<PathBuf>) -> Result<(), Error>
```

Load a tmux configuration file into this server.

# Errors

Returns an error when tmux cannot read the file or a command in it
fails.
